JetBrains / datalore-configs

MIT License
26 stars 16 forks source link

how do i pass a user name and password as a secret for a external postgres database? #30

Closed weiyentan closed 1 year ago

weiyentan commented 1 year ago

How do i store an external database connection details as a secret for data lore? I want to store this workflow as a helm chart in gitops and storing my username and paswords is not attractive to me.

alexandrvb commented 1 year ago

Hello @weiyentan you can use databaseSecret parameter with existing secret to store the password https://github.com/JetBrains/datalore-configs/blob/2023.3/charts/datalore/values.yaml#L92

databaseSecret:
  create: false
  name: <secret-name>
  key: ROOT_PASSWORD
weiyentan commented 1 year ago

thank you. what about settting the username?

weiyentan commented 1 year ago

Sorted this. For posterity it is in the db_user and dataenv section of the values.yaml