Skip to content

Commit

Permalink
Fix cron volume
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwatson484 committed Aug 21, 2021
1 parent 5083028 commit ba105f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm-library/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v2
name: helm-library
description: A Helm library chart
type: library
version: 2.5.1
version: 2.5.2
7 changes: 7 additions & 0 deletions helm-library/templates/_cron-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ spec:
template:
spec:
restartPolicy: {{ required (printf $requiredMsg "cronJob.restartPolicy") .Values.cronJob.restartPolicy | quote }}
securityContext:
fsGroup: {{ .Values.deployment.runAsUser | default 1000 }}
runAsUser: {{ .Values.deployment.runAsUser | default 1000 }}
runAsNonRoot: {{ .Values.deployment.runAsNonRoot | default true }}
volumes:
- name: temp-dir
emptyDir: {}
containers:
-
{{ include "helm-library.container.tpl" . | indent 12 }}
Expand Down

0 comments on commit ba105f3

Please sign in to comment.