-
Notifications
You must be signed in to change notification settings - Fork 416
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
Can not disable generation of securityContext in grafana deployment #987
Comments
The problem might be that you are sending |
We tried setting the following: securityContext:
seccompProfile: {} Which also lead to the default values being set. We also tried to override the following: type: RuntimeDefault Using an empty value for that is kinda impossible as we can not use
Likewise when we try to use an emptystring for
|
@AlexanderThaller could you elaborate more why both |
@weisdd I discussed this with @NissesSenap on Slack. The issue is that setting a seccomp profile is disallowed in the cluster grafana-operator is supposed to run in. Defining any kind of seccomp profile I hope that makes sense. I will try to write a pullrequest to add a setting to disable the generation of seccomp profiles if thats ok with you. |
@AlexanderThaller Sure, feel free to raise a PR. |
It would be nice if we can keep the default settings, i really do enjoy best practices when it comes to security. |
@AlexanderThaller did you have a chance to look into this? |
Not yet sorry pretty busy at the moment @NissesSenap |
Just dropping by to let you know that I'm experiencing the same problem. An absolutely demo-purposes-only workaround is to manually edit the operator-managed deployment to have |
Describe the bug
We want to completly remove the securityContext entry from the grafana deployment to make it work within our openshift environment. But we don't seem to be able to completly disable the generation of that section.
Version
v5.0.0-rc1
To Reproduce
Greate a Grafana instance with the following definition:
Which creates the following deployment:
Expected behavior
We would expect that none of those entries appear in the deployment file.
Suspect component/Location where the bug might be occurring
unknown
Runtime (please complete the following information):
4.12.8
The text was updated successfully, but these errors were encountered: