removed job

This commit is contained in:
kisfenyo
2025-12-27 17:33:42 +01:00
parent d511ca8aee
commit eeb346a7dc
@@ -10,42 +10,3 @@ spec:
name: postgresql name: postgresql
name: authentik name: authentik
owner: authentik owner: authentik
---
# Grant permissions job
apiVersion: batch/v1
kind: Job
metadata:
name: authentik-grant-permissions
namespace: database-system
spec:
template:
spec:
restartPolicy: OnFailure
containers:
- name: psql
image: ghcr.io/cloudnative-pg/postgresql:17.2
env:
- name: PGHOST
value: postgresql-rw
- name: PGUSER
value: postgres
- name: PGPASSWORD
valueFrom:
secretKeyRef:
name: postgres-superuser
key: password
command:
- /bin/sh
- -c
- |
psql -c "CREATE USER authentik WITH PASSWORD '$(cat /secrets/authentik-password)';"
psql -d authentik -c "GRANT ALL PRIVILEGES ON SCHEMA public TO authentik;"
psql -d authentik -c "GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO authentik;"
psql -d authentik -c "GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO authentik;"
volumeMounts:
- name: authentik-password
mountPath: /secrets
volumes:
- name: authentik-password
secret:
secretName: authentik-user