2021-02-05 20:17:06 +00:00
|
|
|
{{/*
|
|
|
|
Main entrypoint for the common library chart. It will render all underlying templates based on the provided values.
|
|
|
|
*/}}
|
|
|
|
{{- define "common.all" -}}
|
|
|
|
{{- /* Merge the local chart values and the common chart defaults */ -}}
|
|
|
|
{{- include "common.values.setup" . }}
|
2021-02-23 17:21:54 +00:00
|
|
|
|
2021-02-05 20:17:06 +00:00
|
|
|
{{- /* Build the templates */ -}}
|
|
|
|
{{- include "common.pvc" . }}
|
2021-05-19 18:51:35 +00:00
|
|
|
|
2021-02-05 20:17:06 +00:00
|
|
|
{{- if .Values.serviceAccount.create -}}
|
|
|
|
{{- include "common.serviceAccount" . }}
|
|
|
|
{{- end -}}
|
2021-05-19 18:51:35 +00:00
|
|
|
|
|
|
|
{{- if eq .Values.controller.type "deployment" }}
|
2021-02-05 20:17:06 +00:00
|
|
|
{{- include "common.deployment" . | nindent 0 }}
|
2021-05-19 18:51:35 +00:00
|
|
|
{{ else if eq .Values.controller.type "daemonset" }}
|
2021-02-05 20:17:06 +00:00
|
|
|
{{- include "common.daemonset" . | nindent 0 }}
|
2021-05-19 18:51:35 +00:00
|
|
|
{{ else if eq .Values.controller.type "statefulset" }}
|
2021-02-05 20:17:06 +00:00
|
|
|
{{- include "common.statefulset" . | nindent 0 }}
|
2021-05-19 18:51:35 +00:00
|
|
|
{{ else }}
|
|
|
|
{{- fail (printf "Not a valid controller.type (%s)" .Values.controller.type) }}
|
2021-02-05 20:17:06 +00:00
|
|
|
{{- end -}}
|
2021-05-19 18:51:35 +00:00
|
|
|
|
2021-05-10 12:13:17 +00:00
|
|
|
{{ include "common.classes.hpa" . | nindent 0 }}
|
2021-05-19 18:51:35 +00:00
|
|
|
|
|
|
|
{{ include "common.service" . | nindent 0 }}
|
|
|
|
|
2021-02-05 20:17:06 +00:00
|
|
|
{{ include "common.ingress" . | nindent 0 }}
|
2021-05-19 18:51:35 +00:00
|
|
|
|
2021-05-10 12:13:17 +00:00
|
|
|
{{- if .Values.secret -}}
|
|
|
|
{{ include "common.secret" . | nindent 0 }}
|
|
|
|
{{- end -}}
|
2021-05-19 20:08:21 +00:00
|
|
|
{{ include "common.class.portal" . | nindent 0 }}
|
2021-04-10 14:33:51 +00:00
|
|
|
|
2021-05-19 18:51:35 +00:00
|
|
|
{{ include "common.class.mountPermissions" . | nindent 0 }}
|
2021-05-29 11:15:53 +00:00
|
|
|
{{ include "common.classes.externalInterfaces" . | nindent 0 }}
|
|
|
|
|
2021-02-05 20:17:06 +00:00
|
|
|
{{- end -}}
|