-
Notifications
You must be signed in to change notification settings - Fork 780
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
include platform flag or more granular rbac controls in helm chart for openshift #2102
Comments
@ctml91 I also experienced this issue |
I just tried to reproduce this by updating manifest_staging/charts/gatekeeper/values.yaml to
After running
helm version If I update values.yaml to
The generated yaml is:
And installing with
|
@ritazh |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
Describe the solution you'd like
To add a flag for the platform in helm chart to handle appropriate RBAC and annotations or more granular RBAC . In OpenShit the default SCCs do not grant privileges to allow one to use seccomp. #842 discusses it a bit, and the recommendation now included in the docs is to apply some additional privileges in one of the roles though manually (after install?). #1127 has a similar example, so I've adjusted it and applied the below CR/CRB prior to installing via helm in order to get the installation to complete.
It would be preferable to have an option to handle this in the helm chart, either automatically by setting a platform variable (e.g. openshift), or some more granular controls in the chart to specify the additional privileges required to use the OCP SCC.
In addition, whatever I try I cannot get the seccomp annotations removed during the helm install.
My values.yaml has the default annotation removed by setting it to
{}
, I've even tried an arbitrary one to try and prevent the default seccomp annotation from getting added.And the deployment created by helm still adds this annotation, can't figure out why because the annotation is only a default setting anything else should override that - not be appended to it? Because the annotation is still included, it means it fails to come up on OCP. I inspected the helm chart but from the deployment templates can't figure out why it's still included.
Environment: OCP 4.10
kubectl version
): v1.23.5The text was updated successfully, but these errors were encountered: