helm-charts
helm-charts copied to clipboard
Referencing a kubernetes secret for the value of OPENSEARCH_INITIAL_ADMIN_PASSWORD extraEnv
Is your feature request related to a problem? Please describe. This is meant to avoid exposing the initial Admin password in the extraEnvs to someone with access to the cluster who's able to see the statefulset yaml
Describe the solution you'd like Something like this:
- name: OPENSEARCH_INITIAL_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: initial-admin-password
key: password
referencing a key from a secret "initial-admin-password"
What about envFrom: []
:see https://github.com/opensearch-project/helm-charts/blob/main/charts/opensearch/values.yaml#L113C1-L118 ?
[Triage]
Thanks @dhardy92, @vmm-afonso can you please test with envFrom
and see if that works for you?
envFrom works like a charm for me