Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update restore cmd in postgres depconfig blueprint #1122

Merged
merged 2 commits into from
Oct 19, 2021
Merged

Conversation

viveksinghggits
Copy link
Contributor

@viveksinghggits viveksinghggits commented Oct 19, 2021

Change Overview

We recently figure out an issue 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.

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

Issues

  • #XXX

Test Plan

  • 💪 Manual

logs can be found here.
https://gist.github.com/viveksinghggits/288690790176b1f4cce2d3dd52afca1e

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.
@@ -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}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we tag older blueprint with postgres 12.0 or something like that if someone wants to work with older version of postgres?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are still not sure that this change is required, I was suspecting that this would resolve the openshift nightly pipeline failure.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kueueing this for now.

@mergify mergify bot merged commit 13652ba into master Oct 19, 2021
@mergify mergify bot deleted the pg-depconf-fix branch October 19, 2021 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants