Skip to content

Commit 606e658

Browse files
authored
Merge pull request #1388 from mamachanko/topic/mamachanko/develop/fix-dangerous-hint
Fix usage of `--dangerous-allow-use-of-shared-namespace` in hint
2 parents 5b1294b + 8846714 commit 606e658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/pkg/kctrl/cmd/core/secure_namespace_flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (s *SecureNamespaceFlags) CheckForDisallowedSharedNamespaces(namespace stri
3030
if namespace == ns {
3131
return fmt.Errorf("Creating sensitive resources in a shared namespace (%s)"+
3232
"(hint: Specify a namespace using the '-n' flag or use kubeconfig to change default namespace 'kubectl config set-context --current --namespace=private-namespace'."+
33-
"Or use '--dangerous-allow-use-of-shared-namespace=%s' to allow use of shared namespace)", namespace, namespace)
33+
"Or use '--dangerous-allow-use-of-shared-namespace' to allow use of shared namespace)", namespace)
3434
}
3535
}
3636
return nil

0 commit comments

Comments
 (0)