{{/* Make sure all variables are set properly */}} {{- include "tc.common.loader.init" . }} {{/* Render secret */}} {{- include "authentik.secret" . }} {{/* Render config */}} {{- include "authentik.config" . }} {{- if .Values.authentik.metrics.enabled -}} {{- $_ := set .Values.podAnnotations "prometheus.io/scrape" "true" -}} {{- $_ := set .Values.podAnnotations "prometheus.io/path" "/metrics" -}} {{- $_ := set .Values.podAnnotations "prometheus.io/scrape" ( .Values.service.metrics.ports.metrics.targetPort | quote) -}} {{- end -}} {{- if .Values.workerContainer.enabled -}} {{- $_ := set .Values.additionalContainers "worker" (include "authentik.worker" . | fromYaml) -}} {{- end -}} {{- if .Values.geoip.enabled -}} {{- $_ := set .Values.additionalContainers "geoip" (include "authentik.geoip" . | fromYaml) -}} {{- end -}} {{- if .Values.outposts.ldap.enabled -}} {{- $_ := set .Values.additionalContainers "ldap" (include "authentik.ldap" . | fromYaml) -}} {{/* - if .Values.outposts.ldap.metrics - */}} {{/* 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.common.loader.apply" . }}