postgres-operator/pkg/cluster
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
..
cluster.go Use scram-sha-256 hash if postgresql parameter password_encryption set to do so. (#995) 2020-07-16 14:43:57 +02:00
cluster_test.go delete secrets of system users too (#974) 2020-05-14 11:34:02 +02:00
database.go Bootstrapped databases with best practice role setup (#843) 2020-04-29 10:56:06 +02:00
exec.go Move operator to go 1.14 (#882) 2020-03-30 15:50:17 +02:00
filesystems.go reflect change in github url (#496) 2019-02-25 11:26:55 +01:00
k8sres.go Allow pod environment variables to also be sourced from a secret (#946) 2020-07-30 10:48:16 +02:00
k8sres_test.go Allow pod environment variables to also be sourced from a secret (#946) 2020-07-30 10:48:16 +02:00
pod.go Fix typo in error message (#969) 2020-05-12 10:05:42 +02:00
resources.go delete secrets the right way (#1054) 2020-07-10 15:07:42 +02:00
resources_test.go Emit K8S events to the postgresql CR as feedback to the requestor / user (#896) 2020-04-27 08:22:07 +02:00
sync.go Resize volume by changing pvc size if enabled in config. (#958) 2020-07-03 10:53:37 +02:00
sync_test.go Emit K8S events to the postgresql CR as feedback to the requestor / user (#896) 2020-04-27 08:22:07 +02:00
types.go Prevent empty syncs (#922) 2020-04-16 15:14:31 +02:00
util.go Fully speced global sidecars (#890) 2020-04-27 17:40:22 +02:00
volumes.go Resize volume by changing pvc size if enabled in config. (#958) 2020-07-03 10:53:37 +02:00