{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/21011","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/21011/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/21011/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/21011/events","html_url":"https://github.com/kubernetes/kubernetes/issues/21011","id":132852491,"number":21011,"title":"Job object outlives its namespace","user":{"login":"thockin","id":5595220,"avatar_url":"https://avatars.githubusercontent.com/u/5595220?v=3","gravatar_id":"","url":"https://api.github.com/users/thockin","html_url":"https://github.com/thockin","followers_url":"https://api.github.com/users/thockin/followers","following_url":"https://api.github.com/users/thockin/following{/other_user}","gists_url":"https://api.github.com/users/thockin/gists{/gist_id}","starred_url":"https://api.github.com/users/thockin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thockin/subscriptions","organizations_url":"https://api.github.com/users/thockin/orgs","repos_url":"https://api.github.com/users/thockin/repos","events_url":"https://api.github.com/users/thockin/events{/privacy}","received_events_url":"https://api.github.com/users/thockin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/priority/P0","name":"priority/P0","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"derekwaynecarr","id":6233452,"avatar_url":"https://avatars.githubusercontent.com/u/6233452?v=3","gravatar_id":"","url":"https://api.github.com/users/derekwaynecarr","html_url":"https://github.com/derekwaynecarr","followers_url":"https://api.github.com/users/derekwaynecarr/followers","following_url":"https://api.github.com/users/derekwaynecarr/following{/other_user}","gists_url":"https://api.github.com/users/derekwaynecarr/gists{/gist_id}","starred_url":"https://api.github.com/users/derekwaynecarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derekwaynecarr/subscriptions","organizations_url":"https://api.github.com/users/derekwaynecarr/orgs","repos_url":"https://api.github.com/users/derekwaynecarr/repos","events_url":"https://api.github.com/users/derekwaynecarr/events{/privacy}","received_events_url":"https://api.github.com/users/derekwaynecarr/received_events","type":"User","site_admin":false},"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":182,"closed_issues":128,"state":"open","created_at":"2015-08-29T03:54:16Z","updated_at":"2016-02-11T06:06:38Z","due_on":"2016-03-07T08:00:00Z","closed_at":null},"comments":5,"created_at":"2016-02-10T23:54:59Z","updated_at":"2016-02-11T07:02:08Z","closed_at":"2016-02-11T04:59:30Z","body":"Yet another case of not being deleted properly?  @erictune @derekwaynecarr \r\n\r\n```\r\nthockin@freakshow th-kube-demos master /$ k get ns demos\r\nNAME      STATUS    AGE\r\ndemos     Active    7s\r\n\r\nthockin@freakshow th-kube-demos master /$ k --namespace=demos get jobs\r\nJOB           CONTAINER(S)   IMAGE(S)   SELECTOR         SUCCESSFUL\r\nsleeper-job   sleep          busybox    demo in (jobs)   24\r\n\r\nthockin@freakshow th-kube-demos master /$ k delete ns demos\r\nnamespace \"demos\" deleted\r\n\r\nthockin@freakshow th-kube-demos master /$ k --namespace=demos get jobs\r\nJOB           CONTAINER(S)   IMAGE(S)   SELECTOR         SUCCESSFUL\r\nsleeper-job   sleep          busybox    demo in (jobs)   24\r\n\r\nthockin@freakshow th-kube-demos master /$ k get ns\r\nNAME          STATUS    AGE\r\ndefault       Active    22h\r\nkube-system   Active    22h\r\n\r\nthockin@freakshow th-kube-demos master /$ k delete ns demos\r\nError from server: namespaces \"demos\" not found\r\n\r\nthockin@freakshow th-kube-demos master /$ k --namespace=demos get jobs\r\nJOB           CONTAINER(S)   IMAGE(S)   SELECTOR         SUCCESSFUL\r\nsleeper-job   sleep          busybox    demo in (jobs)   24\r\n\r\nthockin@freakshow th-kube-demos master /$ k create namespace demos\r\nnamespace \"demos\" created\r\n\r\nthockin@freakshow th-kube-demos master /$ k --namespace=demos get jobs\r\nJOB           CONTAINER(S)   IMAGE(S)   SELECTOR         SUCCESSFUL\r\nsleeper-job   sleep          busybox    demo in (jobs)   24\r\n...\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/182740814","html_url":"https://github.com/kubernetes/kubernetes/issues/21011#issuecomment-182740814","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/21011","id":182740814,"user":{"login":"thockin","id":5595220,"avatar_url":"https://avatars.githubusercontent.com/u/5595220?v=3","gravatar_id":"","url":"https://api.github.com/users/thockin","html_url":"https://github.com/thockin","followers_url":"https://api.github.com/users/thockin/followers","following_url":"https://api.github.com/users/thockin/following{/other_user}","gists_url":"https://api.github.com/users/thockin/gists{/gist_id}","starred_url":"https://api.github.com/users/thockin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thockin/subscriptions","organizations_url":"https://api.github.com/users/thockin/orgs","repos_url":"https://api.github.com/users/thockin/repos","events_url":"https://api.github.com/users/thockin/events{/privacy}","received_events_url":"https://api.github.com/users/thockin/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T07:02:08Z","updated_at":"2016-02-11T07:02:08Z","body":"I patched this into my cluster and it seems fixed, but the same problem exists for replicaset now.\r\n\r\n```\r\nthockin@freakshow:~/src/th-kube-demos$ k delete ns demos\r\nnamespace \"demos\" deleted\r\n\r\nthockin@freakshow:~/src/th-kube-demos$ kubectl --namespace=demos get replicaset\r\nCONTROLLER              CONTAINER(S)   IMAGE(S)   SELECTOR                                                                      REPLICAS   AGE\r\ndeployment-demo-4l559   busybox        busybox    demo in (deployment),demo-version in (v1),pod-template-hash in (4197825882)   0          1h\r\n                        nginx          nginx                                                                                    \r\ndeployment-demo-ftv0k   busybox        busybox    demo in (deployment),pod-template-hash in (2688726913)                        0         1h\r\n                        nginx          nginx                                                                                    \r\ndeployment-demo-okbti   busybox        busybox    demo in (deployment),pod-template-hash in (2809771906)                        3         1h\r\n                        nginx          nginx                                                                                    \r\ndeployment-demo-p514c   busybox        busybox    demo in (update),demo-version in (v1),pod-template-hash in (2763045788)       3         1h\r\n                        nginx          nginx                                                                                    \r\n```"}}