mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Merge pull request #4518 from brendandburns/master
Fix rolling update if namespace is empty.
This commit is contained in:
commit
a01c09a61a
@ -90,6 +90,9 @@ Examples:
|
||||
checkErr(err)
|
||||
newRc := obj.(*api.ReplicationController)
|
||||
|
||||
if len(namespace) == 0 {
|
||||
namespace = api.NamespaceDefault
|
||||
}
|
||||
updater := kubectl.NewRollingUpdater(namespace, client)
|
||||
|
||||
// fetch rc
|
||||
|
Loading…
Reference in New Issue
Block a user