Merge pull request #86474 from zhouya0/fix_apply_set_last_applied_namespace
fix kubectl apply set last applied namespace error Kubernetes-commit: 99715d7e60d2b5200e456c5e82e97778e5378c73
This commit is contained in:
commit
e6fe1923da
|
|
@ -206,7 +206,7 @@ func (o *SetLastAppliedOptions) RunSetLastApplied() error {
|
|||
return err
|
||||
}
|
||||
helper := resource.NewHelper(client, mapping)
|
||||
finalObj, err = helper.Patch(o.namespace, info.Name, patch.PatchType, patch.Patch, nil)
|
||||
finalObj, err = helper.Patch(info.Namespace, info.Name, patch.PatchType, patch.Patch, nil)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue