-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(helm): database name as an environment variable #76
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Nicolas Lamirault <[email protected]>
hey @nlamirault, thanks for your contribution! can I ask you to bump the version on |
Signed-off-by: Nicolas Lamirault <[email protected]>
Signed-off-by: Nicolas Lamirault <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please update the version
too? to 0.1.41
Signed-off-by: Nicolas Lamirault <[email protected]>
Signed-off-by: Nicolas Lamirault <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @nlamirault - e2e tests are failing.
I think you need to change
command: ['sh', '-c', 'until nc -z ${DATABASE_NAME} 3306; do sleep 1; done;']
to
command: ['sh', '-c', 'until nc -z {{ include "keep.findEnvVar" (list "DATABASE_NAME" .) | default "keep-database" }} 3306; do sleep 1; done;']
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests failing, need to change the env var to be from .Values
Signed-off-by: Nicolas Lamirault <[email protected]>
hey @nlamirault , is it still an issue? |
i've got this error now:
using this environment variable in the deployment: - name: DATABASE_CONNECTION_STRING
value: 'mysql+pymysql://keep:xxxxx@moco-keep-db-primary:3306/keep' |
i change my Helm settings and use an external Postgres database, managed by the CloudNativePG Operator. - name: DATABASE_CONNECTION_STRING
value: "postgresql://keep:xxxxxx@keep-rw:5432/keep" and also: initContainers:
- command:
- sh
- '-c'
- until nc -z keep-rw 5432; do sleep 1; done; |
this is because your MySQL server doesn't support password authentication - you should enable it for Keep to authenticate with user/password |
cool. would be happy to merge your changes to the helm repo if you want |
Signed-off-by: Nicolas Lamirault <[email protected]>
Signed-off-by: Nicolas Lamirault <[email protected]>
Signed-off-by: Nicolas Lamirault <[email protected]>
Signed-off-by: Nicolas Lamirault <[email protected]>
Signed-off-by: Nicolas Lamirault <[email protected]>
close #77