refactor: common.pod-template
=> common.pod.template
This commit is contained in:
@ -30,7 +30,7 @@ spec:
|
||||
{{ include "common.selectorLabels" $top | nindent 8 }}
|
||||
spec:
|
||||
template:
|
||||
{{ include "common.pod-template" (list $top $pod "common.cronJob.pod") | nindent 8 }}
|
||||
{{ include "common.pod.template" (list $top $pod "common.cronJob.pod") | nindent 8 }}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "common.cronJob" -}}
|
||||
|
@ -16,7 +16,7 @@ spec:
|
||||
matchLabels:
|
||||
{{ include "common.selectorLabels" $top | nindent 6 }}
|
||||
template:
|
||||
{{ include "common.pod-template" . | nindent 4 }}
|
||||
{{ include "common.pod.template" . | nindent 4 }}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "common.deployment" -}}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{{/* vim: set filetype=mustache: */}}
|
||||
|
||||
{{- define "common.pod-template.tpl" -}}
|
||||
{{- define "common.pod.template.tpl" -}}
|
||||
{{- $top := first . -}}
|
||||
{{- $values := index . 1 -}}
|
||||
metadata:
|
||||
@ -30,6 +30,6 @@ spec:
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "common.pod-template" -}}
|
||||
{{- include "common.utils.merge" (append . "common.pod-template.tpl") -}}
|
||||
{{- define "common.pod.template" -}}
|
||||
{{- include "common.utils.merge" (append . "common.pod.template.tpl") -}}
|
||||
{{- end -}}
|
||||
|
Reference in New Issue
Block a user