mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Merge pull request #34145 from lukaszo/revision
Automatic merge from submit-queue Fix missleading comment **What this PR does / why we need it**: It just fixes misleading comment. It took me some time to figure out real behavior.
This commit is contained in:
commit
1a123f9fc5
@ -50,7 +50,8 @@ func (dc *DeploymentController) rollback(deployment *extensions.Deployment, toRe
|
|||||||
}
|
}
|
||||||
if v == *toRevision {
|
if v == *toRevision {
|
||||||
glog.V(4).Infof("Found replica set %q with desired revision %d", rs.Name, v)
|
glog.V(4).Infof("Found replica set %q with desired revision %d", rs.Name, v)
|
||||||
// rollback by copying podTemplate.Spec from the replica set, and increment revision number by 1
|
// rollback by copying podTemplate.Spec from the replica set
|
||||||
|
// revision number will be incremented during the next getAllReplicaSetsAndSyncRevision call
|
||||||
// no-op if the the spec matches current deployment's podTemplate.Spec
|
// no-op if the the spec matches current deployment's podTemplate.Spec
|
||||||
deployment, performedRollback, err := dc.rollbackToTemplate(deployment, rs)
|
deployment, performedRollback, err := dc.rollbackToTemplate(deployment, rs)
|
||||||
if performedRollback && err == nil {
|
if performedRollback && err == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user