From e7def2ac39293e41e43d8003cbaf006c285b7e43 Mon Sep 17 00:00:00 2001 From: Jens L Date: Thu, 12 May 2022 21:33:43 +0200 Subject: [PATCH] 2022.4.3 (#70) * update prometheus rules * fix hardcoded service name * escape rules * bump version * escape descriptions * hmm * fix --- README.md | 4 ++-- charts/authentik/Chart.yaml | 2 +- charts/authentik/README.md | 4 ++-- charts/authentik/README.md.gotmpl | 4 ++-- charts/authentik/templates/ingress.yaml | 2 +- charts/authentik/templates/prom-rules.yaml | 14 +++++++------- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 4567e8d0..d593ba8a 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,8 @@ ## authentik Chart -![Version: 2022.4.1](https://img.shields.io/badge/Version-2022.4.1-informational?style=for-the-badge) -![AppVersion: 2022.4.1](https://img.shields.io/badge/AppVersion-2022.4.1-informational?style=for-the-badge) +![Version: 2022.4.3](https://img.shields.io/badge/Version-2022.4.3-informational?style=for-the-badge) +![AppVersion: 2022.4.3](https://img.shields.io/badge/AppVersion-2022.4.3-informational?style=for-the-badge) See [README](./charts/authentik/README.md) diff --git a/charts/authentik/Chart.yaml b/charts/authentik/Chart.yaml index 3448ec0f..31e2d830 100644 --- a/charts/authentik/Chart.yaml +++ b/charts/authentik/Chart.yaml @@ -16,7 +16,7 @@ keywords: - ldap - idp - sp -version: 2022.4.2 +version: 2022.4.3 appVersion: 2022.4.1 icon: https://raw.githubusercontent.com/BeryJu/authentik/master/web/icons/icon.svg maintainers: diff --git a/charts/authentik/README.md b/charts/authentik/README.md index 89af8733..a4d1328c 100644 --- a/charts/authentik/README.md +++ b/charts/authentik/README.md @@ -6,8 +6,8 @@ [![Join Discord](https://img.shields.io/discord/809154715984199690?label=Discord&style=for-the-badge)](https://goauthentik.io/discord) [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/goauthentik/helm/Lint%20and%20Test%20Chart?label=cid&style=for-the-badge)](https://github.com/goauthentik/helm/actions/workflows/lint-test.yaml) -![Version: 2022.4.1](https://img.shields.io/badge/Version-2022.4.1-informational?style=for-the-badge) -![AppVersion: 2022.4.1](https://img.shields.io/badge/AppVersion-2022.4.1-informational?style=for-the-badge) +![Version: 2022.4.3](https://img.shields.io/badge/Version-2022.4.3-informational?style=for-the-badge) +![AppVersion: 2022.4.3](https://img.shields.io/badge/AppVersion-2022.4.3-informational?style=for-the-badge) authentik is an open-source Identity Provider focused on flexibility and versatility diff --git a/charts/authentik/README.md.gotmpl b/charts/authentik/README.md.gotmpl index c24c0c41..2522d07a 100644 --- a/charts/authentik/README.md.gotmpl +++ b/charts/authentik/README.md.gotmpl @@ -6,8 +6,8 @@ [![Join Discord](https://img.shields.io/discord/809154715984199690?label=Discord&style=for-the-badge)](https://goauthentik.io/discord) [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/goauthentik/helm/Lint%20and%20Test%20Chart?label=cid&style=for-the-badge)](https://github.com/goauthentik/helm/actions/workflows/lint-test.yaml) -![Version: 2022.4.1](https://img.shields.io/badge/Version-2022.4.1-informational?style=for-the-badge) -![AppVersion: 2022.4.1](https://img.shields.io/badge/AppVersion-2022.4.1-informational?style=for-the-badge) +![Version: 2022.4.3](https://img.shields.io/badge/Version-2022.4.3-informational?style=for-the-badge) +![AppVersion: 2022.4.3](https://img.shields.io/badge/AppVersion-2022.4.3-informational?style=for-the-badge) {{ template "chart.deprecationWarning" . }} diff --git a/charts/authentik/templates/ingress.yaml b/charts/authentik/templates/ingress.yaml index b1dc988d..55b9a01d 100644 --- a/charts/authentik/templates/ingress.yaml +++ b/charts/authentik/templates/ingress.yaml @@ -33,7 +33,7 @@ spec: service: name: {{ include "common.names.fullname" $ }} port: - name: http + name: {{ $.Values.service.name }} {{- else }} serviceName: {{ include "common.names.fullname" $ }} servicePort: {{ $.Values.service.port }} diff --git a/charts/authentik/templates/prom-rules.yaml b/charts/authentik/templates/prom-rules.yaml index 4962de1c..8ba7b3b9 100644 --- a/charts/authentik/templates/prom-rules.yaml +++ b/charts/authentik/templates/prom-rules.yaml @@ -110,25 +110,25 @@ spec: - name: authentik Alerts rules: - alert: NoWorkersConnected - expr: sum (authentik_admin_workers) == 0 + expr: max without (pid) (authentik_admin_workers) < 1 annotations: message: | - authentik's worker are either not running or not connected. + authentik instance {{ printf "{{ $labels.instance }}" }}'s worker are either not running or not connected. summary: No workers connected for: 10m labels: severity: critical - alert: PendingMigrations - expr: max(django_migrations_unapplied_total) BY (job, connection) > 0 + expr: max without (pid) (django_migrations_unapplied_total) > 0 annotations: message: | - authentik has pending database migrations + authentik instance {{ printf "{{ $labels.instance }}" }} has pending database migrations summary: Pending database migrations for: 10m labels: severity: critical - alert: FailedSystemTasks - expr: count(authentik_system_tasks{status="TaskResultStatus.ERROR"}) > 0 + expr: sum(increase(authentik_system_tasks{status="TaskResultStatus.ERROR"}[2h])) > 0 annotations: message: | System task {{ printf "{{ $labels.task_name }}" }} has failed @@ -137,12 +137,12 @@ spec: labels: severity: critical - alert: DisconnectedOutposts - expr: sum by (outpost) (authentik_outposts_connected{uid!~"specific.*"}) < 1 + expr: sum by (outpost) (max without (pid) (authentik_outposts_connected{uid!~"specific.*"})) < 1 annotations: message: | Outpost {{ printf "{{ $labels.outpost }}" }} has at least 1 disconnected instance summary: Disconnected outpost - for: 2h + for: 30m labels: severity: critical {{- end }}