From ca2476304f8835d518b3e82ff6ab373cb34ca925 Mon Sep 17 00:00:00 2001 From: Maor Date: Mon, 24 Dec 2018 10:00:09 +0200 Subject: [PATCH] [delete/env] rename remov annotations function --- pkg/orca/env.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/orca/env.go b/pkg/orca/env.go index 1721905..683423c 100644 --- a/pkg/orca/env.go +++ b/pkg/orca/env.go @@ -368,7 +368,7 @@ func NewDeleteEnvCmd(out io.Writer) *cobra.Command { if nsExists { if utils.Contains([]string{"default", "kube-system", "kube-public"}, e.name) { - removeStateAnnotationsFromEnvironment(e.name, e.kubeContext, true) + removeAnnotationsFromEnvironment(e.name, e.kubeContext, true) } else { utils.DeleteNamespace(e.name, e.kubeContext, false) } @@ -657,8 +657,8 @@ func markEnvironmentAsUnknown(name, kubeContext string, print bool) error { return err } -// unlockEnvironment annotates a namespace with "unknown" -func removeStateAnnotationsFromEnvironment(name, kubeContext string, print bool) error { +// removeAnnotationsFromEnvironment removes annotations from a namespace +func removeAnnotationsFromEnvironment(name, kubeContext string, print bool) error { annotations := map[string]string{} err := utils.UpdateNamespace(name, kubeContext, annotations, map[string]string{}, print)