From 88467145e5f17a8e8291691f8ccf1a2c9ba65c56 Mon Sep 17 00:00:00 2001 From: Max Brauer Date: Tue, 31 Oct 2023 10:46:17 +0100 Subject: [PATCH] Fix usage of --dangerous-allow-use-of-shared-namespace in hint Signed-off-by: Max Brauer --- cli/pkg/kctrl/cmd/core/secure_namespace_flags.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/pkg/kctrl/cmd/core/secure_namespace_flags.go b/cli/pkg/kctrl/cmd/core/secure_namespace_flags.go index 57385bfd3..303a3d3ba 100644 --- a/cli/pkg/kctrl/cmd/core/secure_namespace_flags.go +++ b/cli/pkg/kctrl/cmd/core/secure_namespace_flags.go @@ -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