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
Though even kustomize doesn't modify namespace mentioned in spec, but sometimes it becomes problematic to handle such cases when I am applying rolebinding, clusterrolebinding or any crd which has namespace parameter and has to be changed on the fly.
Steps to reproduce the issue:
Modifying namespace in Unstructured will only modify metadata. In my pet project, based on flag, I do a regex check on manifest string to replace namespace. In content string we can do a regex to change namespace to desired value and changing namespace in whole manifest can be dependent on userinput.
Expected behavior
Namespace can be overwritten at metadata and spec.
Screenshots
Additional context
The text was updated successfully, but these errors were encountered:
Describe the bug
Though even kustomize doesn't modify namespace mentioned in spec, but sometimes it becomes problematic to handle such cases when I am applying
rolebinding
,clusterrolebinding
or anycrd
which has namespace parameter and has to be changed on the fly.Steps to reproduce the issue:
Modifying
namespace
inUnstructured
will only modify metadata. In my pet project, based on flag, I do a regex check on manifest string to replace namespace. Incontent
string we can do a regex to change namespace to desired value and changing namespace in whole manifest can be dependent on userinput.Expected behavior
Namespace can be overwritten at metadata and spec.
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: