fix(mycloud-authentik): update for 2024.2.0

This commit is contained in:
WrenIX 2024-02-29 19:30:52 +01:00
parent 50626adfcb
commit 08d5e2176a
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5

View file

@ -59,40 +59,11 @@ spec:
enabled: false enabled: false
prometheus: prometheus:
serviceMonitor:
create: {{ (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1/ServiceMonitor") }}
labels:
{{- toYaml .Values.commons.prometheus.monitor.labels | nindent 10 }}
rules: rules:
create: {{ (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1/PrometheusRule") }} enabled: {{ (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1/PrometheusRule") }}
labels: labels:
{{- toYaml .Values.commons.prometheus.rules.labels | nindent 10 }} {{- toYaml .Values.commons.prometheus.rules.labels | nindent 10 }}
{{- $host := .Values.ingress.host | default (printf "auth.%s" .Values.commons.ingress.domain) }}
ingress:
enabled: true
annotations:
{{- with .Values.commons.ingress.annotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.ingress.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: "mycloud-authentik-cert"
hosts:
- "{{ $host }}"
{{- end }}
{{- end }}
# #
# https://github.com/goauthentik/helm/pull/146 # https://github.com/goauthentik/helm/pull/146
@ -100,30 +71,88 @@ spec:
serviceAccount: serviceAccount:
create: true create: true
additionalContainers: {{- $host := .Values.ingress.host | default (printf "auth.%s" .Values.commons.ingress.domain) }}
- name: sidecar-blueprints global:
image: "ghcr.io/kiwigrid/k8s-sidecar:1.25.1" volumeMounts:
env: - name: sidecar-blueprints
- name: "FOLDER" mountPath: /blueprints/sidecar
value: "/blueprints/sidecar"
- name: "LABEL"
value: "goauthentik_blueprint"
- name: "LABEL_VALUE"
value: "1"
# - name: "NAMESPACE"
# value: "ALL"
- name: "RESOURCE"
value: "both"
- name: "UNIQUE_FILENAMES"
value: "true"
volumeMounts:
- name: sidecar-blueprints
mountPath: /blueprints/sidecar
volumeMounts: volumes:
- name: sidecar-blueprints - name: sidecar-blueprints
mountPath: /blueprints/sidecar emptyDir: {}
volumes: server:
- name: sidecar-blueprints metrics:
emptyDir: {} serviceMonitor:
enabled: {{ (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1/ServiceMonitor") }}
labels:
{{- toYaml .Values.commons.prometheus.monitor.labels | nindent 12 }}
extraContainers:
- name: sidecar-blueprints
image: "ghcr.io/kiwigrid/k8s-sidecar:1.26.0"
env:
- name: "FOLDER"
value: "/blueprints/sidecar"
- name: "LABEL"
value: "goauthentik_blueprint"
- name: "LABEL_VALUE"
value: "1"
# - name: "NAMESPACE"
# value: "ALL"
- name: "RESOURCE"
value: "both"
- name: "UNIQUE_FILENAMES"
value: "true"
volumeMounts:
- name: sidecar-blueprints
mountPath: /blueprints/sidecar
ingress:
enabled: true
annotations:
{{- with .Values.commons.ingress.annotations }}
{{- toYaml . | nindent 10 }}
{{- end }}
{{- with .Values.ingress.annotations }}
{{- toYaml . | nindent 10 }}
{{- end }}
hosts:
- "{{ $host }}"
{{- if .Values.commons.ingress.tls.enabled }}
tls:
{{- with .Values.commons.ingress.tls.override }}
{{- toYaml . | nindent 10 }}
{{- else }}
- secretName: "mycloud-authentik-cert"
hosts:
- "{{ $host }}"
{{- end }}
{{- end }}
worker:
metrics:
serviceMonitor:
enabled: {{ (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1/ServiceMonitor") }}
labels:
{{- toYaml .Values.commons.prometheus.monitor.labels | nindent 12 }}
extraContainers:
- name: sidecar-blueprints
image: "ghcr.io/kiwigrid/k8s-sidecar:1.26.0"
env:
- name: "FOLDER"
value: "/blueprints/sidecar"
- name: "LABEL"
value: "goauthentik_blueprint"
- name: "LABEL_VALUE"
value: "1"
# - name: "NAMESPACE"
# value: "ALL"
- name: "RESOURCE"
value: "both"
- name: "UNIQUE_FILENAMES"
value: "true"
volumeMounts:
- name: sidecar-blueprints
mountPath: /blueprints/sidecar