Skip to content

Commit

Permalink
Fix usage of --dangerous-allow-use-of-shared-namespace in hint
Browse files Browse the repository at this point in the history
Signed-off-by: Max Brauer <[email protected]>
  • Loading branch information
mamachanko committed Oct 31, 2023
1 parent 5b1294b commit 8846714
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 8846714

Please sign in to comment.