From 287a3ed1e154bcb5b363cf35ac509addf6415b88 Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Tue, 14 Nov 2017 22:16:04 -0500 Subject: [PATCH] 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. --- pkg/kubectl/cmd/apply_set_last_applied.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/kubectl/cmd/apply_set_last_applied.go b/pkg/kubectl/cmd/apply_set_last_applied.go index 39ea7468a92..4e8bb38264e 100644 --- a/pkg/kubectl/cmd/apply_set_last_applied.go +++ b/pkg/kubectl/cmd/apply_set_last_applied.go @@ -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()