payload: {"action":"created","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-kubernetes/issues/219","repository_url":"https://api.github.com/repos/terraform-providers/terraform-provider-kubernetes","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-kubernetes/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-kubernetes/issues/219/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-kubernetes/issues/219/events","html_url":"https://github.com/terraform-providers/terraform-provider-kubernetes/pull/219","id":382558813,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyMjM1NTIw","number":219,"title":"Add NodeAffinity config to persistence volume","user":{"login":"hardchiu","id":33221392,"node_id":"MDQ6VXNlcjMzMjIxMzky","avatar_url":"https://avatars1.githubusercontent.com/u/33221392?v=4","gravatar_id":"","url":"https://api.github.com/users/hardchiu","html_url":"https://github.com/hardchiu","followers_url":"https://api.github.com/users/hardchiu/followers","following_url":"https://api.github.com/users/hardchiu/following{/other_user}","gists_url":"https://api.github.com/users/hardchiu/gists{/gist_id}","starred_url":"https://api.github.com/users/hardchiu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hardchiu/subscriptions","organizations_url":"https://api.github.com/users/hardchiu/orgs","repos_url":"https://api.github.com/users/hardchiu/repos","events_url":"https://api.github.com/users/hardchiu/events{/privacy}","received_events_url":"https://api.github.com/users/hardchiu/received_events","type":"User","site_admin":false},"labels":[{"id":737832124,"node_id":"MDU6TGFiZWw3Mzc4MzIxMjQ=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-kubernetes/labels/size/XL","name":"size/XL","color":"ffffff","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-20T08:53:40Z","updated_at":"2019-02-20T19:03:31Z","closed_at":"2019-01-07T15:25:29Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-kubernetes/pulls/219","html_url":"https://github.com/terraform-providers/terraform-provider-kubernetes/pull/219","diff_url":"https://github.com/terraform-providers/terraform-provider-kubernetes/pull/219.diff","patch_url":"https://github.com/terraform-providers/terraform-provider-kubernetes/pull/219.patch"},"body":"Support node affinity setting of persistence volume, which is needed when using local volume:\r\nhttps://kubernetes.io/docs/concepts/storage/volumes/#local\r\n\r\nexample:\r\n```\r\nresource \"kubernetes_persistent_volume\" \"test\" {\r\n  metadata {\r\n    name = \"%s\"\r\n  }\r\n  spec {\r\n    capacity {\r\n      storage = \"2Gi\"\r\n    }\r\n    access_modes = [\"ReadWriteOnce\"]\r\n    persistent_volume_source {\r\n      host_path {\r\n        path = \"/mnt/local-volume\"\r\n      }\r\n    }\r\n    node_affinity {\r\n      required {\r\n        node_selector_term {\r\n          match_expressions = [{\r\n            key = \"%s\"\r\n            operator = \"In\"\r\n            values = [\"%s\"]\r\n          }]\r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nThe config is following Kubernetes one, it allows smooth transition if they add option at the \"required\" level in the future."},"comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-kubernetes/issues/comments/465711414","html_url":"https://github.com/terraform-providers/terraform-provider-kubernetes/pull/219#issuecomment-465711414","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-kubernetes/issues/219","id":465711414,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2NTcxMTQxNA==","user":{"login":"mbarrien","id":1753192,"node_id":"MDQ6VXNlcjE3NTMxOTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1753192?v=4","gravatar_id":"","url":"https://api.github.com/users/mbarrien","html_url":"https://github.com/mbarrien","followers_url":"https://api.github.com/users/mbarrien/followers","following_url":"https://api.github.com/users/mbarrien/following{/other_user}","gists_url":"https://api.github.com/users/mbarrien/gists{/gist_id}","starred_url":"https://api.github.com/users/mbarrien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbarrien/subscriptions","organizations_url":"https://api.github.com/users/mbarrien/orgs","repos_url":"https://api.github.com/users/mbarrien/repos","events_url":"https://api.github.com/users/mbarrien/events{/privacy}","received_events_url":"https://api.github.com/users/mbarrien/received_events","type":"User","site_admin":false},"created_at":"2019-02-20T19:03:31Z","updated_at":"2019-02-20T19:03:31Z","author_association":"NONE","body":"Very late comment on this... I believe nodeSelectorTerms actually allows multiple values (i.e. it's a list), and this implementation seems to have hard coded a max length of 1. Is this intentional?"}}
other: {"actor":{"display_login":"mbarrien"}}