File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -277,6 +277,13 @@ pod.beta.kubernetes.io/init-containers: null
277
277
name: { { $fullname } }-purge
278
278
key: { { $key } }
279
279
{ {- end } }
280
+ { {- range $key , $value := .Values.purge.secretEnvs } }
281
+ - name: { { $key } }
282
+ valueFrom:
283
+ secretKeyRef:
284
+ name: { { $fullname } }-purge
285
+ key: { { $key } }
286
+ { {- end } }
280
287
{ {- end -} }
281
288
282
289
{ {- define " osf.certificates.initContainer" -} }
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ metadata:
11
11
release : {{ .Release.Name }}
12
12
spec :
13
13
schedule : {{ default "0 22 * * 6" .Values.purge.schedule | quote }}
14
- startingDeadlineSeconds : 900
14
+ startingDeadlineSeconds : {{ default 900 .Values.purge.startingDeadlineSeconds }}
15
15
activeDeadlineSeconds : {{ default 14400 .Values.purge.activeDeadlineSeconds }}
16
16
concurrencyPolicy : Forbid
17
17
jobTemplate :
53
53
command :
54
54
- /bin/sh
55
55
- -c
56
- - python3 -m scripts.purge_trashed_files {{- if .Values.purge.num_records }} --num {{ .Values.purge.num_records }} {{- end }}
56
+ - su-exec www-data python3 -m scripts.purge_trashed_files {{- if .Values.purge.num_records }} --num {{ .Values.purge.num_records }} {{- end }}
57
57
env :
58
58
- name : DJANGO_SETTINGS_MODULE
59
59
value : api.base.settings
73
73
{{- end }}
74
74
volumes :
75
75
{{- include "osf.volumes" . | nindent 12 }}
76
+ - name : purge-secret
77
+ secret :
78
+ secretName : {{ include "osf.purge.fullname" .}}
76
79
- name : log
77
80
{{- if .Values.purge.persistence.enabled }}
78
81
persistentVolumeClaim :
You can’t perform that action at this time.
0 commit comments