{"action":"created","issue":{"url":"https://api.github.com/repos/istio/issues/issues/261","repository_url":"https://api.github.com/repos/istio/issues","labels_url":"https://api.github.com/repos/istio/issues/issues/261/labels{/name}","comments_url":"https://api.github.com/repos/istio/issues/issues/261/comments","events_url":"https://api.github.com/repos/istio/issues/issues/261/events","html_url":"https://github.com/istio/issues/issues/261","id":310063073,"number":261,"title":"webhook-create-signed-cert.sh and kubectl 1.10 + missing fields","user":{"login":"visheyra","id":5854290,"avatar_url":"https://avatars1.githubusercontent.com/u/5854290?v=4","gravatar_id":"","url":"https://api.github.com/users/visheyra","html_url":"https://github.com/visheyra","followers_url":"https://api.github.com/users/visheyra/followers","following_url":"https://api.github.com/users/visheyra/following{/other_user}","gists_url":"https://api.github.com/users/visheyra/gists{/gist_id}","starred_url":"https://api.github.com/users/visheyra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/visheyra/subscriptions","organizations_url":"https://api.github.com/users/visheyra/orgs","repos_url":"https://api.github.com/users/visheyra/repos","events_url":"https://api.github.com/users/visheyra/events{/privacy}","received_events_url":"https://api.github.com/users/visheyra/received_events","type":"User","site_admin":false},"labels":[{"id":822324510,"url":"https://api.github.com/repos/istio/issues/labels/area/enviroments","name":"area/enviroments","color":"0e8a16","default":false},{"id":822331339,"url":"https://api.github.com/repos/istio/issues/labels/kind/customer-issue","name":"kind/customer-issue","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"yusuoh","id":30157432,"avatar_url":"https://avatars1.githubusercontent.com/u/30157432?v=4","gravatar_id":"","url":"https://api.github.com/users/yusuoh","html_url":"https://github.com/yusuoh","followers_url":"https://api.github.com/users/yusuoh/followers","following_url":"https://api.github.com/users/yusuoh/following{/other_user}","gists_url":"https://api.github.com/users/yusuoh/gists{/gist_id}","starred_url":"https://api.github.com/users/yusuoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yusuoh/subscriptions","organizations_url":"https://api.github.com/users/yusuoh/orgs","repos_url":"https://api.github.com/users/yusuoh/repos","events_url":"https://api.github.com/users/yusuoh/events{/privacy}","received_events_url":"https://api.github.com/users/yusuoh/received_events","type":"User","site_admin":false},"assignees":[{"login":"yusuoh","id":30157432,"avatar_url":"https://avatars1.githubusercontent.com/u/30157432?v=4","gravatar_id":"","url":"https://api.github.com/users/yusuoh","html_url":"https://github.com/yusuoh","followers_url":"https://api.github.com/users/yusuoh/followers","following_url":"https://api.github.com/users/yusuoh/following{/other_user}","gists_url":"https://api.github.com/users/yusuoh/gists{/gist_id}","starred_url":"https://api.github.com/users/yusuoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yusuoh/subscriptions","organizations_url":"https://api.github.com/users/yusuoh/orgs","repos_url":"https://api.github.com/users/yusuoh/repos","events_url":"https://api.github.com/users/yusuoh/events{/privacy}","received_events_url":"https://api.github.com/users/yusuoh/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2018-03-30T13:13:05Z","updated_at":"2018-04-12T11:32:13Z","closed_at":null,"author_association":"NONE","body":"\r\nKind: BUG\r\n\r\nistioctl version\r\n```\r\nVersion: 0.6.0\r\nGitRevision: 2cb09cdf040a8573330a127947b11e5082619895\r\nUser: root@a28f609ab931\r\nHub: docker.io/istio\r\nGolangVersion: go1.9\r\nBuildStatus: Clean\r\n\r\n```\r\n\r\nkubectl version\r\n```\r\nClient Version: version.Info{Major:\"1\", Minor:\"10+\", GitVersion:\"v1.10.0-rc.1\", GitCommit:\"2106a5910f6de3c07b8f329c7adaca38a0d3f825\", GitTreeState:\"clean\", BuildDate:\"2018-03-19T23:38:18Z\", GoVersion:\"go1.9.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n\r\n```\r\nIn kubectl 1.10+ version when you do a dry run then output it as yaml or json the following fields are missing: Kind, APIVersion\r\n\r\nSince you just pipe the output to kubectl to apply the secret, it can happen because those mandatory fields are unset.\r\n\r\n**How to reproduce it:**\r\nYou should have a kubectl client in 1.10+ at least and istio installedm then use this script to install the secret and vcertificate for the webhook => webhook-create-signed-cert.sh.\r\n\r\nAt this point you should see the following error:\r\n\r\n```\r\nerror: error validating \"STDIN\": error validating data: [apiVersion not set, kind not set]; if you choose to ignore these errors, turn validation off with --validate=false\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/istio/issues/issues/comments/380773860","html_url":"https://github.com/istio/issues/issues/261#issuecomment-380773860","issue_url":"https://api.github.com/repos/istio/issues/issues/261","id":380773860,"user":{"login":"Vikash082","id":4396870,"avatar_url":"https://avatars1.githubusercontent.com/u/4396870?v=4","gravatar_id":"","url":"https://api.github.com/users/Vikash082","html_url":"https://github.com/Vikash082","followers_url":"https://api.github.com/users/Vikash082/followers","following_url":"https://api.github.com/users/Vikash082/following{/other_user}","gists_url":"https://api.github.com/users/Vikash082/gists{/gist_id}","starred_url":"https://api.github.com/users/Vikash082/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vikash082/subscriptions","organizations_url":"https://api.github.com/users/Vikash082/orgs","repos_url":"https://api.github.com/users/Vikash082/repos","events_url":"https://api.github.com/users/Vikash082/events{/privacy}","received_events_url":"https://api.github.com/users/Vikash082/received_events","type":"User","site_admin":false},"created_at":"2018-04-12T11:32:13Z","updated_at":"2018-04-12T11:32:13Z","author_association":"NONE","body":"I installed fresh Istio today and getting same error."}}
{"actor":{"display_login":"Vikash082"}}