postgres-operator/pkg/util
Christian Rohmann ece341d516
Allow pod environment variables to also be sourced from a secret (#946)
* Extend operator configuration to allow for a pod_environment_secret just like pod_environment_configmap

* Add all keys from PodEnvironmentSecrets as ENV vars (using SecretKeyRef to protect the value)

* Apply envVars from pod_environment_configmap and pod_environment_secrets before doing the global settings from the operator config. This allows them to be overriden by the user (via configmap / secret)

* Add ability use a Secret for custom pod envVars (via pod_environment_secret) to admin documentation

* Add pod_environment_secret to Helm chart values.yaml

* Add unit tests for PodEnvironmentConfigMap and PodEnvironmentSecret - highly inspired by @kupson and his very similar PR #481

* Added new parameter pod_environment_secret to operatorconfig CRD and configmap examples

* Add pod_environment_secret to the operationconfiguration CRD

Co-authored-by: Christian Rohmann <christian.rohmann@inovex.de>
2020-07-30 10:48:16 +02:00
..
config Allow pod environment variables to also be sourced from a secret (#946) 2020-07-30 10:48:16 +02:00
constants Bootstrapped databases with best practice role setup (#843) 2020-04-29 10:56:06 +02:00
filesystems Fix golint warnings 2017-08-01 16:08:56 +02:00
k8sutil skip creation later to improve visibility of errors (#1013) 2020-06-17 13:32:16 +02:00
patroni Re-create pods only if all replicas are running (#903) 2020-04-20 15:14:11 +02:00
retryutil Fix typo (#965) 2020-05-12 09:20:09 +02:00
ringlog fix comments for ringlogger 2017-09-26 13:12:38 +02:00
teams Move operator to go 1.14 (#882) 2020-03-30 15:50:17 +02:00
users Use scram-sha-256 hash if postgresql parameter password_encryption set to do so. (#995) 2020-07-16 14:43:57 +02:00
volumes reflect change in github url (#496) 2019-02-25 11:26:55 +01:00
util.go Use scram-sha-256 hash if postgresql parameter password_encryption set to do so. (#995) 2020-07-16 14:43:57 +02:00
util_test.go Use scram-sha-256 hash if postgresql parameter password_encryption set to do so. (#995) 2020-07-16 14:43:57 +02:00