-
Notifications
You must be signed in to change notification settings - Fork 1.6k
🐛 (helm/v1-alpha): Use namePrefix from config/default/kustomization.yaml as prefix for RBAC rules and project name only if this value cannot be found. #4571
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
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
HI @mkarlheim Could you please check this one? |
03a08a9
to
8775274
Compare
8775274
to
e1b8916
Compare
e1b8916
to
bc1f6dc
Compare
Awesome, thanks! I'll try to do it shortly. |
Hi @camilamacedo86, using the namePrefix by default and the project name as fallback is an improvement, but the core issue still exists in my opinion:
So these generated ClusterRoles are not considered with adding a prefix at all. There must be something like a regex replace like |
Hi @mkarlheim
When you change your project you need to re-run the helm plugin Also, ensure that you run |
Closing because I think we will need to fix it another way, by changing the scaffolds and adding a prefix in the chart values instead. |
bc1f6dc
to
c13a625
Compare
/hold cancel |
Hi @mkarlheim Can you please verify this one now? However, ultimately, we will need to change the Helm plugin implementation to generate the chart from the kustomize install, using YAML instead. See; #4833 |
c13a625
to
faa9608
Compare
…l as prefix for RBAC rules and project name only if this value cannot be found.
faa9608
to
c7f409d
Compare
Hi @camilamacedo86, many thanks for your efforts! Unfortunately, it is still not the expected behaviour. All roles that are created with the Kustomize/v2 plugin, don't have a prefix in their generated yaml by default. All the roles are prefixed in the moment when the Kustomize build (make build-installer) is executed as you described in #4833. The function I was also thinking about using the Kustomize build output as the base for the Helm chart generation, as this would adress the issue with the namePrefix. Another argument for your proposal would be: Best |
/test pull-kubebuilder-e2e-k8s-1-33-0 |
Closes: #4566