{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/29551","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/29551/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/29551/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/29551/events","html_url":"https://github.com/kubernetes/kubernetes/pull/29551","id":167413761,"number":29551,"title":"Kubectl apply purge from namespace","user":{"login":"lukemarsden","id":264658,"avatar_url":"https://avatars.githubusercontent.com/u/264658?v=3","gravatar_id":"","url":"https://api.github.com/users/lukemarsden","html_url":"https://github.com/lukemarsden","followers_url":"https://api.github.com/users/lukemarsden/followers","following_url":"https://api.github.com/users/lukemarsden/following{/other_user}","gists_url":"https://api.github.com/users/lukemarsden/gists{/gist_id}","starred_url":"https://api.github.com/users/lukemarsden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukemarsden/subscriptions","organizations_url":"https://api.github.com/users/lukemarsden/orgs","repos_url":"https://api.github.com/users/lukemarsden/repos","events_url":"https://api.github.com/users/lukemarsden/events{/privacy}","received_events_url":"https://api.github.com/users/lukemarsden/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/area/cluster-lifecycle","name":"area/cluster-lifecycle","color":"d4c5f9"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/cla:%20human-approved","name":"cla: human-approved","color":"bfe5bf"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/cla:%20no","name":"cla: no","color":"e11d21"},{"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/kind/design","name":"kind/design","color":"c7def8"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/release-note-none","name":"release-note-none","color":"c2e0c6"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/retest-not-required-docs-only","name":"retest-not-required-docs-only","color":"fbca04"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/size/M","name":"size/M","color":"eebb00"}],"state":"open","locked":false,"assignee":{"login":"mikedanese","id":1787169,"avatar_url":"https://avatars.githubusercontent.com/u/1787169?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedanese","html_url":"https://github.com/mikedanese","followers_url":"https://api.github.com/users/mikedanese/followers","following_url":"https://api.github.com/users/mikedanese/following{/other_user}","gists_url":"https://api.github.com/users/mikedanese/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedanese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedanese/subscriptions","organizations_url":"https://api.github.com/users/mikedanese/orgs","repos_url":"https://api.github.com/users/mikedanese/repos","events_url":"https://api.github.com/users/mikedanese/events{/privacy}","received_events_url":"https://api.github.com/users/mikedanese/received_events","type":"User","site_admin":false},"assignees":[{"login":"mikedanese","id":1787169,"avatar_url":"https://avatars.githubusercontent.com/u/1787169?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedanese","html_url":"https://github.com/mikedanese","followers_url":"https://api.github.com/users/mikedanese/followers","following_url":"https://api.github.com/users/mikedanese/following{/other_user}","gists_url":"https://api.github.com/users/mikedanese/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedanese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedanese/subscriptions","organizations_url":"https://api.github.com/users/mikedanese/orgs","repos_url":"https://api.github.com/users/mikedanese/repos","events_url":"https://api.github.com/users/mikedanese/events{/privacy}","received_events_url":"https://api.github.com/users/mikedanese/received_events","type":"User","site_admin":false},{"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}],"milestone":null,"comments":42,"created_at":"2016-07-25T16:52:07Z","updated_at":"2016-08-17T16:53:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/29551","html_url":"https://github.com/kubernetes/kubernetes/pull/29551","diff_url":"https://github.com/kubernetes/kubernetes/pull/29551.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/29551.patch"},"body":"Proposal to resolve #19805\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.kubernetes.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes/29551)\n<!-- Reviewable:end -->\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/240475137","html_url":"https://github.com/kubernetes/kubernetes/pull/29551#issuecomment-240475137","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/29551","id":240475137,"user":{"login":"ghodss","id":5209643,"avatar_url":"https://avatars.githubusercontent.com/u/5209643?v=3","gravatar_id":"","url":"https://api.github.com/users/ghodss","html_url":"https://github.com/ghodss","followers_url":"https://api.github.com/users/ghodss/followers","following_url":"https://api.github.com/users/ghodss/following{/other_user}","gists_url":"https://api.github.com/users/ghodss/gists{/gist_id}","starred_url":"https://api.github.com/users/ghodss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghodss/subscriptions","organizations_url":"https://api.github.com/users/ghodss/orgs","repos_url":"https://api.github.com/users/ghodss/repos","events_url":"https://api.github.com/users/ghodss/events{/privacy}","received_events_url":"https://api.github.com/users/ghodss/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T16:53:55Z","updated_at":"2016-08-17T16:53:55Z","body":"This is very cool, thanks for the update! Couple questions:\r\n\r\n1) How does this interact with namespaces? Maybe this was implicit but here's how I would imagine it:\r\n\r\n1. If no namespace is specified, operate across `default` namespace only.\r\n1. If `--namespace` is specified, only operate in that namespace.\r\n1. If `--all-namespaces` is specified, operate across the entire cluster.\r\n\r\n...with the label selector working as expected in all cases. I do think you could make a case that if you do `--all-namespaces`, adding a label selector should throw an error, since labels generally are designed to be scoped within namespaces. But I could be convinced either way on that.\r\n\r\n2) If you just do `--purge-missing-where \"\"`, do you then affect all objects? This makes sense to me, but I wonder if there should be a different option or change the option name for it to be more intuitive in both cases."}}
{"actor":{"display_login":"ghodss"}}