{{- with .Values.alertmanager.receiver.ntfy }} {{- if .enabled }} --- apiVersion: helm.toolkit.fluxcd.io/v2beta1 kind: HelmRelease metadata: name: "alertmanager-ntfy" spec: chart: spec: sourceRef: kind: "GitRepository" name: "wrenix-helm-charts" namespace: "flux-system" chart: "./alertmanager-ntfy" reconcileStrategy: "Revision" 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: 5m valuesFrom: - kind: Secret name: "global-alertmanager-ntfy-auth" optional: true valuesKey: username targetPath: ntfyAlertmanager.user - kind: Secret name: "global-alertmanager-ntfy-auth" optional: true valuesKey: password targetPath: ntfyAlertmanager.password values: ntfyAlertmanager: ntfy: # for topic, username, password {{- toYaml .config.ntfy | nindent 8 }} labels: {{- toYaml .config.labels | nindent 8 }} {{- with .ingress }} {{- if .enabled }} {{- $host := .host | default (printf "alert2ntfy.%s" $.Values.commons.ingress.domain) }} ingress: enabled: true annotations: {{- with $.Values.commons.ingress.annotations }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .annotations }} {{- toYaml . | nindent 8 }} {{- end }} hosts: - host: "{{ $host }}" paths: - path: "/" pathType: Prefix {{- if $.Values.commons.ingress.tls.enabled }} tls: {{- with $.Values.commons.ingress.tls.override }} {{- toYaml . | nindent 8 }} {{- else }} - secretName: "infra-monitoring-alert-ntfy-cert" hosts: - "{{ $host }}" {{- end }} {{- end }} {{- end }} {{- end }} {{- end }} {{- end }}