You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to create a configMapGenerator via kustomize edit add configmap, it is not possible to specify a namespace for that resource. Running the following command:
stormqueen1990
changed the title
edit add configmap does not support specifying namespace
kustomize edit add configmap does not support specifying namespace
Oct 9, 2023
What happened?
When trying to create a
configMapGenerator
viakustomize edit add configmap
, it is not possible to specify a namespace for that resource. Running the following command:will output
Error: unknown flag: --namespace
However, editing the kustomization file to add a namespace, like so:
then running
kustomize build
results in a ConfigMap configuration containing a namespace:kustomize build .
What did you expect to happen?
A namespace gets added to the
configMapGenerator
.How can we reproduce it (as minimally and precisely as possible)?
Just running
will demonstrate the issue.
Expected output
Actual output
Error: unknown flag: --namespace
Kustomize version
v5.1.1
Operating system
MacOS
The text was updated successfully, but these errors were encountered: