mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Fix rolling update if namespace is empty.
This commit is contained in:
parent
eee9804e97
commit
62c4187e78
@ -90,6 +90,9 @@ Examples:
|
|||||||
checkErr(err)
|
checkErr(err)
|
||||||
newRc := obj.(*api.ReplicationController)
|
newRc := obj.(*api.ReplicationController)
|
||||||
|
|
||||||
|
if len(namespace) == 0 {
|
||||||
|
namespace = api.NamespaceDefault
|
||||||
|
}
|
||||||
updater := kubectl.NewRollingUpdater(namespace, client)
|
updater := kubectl.NewRollingUpdater(namespace, client)
|
||||||
|
|
||||||
// fetch rc
|
// fetch rc
|
||||||
|
Loading…
Reference in New Issue
Block a user