From 843df1fec36dc54bfaf406b10e7a84afe08a85ae Mon Sep 17 00:00:00 2001 From: Suraj Deshmukh Date: Thu, 12 Oct 2017 19:47:12 +0530 Subject: [PATCH] fix(kedge create): add flag `--save-config` By enabling this flag for `kubectl create` by default, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform `kedge apply` on this object in the future. --- cmd/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/create.go b/cmd/create.go index 77406a9f1..c3dd61052 100644 --- a/cmd/create.go +++ b/cmd/create.go @@ -34,7 +34,7 @@ var createCmd = &cobra.Command{ os.Exit(-1) } - kubectlCommand := []string{"create"} + kubectlCommand := []string{"create", "--save-config"} // Only setting the namespace flag to kubectl when --namespace is passed // explicitly by the user