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:
Clayton Coleman 2017-11-14 22:16:04 -05:00
parent 5038eb2a3f
commit 287a3ed1e1
No known key found for this signature in database
GPG Key ID: 3D16906B4F1C5CB3

View File

@ -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()