CrunchyData / crunchy-containers

Containers for Managing PostgreSQL on Kubernetes by Crunchy Data
https://www.crunchydata.com/
Apache License 2.0
1.01k stars 328 forks source link

Refactors pgo-backrest Util #1359

Closed andrewlecuyer closed 3 years ago

andrewlecuyer commented 3 years ago

Refactors the pgo-backrest util as used to exec into containers and run pgBackRest commands. This includes better organizing the logic for obtaining configuration settings and forming the pgBackRest command. Additionally, now includes the ability to verify the hashes of the pgBackRest conf.d directory before running the command, while now also allowing for the discovery of the Pod to be exec'd into via labels.

Checklist:

Type of Changes:

What is the current behavior? (link to any open issues here)

What is the new behavior (if this is a feature change)?

Other information:

andrewlecuyer commented 3 years ago

Thanks @cbandy, feedback addressed.