mirror of
https://github.com/helm/helm.git
synced 2026-02-19 02:39:04 -05:00
15 lines
485 B
YAML
15 lines
485 B
YAML
{{- define "common.container.tpl" -}}
|
|
name: {{ .Chart.Name }}
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
ports:
|
|
- name: http
|
|
containerPort: 80
|
|
resources:
|
|
{{ toYaml .Values.resources | indent 2 }}
|
|
{{- end -}}
|
|
{{- define "common.container" -}}
|
|
{{- /* clear new line so indentation works correctly */ -}}
|
|
{{- println "" -}}
|
|
{{- include "common.util.merge" (append . "common.container.tpl") | indent 8 -}}
|
|
{{- end -}}
|