From e35b83caa7caa99a6025eae2486b32f3e3ec3e33 Mon Sep 17 00:00:00 2001 From: Conan Scott Date: Wed, 31 Dec 2025 18:06:23 +1100 Subject: [PATCH] updated hooks --- manifests/stateful-backups.yaml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/manifests/stateful-backups.yaml b/manifests/stateful-backups.yaml index 4a936a8..c5f41c7 100644 --- a/manifests/stateful-backups.yaml +++ b/manifests/stateful-backups.yaml @@ -74,11 +74,11 @@ spec: command: - /bin/bash - -c - - psql -U postgres -c 'CHECKPOINT;' + - PGPASSWORD=spVTpND34K psql -U postgres -c 'CHECKPOINT;' timeout: 2m onError: Continue - # Authentik PostgreSQL: checkpoint before backup + # Authentik PostgreSQL: checkpoint before backup - name: authentik-postgres-checkpoint includedNamespaces: - authentik @@ -92,6 +92,23 @@ spec: command: - /bin/bash - -c - - psql -U postgres -c 'CHECKPOINT;' + - PGPASSWORD=th1rt33nletterS. psql -U authentik -c 'CHECKPOINT;' + timeout: 2m + onError: Continue + + # n8n PostgreSQL: checkpoint before backup + - name: n8n-postgres-checkpoint + includedNamespaces: + - n8n + labelSelector: + matchLabels: + app.kubernetes.io/service: postgres-n8n + pre: + - exec: + container: postgres + command: + - /bin/bash + - -c + - psql -d n8n -U root -c 'CHECKPOINT;' timeout: 2m onError: Continue