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

Error deploying when defining securityContext in values.yaml #266

Open
elaurensx opened this issue Oct 3, 2024 · 0 comments
Open

Error deploying when defining securityContext in values.yaml #266

elaurensx opened this issue Oct 3, 2024 · 0 comments

Comments

@elaurensx
Copy link

elaurensx commented Oct 3, 2024

Chart version: 0.9.8

The deployment.yaml template pulls in securityContext values in the wrong place.

Solution

Swap

  • spec.template.spec.{{- with $context := .Values.pod.securityContext.container }} to .pod
  • spec.template.spec.containers.{{- with $context := .Values.pod.securityContext.pod }} to .container
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

No branches or pull requests

1 participant