Browse Source

Fix pg_dump cmd in velero pre backup hook

master
Fábio Kaiser Rauber 3 years ago
parent
commit
d5ebecf040
  1. 5
      charts/sapl/v0.2.0/templates/velero-schedule-monthly.yaml
  2. 5
      charts/sapl/v0.2.0/templates/velero-schedule-weekdays.yaml
  3. 5
      charts/sapl/v0.2.0/templates/velero-schedule-weekly.yaml

5
charts/sapl/v0.2.0/templates/velero-schedule-monthly.yaml

@ -49,7 +49,10 @@ spec:
app.kubernetes.io/name: postgresql
pre:
- exec:
command: "/opt/bitnami/postgresql/bin/pg_dump -U postgres sapl > /bitnami/postgresql/sapl.dump"
command:
- "/bin/bash"
- "-c"
- "/opt/bitnami/postgresql/bin/pg_dump -U postgres sapl > /bitnami/postgresql/sapl.dump"
timeout: 360s
useOwnerReferencesInBackup: false
{{- end }}

5
charts/sapl/v0.2.0/templates/velero-schedule-weekdays.yaml

@ -49,7 +49,10 @@ spec:
app.kubernetes.io/name: postgresql
pre:
- exec:
command: "/opt/bitnami/postgresql/bin/pg_dump -U postgres sapl > /bitnami/postgresql/sapl.dump"
command:
- "/bin/bash"
- "-c"
- "/opt/bitnami/postgresql/bin/pg_dump -U postgres sapl > /bitnami/postgresql/sapl.dump"
timeout: 360s
useOwnerReferencesInBackup: false
{{- end }}

5
charts/sapl/v0.2.0/templates/velero-schedule-weekly.yaml

@ -49,7 +49,10 @@ spec:
app.kubernetes.io/name: postgresql
pre:
- exec:
command: "/opt/bitnami/postgresql/bin/pg_dump -U postgres sapl > /bitnami/postgresql/sapl.dump"
command:
- "/bin/bash"
- "-c"
- "/opt/bitnami/postgresql/bin/pg_dump -U postgres sapl > /bitnami/postgresql/sapl.dump"
timeout: 360s
useOwnerReferencesInBackup: false
{{- end }}
Loading…
Cancel
Save