Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespace override doesn't work in namespace mentioned in spec (like in rolebinding) #70

Open
rishi-anand opened this issue Jan 31, 2021 · 1 comment

Comments

@rishi-anand
Copy link

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

@rishi-anand
Copy link
Author

I can take this for dev changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant