You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What kind of request is this (question/bug/enhancement/feature request):
Bug
Steps to reproduce (least amount of steps as possible):
Set extraEnv in Grafana chart (using the monitoring menu, cluster-wide).
For the example, we'll use :
grafana.extraVars[0].name = GF_SMTP_ENABLED
grafana.extraVars[0].value = true
We need this env variable to enable SMTP alerts in included Grafana. But here, we only want the true in the value field to be quoted and set (should be "true"). But with toYaml, it will keep it true, as a boolean, thus being refused by Kubernetes (only accepting strings in env).
If I try with "true" directly in the field, toYaml wants to keep the string intact, and output '"true'". But I can't get a simple "true" unfortunately.
Result:
Other details that may be helpful: helm/helm#4262
The toYaml function causes some problems when converting types. But for env variables, values should not be converted, only quoted. helm/helm#4262 (comment)
Environment information
Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): 2.4.5
Installation option (single install/HA): Single, with helm.
The text was updated successfully, but these errors were encountered:
@rlio I think I saw another issue where they mentioned they will refactor entirely the monitoring charts in Rancher (notably by updating Grafana). So I kind of abandoned, waiting for this new version.
This repository uses a bot to automatically label issues which have not had any activity (commit/comment/label) for 60 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the bot can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the bot will automatically close the issue in 14 days. Thank you for your contributions.
What kind of request is this (question/bug/enhancement/feature request):
Bug
Steps to reproduce (least amount of steps as possible):
Set extraEnv in Grafana chart (using the monitoring menu, cluster-wide).
For the example, we'll use :
We need this env variable to enable SMTP alerts in included Grafana. But here, we only want the
true
in the value field to be quoted and set (should be"true"
). But with toYaml, it will keep ittrue
, as a boolean, thus being refused by Kubernetes (only accepting strings in env).If I try with
"true"
directly in the field, toYaml wants to keep the string intact, and output'"true'"
. But I can't get a simple"true"
unfortunately.Result:
Other details that may be helpful:
helm/helm#4262
The toYaml function causes some problems when converting types. But for env variables, values should not be converted, only quoted.
helm/helm#4262 (comment)
Environment information
rancher/rancher
/rancher/server
image tag or shown bottom left in the UI): 2.4.5The text was updated successfully, but these errors were encountered: