19 lines
608 B
YAML
19 lines
608 B
YAML
{{/* vim: set filetype=mustache: */}}
|
|
|
|
{{- define "common.container.tpl" -}}
|
|
{{- $top := first . -}}
|
|
{{- $container := index . 1 -}}
|
|
{{- $image := $container.image | default (dict) -}}
|
|
name: {{ $top.Chart.Name }}
|
|
securityContext:
|
|
{{- toYaml $container.securityContext | nindent 4 }}
|
|
image: "{{ $image.repository }}:{{ $image.tag | default $top.Chart.AppVersion }}"
|
|
imagePullPolicy: {{ $container.image.pullPolicy }}
|
|
resources:
|
|
{{- toYaml $container.resources | nindent 4 }}
|
|
{{- end -}}
|
|
|
|
{{- define "common.container" -}}
|
|
{{- include "common.utils.merge" (append . "common.container.tpl") -}}
|
|
{{- end -}}
|