File tree Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Expand file tree Collapse file tree 2 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 44
44
- name : {{ . }}
45
45
{{- end }}
46
46
volumes :
47
- {{- if .Values.localsettingspy }}
47
+ {{- if .Values.localsettingspy }}
48
48
- name : localsettingspy
49
49
configMap :
50
50
name : {{ $fullName }}-localsettingspy
62
62
{{- end }}
63
63
{{- end }}
64
64
initContainers :
65
- {{- if .Values.cloudsql.enabled }}
65
+ {{- if .Values.cloudsql.enabled }}
66
66
- name : cloudsql-proxy
67
67
image : {{ .Values.cloudsql.image.repository }}:{{ .Values.cloudsql.image.tag }}
68
68
imagePullPolicy : {{ .Values.cloudsql.image.pullPolicy }}
79
79
{{- if .Values.cloudsql.use_private_ip }}
80
80
- " -ip_address_types=PRIVATE"
81
81
{{- end }}
82
+ volumeMounts :
83
+ {{- range .Values.initializer.extraVolumes }}
84
+ - name : userconfig-{{ .name }}
85
+ readOnly : true
86
+ mountPath : {{ .path }}
87
+ subPath : {{ .subPath }}
88
+ {{- end }}
82
89
{{- end }}
83
90
- name : wait-for-db
84
91
command :
@@ -103,6 +110,13 @@ spec:
103
110
{{- end }}
104
111
resources :
105
112
{{- toYaml .Values.initializer.resources | nindent 10 }}
113
+ volumeMounts :
114
+ {{- range .Values.initializer.extraVolumes }}
115
+ - name : userconfig-{{ .name }}
116
+ readOnly : true
117
+ mountPath : {{ .path }}
118
+ subPath : {{ .subPath }}
119
+ {{- end }}
106
120
containers :
107
121
- name : initializer
108
122
image : " {{ template " initializer.repository" . }}:{{ .Values.tag }}"
@@ -112,7 +126,7 @@ spec:
112
126
{{- toYaml .Values.securityContext.djangoSecurityContext | nindent 10 }}
113
127
{{- end }}
114
128
volumeMounts :
115
- {{- if .Values.localsettingspy }}
129
+ {{- if .Values.localsettingspy }}
116
130
- name : localsettingspy
117
131
readOnly : true
118
132
mountPath : /app/dojo/settings/local_settings.py
Original file line number Diff line number Diff line change @@ -383,9 +383,9 @@ initializer:
383
383
memory : 512Mi
384
384
# Additional environment variables injected to the initializer job pods.
385
385
extraEnv : []
386
- # Array of additional volume mount points for the initializer job pods .
386
+ # Array of additional volume mount points for the initializer job (init)containers .
387
387
extraVolumeMounts : []
388
- # A list of extra volumes to mount .
388
+ # A list of extra volumes to attach to the initializer job pods .
389
389
extraVolumes : []
390
390
391
391
# staticName defines whether name of the job will be the same (e.g., "defectdojo-initializer")
You can’t perform that action at this time.
0 commit comments