- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for MaxRevision (0.18 sec)
-
pkg/controller/daemon/update.go
if len(curHistories) == 1 { return curHistories[0], nil } var maxRevision int64 var keepCur *apps.ControllerRevision for _, cur := range curHistories { if cur.Revision >= maxRevision { keepCur = cur maxRevision = cur.Revision } } // Relabel pods before dedup pods, err := dsc.getDaemonPods(ctx, ds) if err != nil { return nil, err
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 13 16:53:53 UTC 2024 - 24.4K bytes - Viewed (0) -
pkg/controller/deployment/util/deployment_util.go
} if deployment.Annotations[RevisionAnnotation] != revision { deployment.Annotations[RevisionAnnotation] = revision updated = true } return updated } // MaxRevision finds the highest revision in the replica sets func MaxRevision(logger klog.Logger, allRSs []*apps.ReplicaSet) int64 { max := int64(0) for _, rs := range allRSs { if v, err := Revision(rs); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 07:09:11 UTC 2023 - 39.3K bytes - Viewed (0) -
pkg/controller/deployment/sync.go
logger := klog.FromContext(ctx) existingNewRS := deploymentutil.FindNewReplicaSet(d, rsList) // Calculate the max revision number among all old RSes maxOldRevision := deploymentutil.MaxRevision(logger, oldRSs) // Calculate revision number for this new replica set newRevision := strconv.FormatInt(maxOldRevision+1, 10) // Latest replica set exists. We need to sync its annotations (includes copying all but
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 05 23:39:52 UTC 2023 - 24.5K bytes - Viewed (0)