Skip to content

Commit

Permalink
[delete/env] rename remov annotations function
Browse files Browse the repository at this point in the history
  • Loading branch information
maorfr committed Dec 24, 2018
1 parent 49721d5 commit ca24763
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/orca/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit ca24763

Please sign in to comment.