Skip to content
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

add securityContext #779

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add securityContext #779

wants to merge 1 commit into from

Conversation

rmetzler
Copy link

@rmetzler rmetzler commented Nov 11, 2024

This PR just adds a way to add a securityContext in the Helm Chart

@@ -24,6 +24,7 @@ spec:
{{ toYaml . | indent 8 }}
{{- end }}
spec:
securityContext: {{ .Values.securityContext | toYaml | nindent 8 }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not very familiar with the chart templating engine, but should this not be something like:

{{- with .Values.securityContext}}
      securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants