47 lines
1.9 KiB
YAML
47 lines
1.9 KiB
YAML
{{/* Make sure all variables are set properly */}}
|
|
{{- include "tc.v1.common.loader.init" . }}
|
|
|
|
{{/* Render secrets for authentik and friends */}}
|
|
{{- $authentikSecrets := include "authentik.secrets" . | fromYaml -}}
|
|
{{- if $authentikSecrets -}}
|
|
{{ $secrets := (mustMerge $.Values.secret $authentikSecrets) }}
|
|
{{- $_ := set .Values "secret" $secrets -}}
|
|
{{- end -}}
|
|
|
|
{{/* Render configmaps for authentik and friends */}}
|
|
{{- $authentikConfigmaps := include "authentik.configmaps" . | fromYaml -}}
|
|
{{- if $authentikConfigmaps -}}
|
|
{{ $configmaps := (mustMerge $.Values.configmap $authentikConfigmaps) }}
|
|
{{- $_ := set .Values "configmap" $configmaps -}}
|
|
{{- end -}}
|
|
|
|
|
|
{{- if .Values.workerContainer.enabled -}}
|
|
{{- $_ := set .Values.workload.main.podSpec.containers "worker" (include "authentik.worker.container" . | fromYaml) -}}
|
|
{{- end -}}
|
|
|
|
{{- if .Values.geoip.enabled -}}
|
|
{{- $_ := set .Values.workload.main.podSpec.containers "geoip" (include "authentik.geoip.container" . | fromYaml) -}}
|
|
{{- end -}}
|
|
|
|
{{- if .Values.outposts.ldap.enabled -}}
|
|
{{- $_ := set .Values.workload.main.podSpec.containers "ldap-outpost" (include "authentik.ldap.container" . | fromYaml) -}}
|
|
{{/* - if .Values.metrics.enabled - */}}
|
|
{{/* https://github.com/prometheus/prometheus/issues/3756 */}}
|
|
{{/* TODO: Figure how the pipe works to connect it to prometheus operator */}}
|
|
{{/* We can't define multiple ports/endpoints with annotations */}}
|
|
{{/* - end - */}}
|
|
{{- end -}}
|
|
|
|
{{- if .Values.outposts.proxy.enabled -}}
|
|
{{- $_ := set .Values.workload.main.podSpec.containers "proxy-outpost" (include "authentik.proxy.container" . | fromYaml) -}}
|
|
{{/* - if .Values.metrics.enabled - */}}
|
|
{{/* https://github.com/prometheus/prometheus/issues/3756 */}}
|
|
{{/* TODO: Figure how the pipe works to connect it to prometheus operator */}}
|
|
{{/* We can't define multiple ports/endpoints with annotations */}}
|
|
{{/* - end - */}}
|
|
{{- end -}}
|
|
|
|
{{/* Render the templates */}}
|
|
{{ include "tc.v1.common.loader.apply" . }}
|