openobserve-helm-chart
openobserve-helm-chart copied to clipboard
Accept root credentials from existing secret
Adds a feature so that the environment variables ZO_ROOT_USER_EMAIL and ZO_ROOT_USER_PASSWORD can be sourced from an existing secret.
Example values.yaml:
auth:
existingRootUserSecret:
name: my-openobserve-root-user
Furthermore, I fixed some minor Helm YAML gotchas: instead of "{{ .Values.auth.ZO_ROOT_USER_PASSWORD }}" the code should be {{ .Values.auth.ZO_ROOT_USER_PASSWORD | quote }} to properly handle values which contain \ or " characters.
Here's how you can try it out:
kubectl create secret generic my-openobserve-root-user --from-literal=ZO_ROOT_USER_EMAIL='[email protected]' --from-literal=ZO_ROOT_USER_PASSWORD='ADifferentPass123'
helm install --generate-name --set auth.existingRootUserSecret.name=my-openobserve-root-user ./charts/openobserve-standalone
Hi, @prabhatsharma can you take a look? It will be very useful for deployment in gitops without variable interpolation.