{"action":"created","issue":{"url":"https://api.github.com/repos/helm/charts/issues/6222","repository_url":"https://api.github.com/repos/helm/charts","labels_url":"https://api.github.com/repos/helm/charts/issues/6222/labels{/name}","comments_url":"https://api.github.com/repos/helm/charts/issues/6222/comments","events_url":"https://api.github.com/repos/helm/charts/issues/6222/events","html_url":"https://github.com/helm/charts/issues/6222","id":334038119,"node_id":"MDU6SXNzdWUzMzQwMzgxMTk=","number":6222,"title":"[stable/Grafana] Smtp setup not reading host and other values","user":{"login":"ananthunair","id":10118208,"node_id":"MDQ6VXNlcjEwMTE4MjA4","avatar_url":"https://avatars3.githubusercontent.com/u/10118208?v=4","gravatar_id":"","url":"https://api.github.com/users/ananthunair","html_url":"https://github.com/ananthunair","followers_url":"https://api.github.com/users/ananthunair/followers","following_url":"https://api.github.com/users/ananthunair/following{/other_user}","gists_url":"https://api.github.com/users/ananthunair/gists{/gist_id}","starred_url":"https://api.github.com/users/ananthunair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ananthunair/subscriptions","organizations_url":"https://api.github.com/users/ananthunair/orgs","repos_url":"https://api.github.com/users/ananthunair/repos","events_url":"https://api.github.com/users/ananthunair/events{/privacy}","received_events_url":"https://api.github.com/users/ananthunair/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-20T11:36:30Z","updated_at":"2018-07-23T14:06:14Z","closed_at":"2018-06-21T09:03:34Z","author_association":"NONE","body":"**Context:** Setting up Grafana with SMTP setup.\r\n\r\nSteps followed\r\n- Create kubernetes secret with user, password, host. \r\n`kubectl create secret generic smtp-secret  --from-literal=user=username --from literal=host=mailtrap.io:2525 --from-literal=password=password`\r\n- Install grafana `helm upgrade --install grafana  stable/grafana --set image.tag=5.1.0,smtp.existingSecret=\"smtp-secret\"`\r\n\r\nThen on the logs, the following is shown\r\n\r\n> t=2018-06-20T07:52:19+0000 lvl=info msg=\"Config overridden from Environment variable\" logger=settings var=\"GF_SMTP_USER=username\"\r\nt=2018-06-20T07:52:19+0000 lvl=info msg=\"Config overridden from Environment variable\" logger=settings var=\"GF_SMTP_PASSWORD=*********\"\r\nt=2018-06-20T07:52:19+0000 lvl=info msg=\"Path Home\" logger=settings path=/usr/share/grafana\r\nt=2018-06-20T07:52:19+0000 lvl=info msg=\"Path Data\" logger=settings path=/var/lib/grafana\r\n\r\n\r\nThe `GF_SMTP_HOST` variable is not populated, causing smtp setup to be incomeplete.\r\n\r\non checking the  deployment.yaml found this.\r\n[https://github.com/kubernetes/charts/blob/314995906eb53319a423ee22146664d086689556/stable/grafana/templates/deployment.yaml#L159](url)\r\n\r\n`            {{- if .Values.smtp.existingSecret }}`\r\n`           - name: GF_SMTP_USER`\r\n`           valueFrom:`\r\n`                secretKeyRef:`\r\n`                  name: {{ .Values.smtp.existingSecret }}`\r\n`                  key: user`\r\n`            - name: GF_SMTP_PASSWORD`\r\n`              valueFrom:`\r\n`                secretKeyRef:`\r\n`                  name: {{ .Values.smtp.existingSecret }}`\r\n`                  key: password`\r\n`            {{- end }}`\r\nI dont see anyother value required for the config being set as ENV in the code like `host`. Also the value is added to `grafana.ini` file either. \r\n\r\nThe documentaion doesn't seem to provide any insight on this. Please help me figure this out. "},"comment":{"url":"https://api.github.com/repos/helm/charts/issues/comments/407069900","html_url":"https://github.com/helm/charts/issues/6222#issuecomment-407069900","issue_url":"https://api.github.com/repos/helm/charts/issues/6222","id":407069900,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzA2OTkwMA==","user":{"login":"Tim-Schwalbe","id":16404601,"node_id":"MDQ6VXNlcjE2NDA0NjAx","avatar_url":"https://avatars2.githubusercontent.com/u/16404601?v=4","gravatar_id":"","url":"https://api.github.com/users/Tim-Schwalbe","html_url":"https://github.com/Tim-Schwalbe","followers_url":"https://api.github.com/users/Tim-Schwalbe/followers","following_url":"https://api.github.com/users/Tim-Schwalbe/following{/other_user}","gists_url":"https://api.github.com/users/Tim-Schwalbe/gists{/gist_id}","starred_url":"https://api.github.com/users/Tim-Schwalbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tim-Schwalbe/subscriptions","organizations_url":"https://api.github.com/users/Tim-Schwalbe/orgs","repos_url":"https://api.github.com/users/Tim-Schwalbe/repos","events_url":"https://api.github.com/users/Tim-Schwalbe/events{/privacy}","received_events_url":"https://api.github.com/users/Tim-Schwalbe/received_events","type":"User","site_admin":false},"created_at":"2018-07-23T14:06:14Z","updated_at":"2018-07-23T14:06:14Z","author_association":"NONE","body":"Can you provide an working example please."}}
{"actor":{"display_login":"Tim-Schwalbe"}}