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
|
|
|
{{- /* Enable code-server add-on if required */ -}}
|
|
|
|
{{- if .Values.addons.codeserver.enabled }}
|
|
|
|
{{- include "common.addon.codeserver" . }}
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- /* Enable VPN add-on if required */ -}}
|
|
|
|
{{- if .Values.addons.vpn.enabled }}
|
|
|
|
{{- include "common.addon.vpn" . }}
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- /* Build the templates */ -}}
|
|
|
|
{{- include "common.pvc" . }}
|
|
|
|
{{- print "---" | nindent 0 -}}
|
|
|
|
{{- if .Values.serviceAccount.create -}}
|
|
|
|
{{- include "common.serviceAccount" . }}
|
|
|
|
{{- print "---" | nindent 0 -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- if eq .Values.controllerType "deployment" }}
|
|
|
|
{{- include "common.deployment" . | nindent 0 }}
|
|
|
|
{{ else if eq .Values.controllerType "daemonset" }}
|
|
|
|
{{- include "common.daemonset" . | nindent 0 }}
|
|
|
|
{{ else if eq .Values.controllerType "statefulset" }}
|
|
|
|
{{- include "common.statefulset" . | nindent 0 }}
|
|
|
|
{{- end -}}
|
|
|
|
{{- print "---" | nindent 0 -}}
|
|
|
|
{{ include "common.service" . | nindent 0 }}
|
2021-02-28 15:53:33 +00:00
|
|
|
{{ include "common.appService" . | nindent 0 }}
|
2021-02-05 20:17:06 +00:00
|
|
|
{{- print "---" | nindent 0 -}}
|
|
|
|
{{ include "common.ingress" . | nindent 0 }}
|
|
|
|
{{- print "---" | nindent 0 -}}
|
2021-02-28 15:53:33 +00:00
|
|
|
{{ include "common.appIngress" . | nindent 0 }}
|
|
|
|
{{ include "common.storage.permissions" . | nindent 0 }}
|
2021-02-05 20:17:06 +00:00
|
|
|
{{- end -}}
|