{{- if and .Values.commons.auth.enabled (eq .Values.commons.auth.type "authentik") .Values.alertmanager.ingress.enabled }} --- apiVersion: helm.toolkit.fluxcd.io/v2beta1 kind: HelmRelease metadata: name: authentik-application-alertmanager spec: chart: spec: sourceRef: kind: GitRepository name: "wrenix-helm-charts" namespace: "flux-system" chart: "./authentik-application" reconcileStrategy: "Revision" interval: 10m releaseName: authentik-application-infra-alertmanager targetNamespace: {{ .Values.commons.auth.namespace }} install: {{- toYaml .Values.commons.helm.release.install | nindent 4 }} test: {{- toYaml .Values.commons.helm.release.test | nindent 4 }} upgrade: {{- toYaml .Values.commons.helm.release.upgrade | nindent 4 }} interval: 10m values: {{- $domain := .Values.alertmanager.ingress.host | default (printf "alertmanager.%s" .Values.commons.ingress.domain) }} {{- $url := printf "https://%s" $domain }} blueprint: authentik: domain: "https://{{ .Values.commons.auth.authentik.domain }}" provider: enabled: {{ not .Values.alertmanager.auth.anonymous.enabled }} proxy: externalHost: {{ $url | quote }} skipPathRegex: | /favicon.ico ingress: enabled: true domain: {{ $domain | quote }} groups: - slug: "app: infra" bindID: "0e71f524-6fb5-43a5-9f60-95d4e103e390" application: group: "Infrastructure" policyEngineMode: "any" openInNewTab: true publisher: "WrenIX's Infra" slug: "infra-alertmanager" name: "Alertmanager" launchURL: {{ $url | quote }} icon: "{{ $url }}/favicon.ico" description: "The Alertmanager handles alerts sent by client applications such as the Prometheus server. It takes care of deduplicating, grouping, and routing them to the correct receiver integration such as email, PagerDuty, or OpsGenie. It also takes care of silencing and inhibition of alerts." {{- end }}