* Move Postgresql initcontainer to common * bump common * Handle postgres password generation in common and inject into values.yaml for use in Apps * (refactor) adapt apps using postgresql to common init and password generator * no message
67 lines
2.0 KiB
Smarty
67 lines
2.0 KiB
Smarty
{{/*
|
|
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" . }}
|
|
|
|
{{- /* Enable code-server add-on if required */ -}}
|
|
{{- if .Values.addons.codeserver.enabled }}
|
|
{{- include "common.addon.codeserver" . }}
|
|
{{- end -}}
|
|
|
|
{{- /* Enable VPN add-on if required */ -}}
|
|
{{- if ne "disabled" .Values.addons.vpn.type -}}
|
|
{{- 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 -}}
|
|
|
|
{{- /* Build the templates */ -}}
|
|
{{- include "common.pvc" . }}
|
|
|
|
{{- /* Autogenerate postgresql passwords if needed */ -}}
|
|
{{- include "common.dependencies.postgresql.injector" . }}
|
|
|
|
{{- if .Values.serviceAccount.create -}}
|
|
{{- include "common.serviceAccount" . }}
|
|
{{- end -}}
|
|
|
|
{{- 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 -}}
|
|
|
|
{{ include "common.rbac" . | nindent 0 }}
|
|
|
|
{{ include "common.hpa" . | nindent 0 }}
|
|
|
|
{{ include "common.service" . | nindent 0 }}
|
|
|
|
{{ include "common.ingress" . | nindent 0 }}
|
|
|
|
{{- if .Values.secret -}}
|
|
{{ include "common.secret" . | nindent 0 }}
|
|
{{- end -}}
|
|
|
|
{{ include "common.configmap.portal" . | nindent 0 }}
|
|
|
|
{{ include "common.networkpolicy" . | nindent 0 }}
|
|
|
|
{{- end -}}
|