{"action":"closed","issue":{"url":"https://api.github.com/repos/helm/helm/issues/4746","repository_url":"https://api.github.com/repos/helm/helm","labels_url":"https://api.github.com/repos/helm/helm/issues/4746/labels{/name}","comments_url":"https://api.github.com/repos/helm/helm/issues/4746/comments","events_url":"https://api.github.com/repos/helm/helm/issues/4746/events","html_url":"https://github.com/helm/helm/issues/4746","id":367857980,"node_id":"MDU6SXNzdWUzNjc4NTc5ODA=","number":4746,"title":"\"has\" doesn't work for finding values in a list","user":{"login":"Velyks","id":3296308,"node_id":"MDQ6VXNlcjMyOTYzMDg=","avatar_url":"https://avatars3.githubusercontent.com/u/3296308?v=4","gravatar_id":"","url":"https://api.github.com/users/Velyks","html_url":"https://github.com/Velyks","followers_url":"https://api.github.com/users/Velyks/followers","following_url":"https://api.github.com/users/Velyks/following{/other_user}","gists_url":"https://api.github.com/users/Velyks/gists{/gist_id}","starred_url":"https://api.github.com/users/Velyks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Velyks/subscriptions","organizations_url":"https://api.github.com/users/Velyks/orgs","repos_url":"https://api.github.com/users/Velyks/repos","events_url":"https://api.github.com/users/Velyks/events{/privacy}","received_events_url":"https://api.github.com/users/Velyks/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-08T16:06:06Z","updated_at":"2018-10-08T16:10:49Z","closed_at":"2018-10-08T16:10:49Z","author_association":"NONE","body":"I've got a list in my values.yaml and doing the following with a string or an int results in an error.\r\n```\r\n{{ if has list \"test\" }}\r\n\r\nError: rendering template failed: Cannot find has on type string\r\n```\r\nLooking at the Sprig library, it looks like \"has\" is expecting two interface{} arguments. Parsing the second argument into a list also doesn't work.\r\n\r\nOutput of `helm version`:\r\nClient: &version.Version{SemVer:\"v2.11.0\", GitCommit:\"2e55dbe1fdb5fdb96b75ff144a339489417b146b\", GitTreeState:\"clean\"}\r\nServer: &version.Version{SemVer:\"v2.11.0\", GitCommit:\"2e55dbe1fdb5fdb96b75ff144a339489417b146b\", GitTreeState:\"clean\"}\r\n\r\nOutput of `kubectl version`:\r\nClient Version: version.Info{Major:\"1\", Minor:\"12\", GitVersion:\"v1.12.0\", GitCommit:\"0ed33881dc4355495f623c6f22e7dd0b7632b7c0\", GitTreeState:\"clean\", BuildDate:\"2018-09-28T15:20:58Z\", GoVersion:\"go1.11\", Compiler:\"gc\", Platform:\"darwin/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"10+\", GitVersion:\"v1.10.3-eks\", GitCommit:\"58c199a59046dbf0a13a387d3491a39213be53df\", GitTreeState:\"clean\", BuildDate:\"2018-09-21T21:00:04Z\", GoVersion:\"go1.9.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n\r\nCloud Provider/Platform (AKS, GKE, Minikube etc.): \r\nEKS\r\n\r\n\r\n"}}
{"actor":{"display_login":"Velyks"}}