mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +00:00
Revision number should be updated only when it's smaller than it should be
This commit is contained in:
parent
719158d2c8
commit
1706df6242
@ -758,7 +758,7 @@ func setNewReplicaSetAnnotations(deployment *extensions.Deployment, rs *extensio
|
|||||||
if rs.Annotations == nil {
|
if rs.Annotations == nil {
|
||||||
rs.Annotations = make(map[string]string)
|
rs.Annotations = make(map[string]string)
|
||||||
}
|
}
|
||||||
if rs.Annotations[deploymentutil.RevisionAnnotation] != newRevision {
|
if rs.Annotations[deploymentutil.RevisionAnnotation] < newRevision {
|
||||||
rs.Annotations[deploymentutil.RevisionAnnotation] = newRevision
|
rs.Annotations[deploymentutil.RevisionAnnotation] = newRevision
|
||||||
annotationChanged = true
|
annotationChanged = true
|
||||||
glog.V(4).Infof("updating replica set %q's revision to %s - %+v\n", rs.Name, newRevision, rs)
|
glog.V(4).Infof("updating replica set %q's revision to %s - %+v\n", rs.Name, newRevision, rs)
|
||||||
|
Loading…
Reference in New Issue
Block a user