From abeb6d103d15f7914dab06e98bf4c2fcfd3fccdf Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Mon, 20 Dec 2021 14:31:53 -0300 Subject: [PATCH] Try to fix issue with pg_dump pre_hook --- charts/sapl/v0.2.0/templates/velero-schedule-monthly.yaml | 2 +- charts/sapl/v0.2.0/templates/velero-schedule-weekdays.yaml | 2 +- charts/sapl/v0.2.0/templates/velero-schedule-weekly.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/sapl/v0.2.0/templates/velero-schedule-monthly.yaml b/charts/sapl/v0.2.0/templates/velero-schedule-monthly.yaml index caa6123..7937f56 100644 --- a/charts/sapl/v0.2.0/templates/velero-schedule-monthly.yaml +++ b/charts/sapl/v0.2.0/templates/velero-schedule-monthly.yaml @@ -32,7 +32,7 @@ spec: command: - "/bin/bash" - "-c" - - "'PGPASSWORD=$POSTGRES_PASSWORD /opt/bitnami/postgresql/bin/pg_dump -U sapl sapl > /bitnami/postgresql/sapl.dump'" + - "PGPASSWORD=$POSTGRES_PASSWORD /opt/bitnami/postgresql/bin/pg_dump -U sapl -d sapl > /bitnami/postgresql/sapl.dump" timeout: 360s useOwnerReferencesInBackup: false {{- end }} \ No newline at end of file diff --git a/charts/sapl/v0.2.0/templates/velero-schedule-weekdays.yaml b/charts/sapl/v0.2.0/templates/velero-schedule-weekdays.yaml index 2571284..f7c5440 100644 --- a/charts/sapl/v0.2.0/templates/velero-schedule-weekdays.yaml +++ b/charts/sapl/v0.2.0/templates/velero-schedule-weekdays.yaml @@ -32,7 +32,7 @@ spec: command: - "/bin/bash" - "-c" - - "'PGPASSWORD=$POSTGRES_PASSWORD /opt/bitnami/postgresql/bin/pg_dump -U sapl sapl > /bitnami/postgresql/sapl.dump'" + - "PGPASSWORD=$POSTGRES_PASSWORD /opt/bitnami/postgresql/bin/pg_dump -U sapl -d sapl > /bitnami/postgresql/sapl.dump" timeout: 360s useOwnerReferencesInBackup: false {{- end }} \ No newline at end of file diff --git a/charts/sapl/v0.2.0/templates/velero-schedule-weekly.yaml b/charts/sapl/v0.2.0/templates/velero-schedule-weekly.yaml index 2140619..e5622bf 100644 --- a/charts/sapl/v0.2.0/templates/velero-schedule-weekly.yaml +++ b/charts/sapl/v0.2.0/templates/velero-schedule-weekly.yaml @@ -32,7 +32,7 @@ spec: command: - "/bin/bash" - "-c" - - "'PGPASSWORD=$POSTGRES_PASSWORD /opt/bitnami/postgresql/bin/pg_dump -U sapl sapl > /bitnami/postgresql/sapl.dump'" + - "PGPASSWORD=$POSTGRES_PASSWORD /opt/bitnami/postgresql/bin/pg_dump -U sapl -d sapl > /bitnami/postgresql/sapl.dump" timeout: 360s useOwnerReferencesInBackup: false {{- end }} \ No newline at end of file