Skip to content

Commit

Permalink
feat: support securityContext and podSecurityContext configuration in…
Browse files Browse the repository at this point in the history
… helm chart

Signed-off-by: wparr-circle <william.parr@circle.com>
  • Loading branch information
wparr-circle committed Jun 24, 2024
1 parent 0723820 commit 27b90e8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/pvc-autoresizer/templates/controller/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ spec:
volumeMounts:
- name: certs
mountPath: /certs
securityContext:
{{- toYaml .Values.controller.securityContext | nindent 12 }}
{{- with .Values.controller.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand All @@ -83,3 +85,5 @@ spec:
secret:
defaultMode: 420
secretName: {{ template "pvc-autoresizer.fullname" . }}-controller
securityContext:
{{- toYaml .Values.controller.podSecurityContext | nindent 8 }}
15 changes: 15 additions & 0 deletions charts/pvc-autoresizer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,21 @@ controller:
# controller.podAnnotations -- Annotations to be added to controller pods.
podAnnotations: {}

# controller.podSecurityContext -- Security Context to be applied to the controller pods.
podSecurityContext: {}

# controller.securityContext -- Security Context to be applied to the controller container within controller pods.
securityContext: {}
# allowPrivilegeEscalation: false
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
# seccompProfile:
# type: RuntimeDefault

# controller.terminationGracePeriodSeconds -- Specify terminationGracePeriodSeconds.
terminationGracePeriodSeconds: # 10

Expand Down

0 comments on commit 27b90e8

Please sign in to comment.