diff --git a/foundation/charts/operators/templates/authentik.yaml b/foundation/charts/operators/templates/authentik.yaml index 2c4822c..a8d10cd 100644 --- a/foundation/charts/operators/templates/authentik.yaml +++ b/foundation/charts/operators/templates/authentik.yaml @@ -13,7 +13,7 @@ spec: project: foundation source: repoURL: https://mortenolsen.pro/homelab-authentik-operator/ - targetRevision: 0.0.2 + targetRevision: 0.0.11 chart: authentik-operator syncPolicy: automated: diff --git a/shared/charts/authentik.disabled/templates/database.yaml b/shared/charts/authentik.disabled/templates/database.yaml deleted file mode 100644 index 0f9f2ec..0000000 --- a/shared/charts/authentik.disabled/templates/database.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: homelab.mortenolsen.pro/v1 -kind: PostgresDatabase -metadata: - name: '{{ .Release.Name }}-authentik' -spec: - environment: '{{ .Values.globals.environment }}' diff --git a/shared/charts/authentik.disabled/templates/secret.yaml b/shared/charts/authentik.disabled/templates/secret.yaml deleted file mode 100644 index bce9c76..0000000 --- a/shared/charts/authentik.disabled/templates/secret.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: homelab.mortenolsen.pro/v1 -kind: GenerateSecret -metadata: - name: "{{ .Release.Name }}-secret" -spec: - fields: - - name: password - encoding: hex - length: 64 - diff --git a/shared/charts/authentik.disabled/Chart.yaml b/shared/charts/authentik/Chart.yaml similarity index 100% rename from shared/charts/authentik.disabled/Chart.yaml rename to shared/charts/authentik/Chart.yaml diff --git a/shared/charts/authentik.disabled/templates/authentik-server.yaml b/shared/charts/authentik/templates/authentik-server.yaml similarity index 59% rename from shared/charts/authentik.disabled/templates/authentik-server.yaml rename to shared/charts/authentik/templates/authentik-server.yaml index a9f72ed..49058f7 100644 --- a/shared/charts/authentik.disabled/templates/authentik-server.yaml +++ b/shared/charts/authentik/templates/authentik-server.yaml @@ -5,9 +5,18 @@ metadata: spec: # Reference to a secret containing the PostgreSQL connection URL # The secret must have a key "url" (or specify a different key) - postgresSecretRef: - name: "{{ .Release.Name }}-authentik" - key: url + postgresHostSecretRef: + name: "{{ .Release.Name }}-pg-connection" + key: host + postgresUserSecretRef: + name: "{{ .Release.Name }}-pg-connection" + key: user + postgresPasswordSecretRef: + name: "{{ .Release.Name }}-pg-connection" + key: password + postgresNameSecretRef: + name: "{{ .Release.Name }}-pg-connection" + key: database # External hostname for Authentik host: test-auth.olsen.cloud # Optional: Authentik container image diff --git a/shared/charts/authentik/templates/database.yaml b/shared/charts/authentik/templates/database.yaml new file mode 100644 index 0000000..48dc87c --- /dev/null +++ b/shared/charts/authentik/templates/database.yaml @@ -0,0 +1,6 @@ +apiVersion: homelab.mortenolsen.pro/v1 +kind: PostgresDatabase +metadata: + name: '{{ .Release.Name }}' +spec: + environment: prod diff --git a/shared/charts/authentik.disabled/values.yaml b/shared/charts/authentik/values.yaml similarity index 100% rename from shared/charts/authentik.disabled/values.yaml rename to shared/charts/authentik/values.yaml