mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
use default namespace to do rollingupdate
This commit is contained in:
parent
86a0193f51
commit
5c1c84f6c0
@ -89,13 +89,10 @@ func (f *Factory) NewCmdRollingUpdate(out io.Writer) *cobra.Command {
|
||||
checkErr(err)
|
||||
newRc := obj.(*api.ReplicationController)
|
||||
|
||||
if len(namespace) == 0 {
|
||||
namespace = api.NamespaceDefault
|
||||
}
|
||||
updater := kubectl.NewRollingUpdater(namespace, client)
|
||||
updater := kubectl.NewRollingUpdater(cmdNamespace, client)
|
||||
|
||||
// fetch rc
|
||||
oldRc, err := client.ReplicationControllers(namespace).Get(oldName)
|
||||
oldRc, err := client.ReplicationControllers(cmdNamespace).Get(oldName)
|
||||
checkErr(err)
|
||||
|
||||
var hasLabel bool
|
||||
|
Loading…
Reference in New Issue
Block a user