mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
make correction to two variables in inverse order
This commit is contained in:
parent
935a3e20c0
commit
849a8df35d
@ -520,7 +520,7 @@ func (r *RollingUpdater) cleanupWithClients(oldRc, newRc *api.ReplicationControl
|
|||||||
if err := r.c.ReplicationControllers(r.ns).Delete(oldRc.Name, nil); err != nil {
|
if err := r.c.ReplicationControllers(r.ns).Delete(oldRc.Name, nil); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
fmt.Fprintf(config.Out, "Renaming %s to %s\n", newRc.Name, oldRc.Name)
|
fmt.Fprintf(config.Out, "Renaming %s to %s\n", oldRc.Name, newRc.Name)
|
||||||
return Rename(r.c, newRc, oldRc.Name)
|
return Rename(r.c, newRc, oldRc.Name)
|
||||||
case PreserveRollingUpdateCleanupPolicy:
|
case PreserveRollingUpdateCleanupPolicy:
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user