{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/22454","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/22454/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/22454/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/22454/events","html_url":"https://github.com/kubernetes/kubernetes/issues/22454","id":138274642,"number":22454,"title":"Discuss what to do with kubectl flags that take in a single api version","user":{"login":"nikhiljindal","id":10199099,"avatar_url":"https://avatars.githubusercontent.com/u/10199099?v=3","gravatar_id":"","url":"https://api.github.com/users/nikhiljindal","html_url":"https://github.com/nikhiljindal","followers_url":"https://api.github.com/users/nikhiljindal/followers","following_url":"https://api.github.com/users/nikhiljindal/following{/other_user}","gists_url":"https://api.github.com/users/nikhiljindal/gists{/gist_id}","starred_url":"https://api.github.com/users/nikhiljindal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikhiljindal/subscriptions","organizations_url":"https://api.github.com/users/nikhiljindal/orgs","repos_url":"https://api.github.com/users/nikhiljindal/repos","events_url":"https://api.github.com/users/nikhiljindal/events{/privacy}","received_events_url":"https://api.github.com/users/nikhiljindal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/component/kubectl","name":"component/kubectl","color":"0052cc"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/CSI-API%20Machinery%20SIG","name":"team/CSI-API Machinery SIG","color":"d2b48c"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/ux","name":"team/ux","color":"d2b48c"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/kubernetes/kubernetes/milestones/15","html_url":"https://github.com/kubernetes/kubernetes/milestones/v1.2","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/milestones/15/labels","id":1278499,"number":15,"title":"v1.2","description":"https://github.com/kubernetes/kubernetes/wiki/Release-1.2","creator":{"login":"bgrant0607","id":7725777,"avatar_url":"https://avatars.githubusercontent.com/u/7725777?v=3","gravatar_id":"","url":"https://api.github.com/users/bgrant0607","html_url":"https://github.com/bgrant0607","followers_url":"https://api.github.com/users/bgrant0607/followers","following_url":"https://api.github.com/users/bgrant0607/following{/other_user}","gists_url":"https://api.github.com/users/bgrant0607/gists{/gist_id}","starred_url":"https://api.github.com/users/bgrant0607/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgrant0607/subscriptions","organizations_url":"https://api.github.com/users/bgrant0607/orgs","repos_url":"https://api.github.com/users/bgrant0607/repos","events_url":"https://api.github.com/users/bgrant0607/events{/privacy}","received_events_url":"https://api.github.com/users/bgrant0607/received_events","type":"User","site_admin":false},"open_issues":151,"closed_issues":509,"state":"open","created_at":"2015-08-29T03:54:16Z","updated_at":"2016-03-03T21:29:55Z","due_on":"2016-03-04T05:00:00Z","closed_at":null},"comments":9,"created_at":"2016-03-03T19:30:22Z","updated_at":"2016-03-03T21:43:26Z","closed_at":null,"body":"Problem: We have kubectl flags (--api-version and --output-version) that take an API version. These were designed when we had just one group and it was expected that just specifying the version will be enough.\r\nBut, we now have multiple groups with potentially multiple versions in each group. We have replaced version by groupVersion at most places, but these kubectl flags remain.\r\n\r\nThis issue is to discuss the path forward for these kubectl flags. What we should do in 1.2 and what is post-1.2\r\n\r\ncc @bgrant0607 @deads2k @smarterclayton @lavalamp @caesarxuchao"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/191976918","html_url":"https://github.com/kubernetes/kubernetes/issues/22454#issuecomment-191976918","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/22454","id":191976918,"user":{"login":"nikhiljindal","id":10199099,"avatar_url":"https://avatars.githubusercontent.com/u/10199099?v=3","gravatar_id":"","url":"https://api.github.com/users/nikhiljindal","html_url":"https://github.com/nikhiljindal","followers_url":"https://api.github.com/users/nikhiljindal/followers","following_url":"https://api.github.com/users/nikhiljindal/following{/other_user}","gists_url":"https://api.github.com/users/nikhiljindal/gists{/gist_id}","starred_url":"https://api.github.com/users/nikhiljindal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikhiljindal/subscriptions","organizations_url":"https://api.github.com/users/nikhiljindal/orgs","repos_url":"https://api.github.com/users/nikhiljindal/repos","events_url":"https://api.github.com/users/nikhiljindal/events{/privacy}","received_events_url":"https://api.github.com/users/nikhiljindal/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T21:43:26Z","updated_at":"2016-03-03T21:43:26Z","body":"Based on discussion with @lavalamp, here is what we can do:\r\n\r\n* 1.2: Stop using apiversion field from kubeconfig. Users should specify the apiversion in the command, if they want, so that the command produces the same output when run on any machine or by any user.  #14318\r\n* 1.2: Deprecate --api-versions field from kubectl. The flag doesnt work today anyway. We will instead, later, allow users to specify the group version while specifying the resource.\r\n* --output-version kubectl flag: Check if it works. We can maybe let it be as is, if it works. If not, we can ask users to use `kubectl convert`\r\n* Check if `kubectl convert` works. Now that we have resources (such as hpa) in multiple groups, we should ensure that it works."}}