postgres-operator/pkg/controller
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
..
controller.go skip creation later to improve visibility of errors (#1013) 2020-06-17 13:32:16 +02:00
logs_and_api.go reflect change in github url (#496) 2019-02-25 11:26:55 +01:00
node.go Move operator to go 1.14 (#882) 2020-03-30 15:50:17 +02:00
node_test.go define ownership between operator and clusters via annotation (#802) 2020-03-17 16:34:31 +01:00
operator_config.go Allow pod environment variables to also be sourced from a secret (#946) 2020-07-30 10:48:16 +02:00
pod.go Move operator to go 1.14 (#882) 2020-03-30 15:50:17 +02:00
postgresql.go skip creation later to improve visibility of errors (#1013) 2020-06-17 13:32:16 +02:00
postgresql_test.go define ownership between operator and clusters via annotation (#802) 2020-03-17 16:34:31 +01:00
types.go Bootstrapped databases with best practice role setup (#843) 2020-04-29 10:56:06 +02:00
util.go Move operator to go 1.14 (#882) 2020-03-30 15:50:17 +02:00
util_test.go define ownership between operator and clusters via annotation (#802) 2020-03-17 16:34:31 +01:00