-
Notifications
You must be signed in to change notification settings - Fork 60
Make CLI compatible with Forge #45
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
Conversation
archen2019
commented
Jul 16, 2020
- Add port number to GF_DATABASE_HOST
- Read dbname and port number from values file
- OpenConnectionToDB now detects and supports external DB
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.
Some questions, overall looks good.
| {{- $isDefault := not $promEnabled -}} | ||
| {{- $root := . -}} | ||
| {{- $host := tpl .Values.grafana.timescale.database.host $root -}} | ||
| {{- $port := index .Values "timescale-prometheus" "connection" "port" | int -}} |
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.
it seems weird to have host in .Values.grafana.timescale.database.host and port in another place. Why don't we just add a key called .Values.grafana.timescale.database.port?
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.
Added, but we can't do it the same way as we did the hostname, since the port is an int. Helm conventions say not to put quotes around ints that arent environment variables, so we will have to just edit the port number in 3 places.
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.
Great work