postgres-operator/pkg/apis/acid.zalan.do/v1
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
..
const.go Use /status subresource instead of plain manifest field (#534) 2019-05-07 12:01:45 +02:00
crds.go Allow pod environment variables to also be sourced from a secret (#946) 2020-07-30 10:48:16 +02:00
doc.go Fix golint failures 2019-01-08 13:04:48 +01:00
marshal.go skip creation later to improve visibility of errors (#1013) 2020-06-17 13:32:16 +02:00
operator_configuration_type.go Allow pod environment variables to also be sourced from a secret (#946) 2020-07-30 10:48:16 +02:00
postgresql_type.go Bootstrapped databases with best practice role setup (#843) 2020-04-29 10:56:06 +02:00
register.go gofmt and golint fixes (#506) 2019-03-04 13:13:55 +01:00
util.go Use /status subresource instead of plain manifest field (#534) 2019-05-07 12:01:45 +02:00
util_test.go Add ServiceAnnotations cluster config (#803) 2020-02-10 12:03:25 +01:00
zz_generated.deepcopy.go Propagate annotations to the StatefulSet (#932) 2020-05-04 14:46:56 +02:00