Skip to content

Conversation

jennydaman
Copy link
Contributor

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.

@jennydaman
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant