mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 00:47:04 +02:00
* fix(common): fix incorrect route default values (#91) * fix(common): make `sectionName` optional for route parentRefs * fix(common): name primary route correctly * feat(common): add controller.type of cronjob (#87) * fix(common): Fix invalid persistence type message (#85) * feat(common): Allow setting container restartPolicy Co-authored-by: András Maróy <andras@maroy.hu> Co-authored-by: loeken <loeken@internetz.me> Co-authored-by: Han Cen <hi@chamburr.com>
18 lines
796 B
Smarty
18 lines
796 B
Smarty
{{/*
|
|
Renders the controller object required by the chart.
|
|
*/}}
|
|
{{- define "bjw-s.common.render.controller" -}}
|
|
{{- if .Values.controller.enabled -}}
|
|
{{- if eq .Values.controller.type "deployment" -}}
|
|
{{- include "bjw-s.common.class.deployment" . | nindent 0 -}}
|
|
{{- else if eq .Values.controller.type "cronjob" -}}
|
|
{{- include "bjw-s.common.class.cronjob" . | nindent 0 -}}
|
|
{{ else if eq .Values.controller.type "daemonset" -}}
|
|
{{- include "bjw-s.common.class.daemonset" . | nindent 0 -}}
|
|
{{ else if eq .Values.controller.type "statefulset" -}}
|
|
{{- include "bjw-s.common.class.statefulset" . | nindent 0 -}}
|
|
{{ else -}}
|
|
{{- fail (printf "Not a valid controller.type (%s)" .Values.controller.type) -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- end -}}
|