diff --git a/shared/charts/authentik.disabled/Chart.yaml b/shared/charts/authentik.disabled/Chart.yaml new file mode 100644 index 0000000..45d969d --- /dev/null +++ b/shared/charts/authentik.disabled/Chart.yaml @@ -0,0 +1,3 @@ +apiVersion: v2 +version: 1.0.0 +name: shared diff --git a/shared/charts/authentik.disabled/templates/authentik-server.yaml b/shared/charts/authentik.disabled/templates/authentik-server.yaml new file mode 100644 index 0000000..a9f72ed --- /dev/null +++ b/shared/charts/authentik.disabled/templates/authentik-server.yaml @@ -0,0 +1,21 @@ +apiVersion: authentik.homelab.mortenolsen.pro/v1alpha1 +kind: AuthentikServer +metadata: + name: authentik +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 + # External hostname for Authentik + host: test-auth.olsen.cloud + # Optional: Authentik container image + # image: ghcr.io/goauthentik/server:latest + # Optional: Number of replicas + # replicas: 1 + # Optional: TLS configuration + tls: + enabled: true + secretName: auth-tls + diff --git a/shared/charts/authentik.disabled/templates/database.yaml b/shared/charts/authentik.disabled/templates/database.yaml new file mode 100644 index 0000000..0f9f2ec --- /dev/null +++ b/shared/charts/authentik.disabled/templates/database.yaml @@ -0,0 +1,6 @@ +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 new file mode 100644 index 0000000..bce9c76 --- /dev/null +++ b/shared/charts/authentik.disabled/templates/secret.yaml @@ -0,0 +1,10 @@ +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/nats/values.yaml b/shared/charts/authentik.disabled/values.yaml similarity index 100% rename from shared/charts/nats/values.yaml rename to shared/charts/authentik.disabled/values.yaml diff --git a/shared/charts/nats/Chart.yaml b/shared/charts/nats.disabled/Chart.yaml similarity index 100% rename from shared/charts/nats/Chart.yaml rename to shared/charts/nats.disabled/Chart.yaml diff --git a/shared/charts/nats/templates/app.yaml b/shared/charts/nats.disabled/templates/app.yaml similarity index 100% rename from shared/charts/nats/templates/app.yaml rename to shared/charts/nats.disabled/templates/app.yaml diff --git a/shared/charts/nats.disabled/values.yaml b/shared/charts/nats.disabled/values.yaml new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/shared/charts/nats.disabled/values.yaml @@ -0,0 +1 @@ +{} \ No newline at end of file