Skip to content

Commit

Permalink
Merge pull request #1388 from mamachanko/topic/mamachanko/develop/fix…
Browse files Browse the repository at this point in the history
…-dangerous-hint

Fix usage of `--dangerous-allow-use-of-shared-namespace` in hint
  • Loading branch information
100mik authored Oct 31, 2023
2 parents 5b1294b + 8846714 commit 606e658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/pkg/kctrl/cmd/core/secure_namespace_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (s *SecureNamespaceFlags) CheckForDisallowedSharedNamespaces(namespace stri
if namespace == ns {
return fmt.Errorf("Creating sensitive resources in a shared namespace (%s)"+
"(hint: Specify a namespace using the '-n' flag or use kubeconfig to change default namespace 'kubectl config set-context --current --namespace=private-namespace'."+
"Or use '--dangerous-allow-use-of-shared-namespace=%s' to allow use of shared namespace)", namespace, namespace)
"Or use '--dangerous-allow-use-of-shared-namespace' to allow use of shared namespace)", namespace)
}
}
return nil
Expand Down

0 comments on commit 606e658

Please sign in to comment.