-
Notifications
You must be signed in to change notification settings - Fork 1.6k
namespace override while running make deploy #5148
Copy link
Copy link
Open
Labels
help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.kind/designCategorizes issue or PR as related to design.Categorizes issue or PR as related to design.kind/documentationCategorizes issue or PR as related to documentation.Categorizes issue or PR as related to documentation.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.priority/backlogHigher priority than priority/awaiting-more-evidence.Higher priority than priority/awaiting-more-evidence.
Metadata
Metadata
Assignees
Labels
help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.kind/designCategorizes issue or PR as related to design.Categorizes issue or PR as related to design.kind/documentationCategorizes issue or PR as related to documentation.Categorizes issue or PR as related to documentation.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.priority/backlogHigher priority than priority/awaiting-more-evidence.Higher priority than priority/awaiting-more-evidence.
What broke? What's expected?
There is an issue when calling make deploy, the issue is that the config/default/kustomization.yaml file.
it includes:
when you run
make deployit overrides all the namespaces as expected but it will cause issues when you are using some namespace based resources like therbac.Reproducing this issue
i have these markers in my controller
the rbac files that get generated via
make manifestsare fine too, but when you runmake deploythis happens:it happens because of the override and the other role for
infrastructurenamespace goes to theusersnamespace.some work arounds are:
config/default/kustomization.yamland apply namespace to everything manually or make a transformers file that transforms the namespaces for specific resourcesor any other solution that im missing, i would be happy to work on a solution.
KubeBuilder (CLI) Version
4.9.0
PROJECT version
3
Plugin versions
Other versions
No response
Extra Labels
/kind documentation