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:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user