-
Notifications
You must be signed in to change notification settings - Fork 18
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
Allow configuration of securityContext for PSA/PSS usage #259
base: main
Are you sure you want to change the base?
Conversation
@derbauer97 I can't approve PRs anymore, but @Smirl or @gjtempleton can have a look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few small comments/queries.
@@ -15,7 +15,7 @@ type: application | |||
# This is the chart version. This version number should be incremented each time you make changes | |||
# to the chart and its templates, including the app version. | |||
# Versions are expected to follow Semantic Versioning (https://semver.org/) | |||
version: 1.0.2 | |||
version: 1.0.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this a minor version bump as we're adding new functionality?
@@ -68,9 +68,9 @@ spec: | |||
resources: | |||
{{- toYaml .Values.resources | nindent 12 }} | |||
securityContext: | |||
allowPrivilegeEscalation: false | |||
{{- toYaml .Values.containerSecurityContext | nindent 12 }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This appears to be over-indenting by 2.
# Specifies Container Security Context | ||
containerSecurityContext: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make this a bit more specific, as it only applies to the manager container, not the kube-rbac-proxy container if enabled.
For Migration to PSS/PSA you need to set certain settings in securityContext in pod or and container security Context. Therefore i added the option to set these via helmvalues.
Reference: https://kubernetes.io/docs/concepts/security/pod-security-standards/