distroless
This commit is contained in:
parent
01137cc84b
commit
ffc3b906cd
1 changed files with 9 additions and 4 deletions
|
@ -198,15 +198,20 @@ IngressClass parameters.
|
||||||
Extra modules.
|
Extra modules.
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "extraModules" -}}
|
{{- define "extraModules" -}}
|
||||||
|
|
||||||
- name: {{ .name }}
|
- name: {{ .name }}
|
||||||
image: {{ .image }}
|
image: {{ .image }}
|
||||||
|
{{- if .distroless | default false }}
|
||||||
|
command: ['/init_module']
|
||||||
|
{{- else }}
|
||||||
command: ['sh', '-c', '/usr/local/bin/init_module.sh']
|
command: ['sh', '-c', '/usr/local/bin/init_module.sh']
|
||||||
{{- if (.containerSecurityContext) }}
|
{{- end }}
|
||||||
|
{{- if .containerSecurityContext }}
|
||||||
securityContext: {{ .containerSecurityContext | toYaml | nindent 4 }}
|
securityContext: {{ .containerSecurityContext | toYaml | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .resources }}
|
||||||
|
resources: {{ .resources | toYaml | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: {{ toYaml "modules"}}
|
- name: {{ toYaml "modules"}}
|
||||||
mountPath: {{ toYaml "/modules_mount"}}
|
mountPath: {{ toYaml "/modules_mount"}}
|
||||||
|
{{- end -}}
|
||||||
{{- end -}}
|
|
Loading…
Reference in a new issue