Skip to content

Commit

Permalink
Update restore cmd in postgres depconfig blueprint (#1122)
Browse files Browse the repository at this point in the history
We recently figure out [an issue](#1116) where the restore command in our
blueprint was not working for postgres applications.
We fixed that for other application in the mentioned PR this
PR fixes the issue for the postgres application that gets
deployed as deployment config in OCP clusters.

Co-authored-by: Tom Manville <tom@kasten.io>
  • Loading branch information
viveksinghggits and tdmanv authored Oct 19, 2021
1 parent 37d9246 commit 13652ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ actions:
export PGUSER='postgres'
export PGPASSWORD='{{ index .Phases.pgRestore.Secrets.pgSecret.Data "postgresql_admin_password" | toString }}'
BACKUP_LOCATION={{ .ArtifactsIn.cloudObject.KeyValue.backupLocation }}
kando location pull --profile '{{ toJson .Profile }}' --path "${BACKUP_LOCATION}" - | gunzip -c -f | psql -q -U "${PGUSER}"
kando location pull --profile '{{ toJson .Profile }}' --path "${BACKUP_LOCATION}" - | gunzip -c -f | sed 's/LOCALE/LC_COLLATE/' | psql -q -U "${PGUSER}"
delete:
inputArtifactNames:
- cloudObject
Expand Down

0 comments on commit 13652ba

Please sign in to comment.