{"action":"created","issue":{"url":"https://api.github.com/repos/roboll/helmfile/issues/357","repository_url":"https://api.github.com/repos/roboll/helmfile","labels_url":"https://api.github.com/repos/roboll/helmfile/issues/357/labels{/name}","comments_url":"https://api.github.com/repos/roboll/helmfile/issues/357/comments","events_url":"https://api.github.com/repos/roboll/helmfile/issues/357/events","html_url":"https://github.com/roboll/helmfile/issues/357","id":362689170,"node_id":"MDU6SXNzdWUzNjI2ODkxNzA=","number":357,"title":"Go templates `default` functionality is broken after version 0.33.0","user":{"login":"apetheriotis","id":1010210,"node_id":"MDQ6VXNlcjEwMTAyMTA=","avatar_url":"https://avatars0.githubusercontent.com/u/1010210?v=4","gravatar_id":"","url":"https://api.github.com/users/apetheriotis","html_url":"https://github.com/apetheriotis","followers_url":"https://api.github.com/users/apetheriotis/followers","following_url":"https://api.github.com/users/apetheriotis/following{/other_user}","gists_url":"https://api.github.com/users/apetheriotis/gists{/gist_id}","starred_url":"https://api.github.com/users/apetheriotis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apetheriotis/subscriptions","organizations_url":"https://api.github.com/users/apetheriotis/orgs","repos_url":"https://api.github.com/users/apetheriotis/repos","events_url":"https://api.github.com/users/apetheriotis/events{/privacy}","received_events_url":"https://api.github.com/users/apetheriotis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-09-21T16:26:02Z","updated_at":"2018-09-24T18:49:28Z","closed_at":null,"author_association":"NONE","body":"The following example (it's provided in the helmfile readme) works on version 0.33 but on version 0.34 and onwards:\r\n\r\n`helmfile.yaml`\r\n```\r\nenvironments:\r\n  production:\r\n    values:\r\n    - production.yaml\r\n\r\nreleases:\r\n- name: myapp\r\n  values:\r\n  - values.yaml.gotmpl\r\n```\r\n\r\n`production.yaml`\r\n```\r\ndomain: prod.example.com\r\nreleaseName: prod\r\nvalues.yaml.gotmpl\r\n\r\ndomain: {{ .Environment.Values.domain | default \"dev.example.com\" }}\r\n```\r\n\r\nThe above setup fails on version 0.34 and onwards with:\r\n```\r\n map has no entry for key \"domain\"\r\n```\r\n\r\nwhen the `domain` value is missing from the environment file `production.yaml`\r\n\r\nProbably the functionality of go templates is not the expected one when the key is missing from the values file.\r\n"},"comment":{"url":"https://api.github.com/repos/roboll/helmfile/issues/comments/424083804","html_url":"https://github.com/roboll/helmfile/issues/357#issuecomment-424083804","issue_url":"https://api.github.com/repos/roboll/helmfile/issues/357","id":424083804,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDA4MzgwNA==","user":{"login":"sstarcher","id":3778974,"node_id":"MDQ6VXNlcjM3Nzg5NzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3778974?v=4","gravatar_id":"","url":"https://api.github.com/users/sstarcher","html_url":"https://github.com/sstarcher","followers_url":"https://api.github.com/users/sstarcher/followers","following_url":"https://api.github.com/users/sstarcher/following{/other_user}","gists_url":"https://api.github.com/users/sstarcher/gists{/gist_id}","starred_url":"https://api.github.com/users/sstarcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sstarcher/subscriptions","organizations_url":"https://api.github.com/users/sstarcher/orgs","repos_url":"https://api.github.com/users/sstarcher/repos","events_url":"https://api.github.com/users/sstarcher/events{/privacy}","received_events_url":"https://api.github.com/users/sstarcher/received_events","type":"User","site_admin":false},"created_at":"2018-09-24T18:49:28Z","updated_at":"2018-09-24T18:49:28Z","author_association":"CONTRIBUTOR","body":"@mumoshu do we have any way to check if a key exists without trying to access it.  "}}
{"actor":{"display_login":"sstarcher"}}