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" -}}
|
2021-10-09 21:43:48 +00:00
|
|
|
{{- /* Generate chart and dependency values */ -}}
|
|
|
|
{{- include "common.setup" . }}
|
2021-02-23 17:21:54 +00:00
|
|
|
|
2021-09-09 18:55:33 +00:00
|
|
|
{{- /* Enable code-server add-on if required */ -}}
|
|
|
|
{{- if .Values.addons.codeserver.enabled }}
|
|
|
|
{{- include "common.addon.codeserver" . }}
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- /* Enable VPN add-on if required */ -}}
|
2021-09-12 15:39:01 +00:00
|
|
|
{{- if ne "disabled" .Values.addons.vpn.type -}}
|
2021-09-09 18:55:33 +00:00
|
|
|
{{- include "common.addon.vpn" . }}
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- /* Enable promtail add-on if required */ -}}
|
|
|
|
{{- if .Values.addons.promtail.enabled }}
|
|
|
|
{{- include "common.addon.promtail" . }}
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- /* Enable netshoot add-on if required */ -}}
|
|
|
|
{{- if .Values.addons.netshoot.enabled }}
|
|
|
|
{{- include "common.addon.netshoot" . }}
|
|
|
|
{{- end -}}
|
|
|
|
|
2021-09-09 19:48:43 +00:00
|
|
|
{{- /* Build the templates */ -}}
|
|
|
|
{{- include "common.pvc" . }}
|
|
|
|
|
2021-02-05 20:17:06 +00:00
|
|
|
{{- if .Values.serviceAccount.create -}}
|
|
|
|
{{- include "common.serviceAccount" . }}
|
|
|
|
{{- end -}}
|
2021-05-19 18:51:35 +00:00
|
|
|
|
2021-06-14 09:24:24 +00:00
|
|
|
{{- if .Values.controller.enabled }}
|
|
|
|
{{- if eq .Values.controller.type "deployment" }}
|
|
|
|
{{- include "common.deployment" . | nindent 0 }}
|
|
|
|
{{ else if eq .Values.controller.type "daemonset" }}
|
|
|
|
{{- include "common.daemonset" . | nindent 0 }}
|
|
|
|
{{ else if eq .Values.controller.type "statefulset" }}
|
|
|
|
{{- include "common.statefulset" . | nindent 0 }}
|
|
|
|
{{ else }}
|
|
|
|
{{- fail (printf "Not a valid controller.type (%s)" .Values.controller.type) }}
|
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
2021-05-19 18:51:35 +00:00
|
|
|
|
2021-09-02 10:52:34 +00:00
|
|
|
{{ include "common.rbac" . | nindent 0 }}
|
|
|
|
|
|
|
|
{{ include "common.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-04-10 14:33:51 +00:00
|
|
|
|
2021-09-02 10:52:34 +00:00
|
|
|
{{ include "common.configmap.portal" . | nindent 0 }}
|
|
|
|
|
|
|
|
{{ include "common.networkpolicy" . | nindent 0 }}
|
2021-05-29 11:15:53 +00:00
|
|
|
|
2021-02-05 20:17:06 +00:00
|
|
|
{{- end -}}
|