mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 23:37:01 +00:00
Apply set last applied should not need to fetch latest
Latest always refreshes from the server, and the server will return the updated object. In this case, we want to only access the local file.
This commit is contained in:
parent
5038eb2a3f
commit
287a3ed1e1
@ -126,7 +126,6 @@ func (o *SetLastAppliedOptions) Validate(f cmdutil.Factory, cmd *cobra.Command)
|
||||
Unstructured().
|
||||
NamespaceParam(o.Namespace).DefaultNamespace().
|
||||
FilenameParam(o.EnforceNamespace, &o.FilenameOptions).
|
||||
Latest().
|
||||
Flatten().
|
||||
Do()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user