Namespace override doesn't work in namespace mentioned in spec (like in rolebinding)
rishi-anand opened this issue · 1 comments
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 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
I can take this for dev changes.