{"action":"closed","number":332,"pull_request":{"url":"https://api.github.com/repos/projectcalico/libcalico-go/pulls/332","id":103520979,"html_url":"https://github.com/projectcalico/libcalico-go/pull/332","diff_url":"https://github.com/projectcalico/libcalico-go/pull/332.diff","patch_url":"https://github.com/projectcalico/libcalico-go/pull/332.patch","issue_url":"https://api.github.com/repos/projectcalico/libcalico-go/issues/332","number":332,"state":"closed","locked":false,"title":"Fix bug where no egress traffic is allowed in k8s backend","user":{"login":"caseydavenport","id":1944093,"avatar_url":"https://avatars.githubusercontent.com/u/1944093?v=3","gravatar_id":"","url":"https://api.github.com/users/caseydavenport","html_url":"https://github.com/caseydavenport","followers_url":"https://api.github.com/users/caseydavenport/followers","following_url":"https://api.github.com/users/caseydavenport/following{/other_user}","gists_url":"https://api.github.com/users/caseydavenport/gists{/gist_id}","starred_url":"https://api.github.com/users/caseydavenport/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseydavenport/subscriptions","organizations_url":"https://api.github.com/users/caseydavenport/orgs","repos_url":"https://api.github.com/users/caseydavenport/repos","events_url":"https://api.github.com/users/caseydavenport/events{/privacy}","received_events_url":"https://api.github.com/users/caseydavenport/received_events","type":"User","site_admin":false},"body":"When using the Kubernetes backend, no egress policy is created (since k8s NetworkPolicy does not support egress).\r\n\r\nThe result is that applying NetworkPolicy causes Pods to lose egress connectivity.  This PR fixes that by using Namespaces to generate Policies which allow traffic based on the Namespace policy (previously done with Calico Profiles).\r\n\r\nIt also renames the automatically generated Calico Policy names so that it is distinguishable whether the Policy is backed by a NetworkPolicy or a Namespace.\r\n\r\nFixes #331 ","created_at":"2017-01-27T16:17:52Z","updated_at":"2017-01-30T18:16:41Z","closed_at":"2017-01-30T18:16:41Z","merged_at":"2017-01-30T18:16:41Z","merge_commit_sha":"f60d01d2e52b3b68db68b4d53b92c8d3a89efe62","assignee":{"login":"caseydavenport","id":1944093,"avatar_url":"https://avatars.githubusercontent.com/u/1944093?v=3","gravatar_id":"","url":"https://api.github.com/users/caseydavenport","html_url":"https://github.com/caseydavenport","followers_url":"https://api.github.com/users/caseydavenport/followers","following_url":"https://api.github.com/users/caseydavenport/following{/other_user}","gists_url":"https://api.github.com/users/caseydavenport/gists{/gist_id}","starred_url":"https://api.github.com/users/caseydavenport/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseydavenport/subscriptions","organizations_url":"https://api.github.com/users/caseydavenport/orgs","repos_url":"https://api.github.com/users/caseydavenport/repos","events_url":"https://api.github.com/users/caseydavenport/events{/privacy}","received_events_url":"https://api.github.com/users/caseydavenport/received_events","type":"User","site_admin":false},"assignees":[{"login":"caseydavenport","id":1944093,"avatar_url":"https://avatars.githubusercontent.com/u/1944093?v=3","gravatar_id":"","url":"https://api.github.com/users/caseydavenport","html_url":"https://github.com/caseydavenport","followers_url":"https://api.github.com/users/caseydavenport/followers","following_url":"https://api.github.com/users/caseydavenport/following{/other_user}","gists_url":"https://api.github.com/users/caseydavenport/gists{/gist_id}","starred_url":"https://api.github.com/users/caseydavenport/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseydavenport/subscriptions","organizations_url":"https://api.github.com/users/caseydavenport/orgs","repos_url":"https://api.github.com/users/caseydavenport/repos","events_url":"https://api.github.com/users/caseydavenport/events{/privacy}","received_events_url":"https://api.github.com/users/caseydavenport/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/projectcalico/libcalico-go/milestones/6","html_url":"https://github.com/projectcalico/libcalico-go/milestone/6","labels_url":"https://api.github.com/repos/projectcalico/libcalico-go/milestones/6/labels","id":2285542,"number":6,"title":"Calico v2.0.2","description":"","creator":{"login":"caseydavenport","id":1944093,"avatar_url":"https://avatars.githubusercontent.com/u/1944093?v=3","gravatar_id":"","url":"https://api.github.com/users/caseydavenport","html_url":"https://github.com/caseydavenport","followers_url":"https://api.github.com/users/caseydavenport/followers","following_url":"https://api.github.com/users/caseydavenport/following{/other_user}","gists_url":"https://api.github.com/users/caseydavenport/gists{/gist_id}","starred_url":"https://api.github.com/users/caseydavenport/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseydavenport/subscriptions","organizations_url":"https://api.github.com/users/caseydavenport/orgs","repos_url":"https://api.github.com/users/caseydavenport/repos","events_url":"https://api.github.com/users/caseydavenport/events{/privacy}","received_events_url":"https://api.github.com/users/caseydavenport/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2017-01-30T05:57:20Z","updated_at":"2017-01-30T18:16:41Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/projectcalico/libcalico-go/pulls/332/commits","review_comments_url":"https://api.github.com/repos/projectcalico/libcalico-go/pulls/332/comments","review_comment_url":"https://api.github.com/repos/projectcalico/libcalico-go/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectcalico/libcalico-go/issues/332/comments","statuses_url":"https://api.github.com/repos/projectcalico/libcalico-go/statuses/6b7a8212f11d93834d1320c647ee3c0d36c876d8","head":{"label":"caseydavenport:fix-bug","ref":"fix-bug","sha":"6b7a8212f11d93834d1320c647ee3c0d36c876d8","user":{"login":"caseydavenport","id":1944093,"avatar_url":"https://avatars.githubusercontent.com/u/1944093?v=3","gravatar_id":"","url":"https://api.github.com/users/caseydavenport","html_url":"https://github.com/caseydavenport","followers_url":"https://api.github.com/users/caseydavenport/followers","following_url":"https://api.github.com/users/caseydavenport/following{/other_user}","gists_url":"https://api.github.com/users/caseydavenport/gists{/gist_id}","starred_url":"https://api.github.com/users/caseydavenport/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseydavenport/subscriptions","organizations_url":"https://api.github.com/users/caseydavenport/orgs","repos_url":"https://api.github.com/users/caseydavenport/repos","events_url":"https://api.github.com/users/caseydavenport/events{/privacy}","received_events_url":"https://api.github.com/users/caseydavenport/received_events","type":"User","site_admin":false},"repo":{"id":63621502,"name":"libcalico-go","full_name":"caseydavenport/libcalico-go","owner":{"login":"caseydavenport","id":1944093,"avatar_url":"https://avatars.githubusercontent.com/u/1944093?v=3","gravatar_id":"","url":"https://api.github.com/users/caseydavenport","html_url":"https://github.com/caseydavenport","followers_url":"https://api.github.com/users/caseydavenport/followers","following_url":"https://api.github.com/users/caseydavenport/following{/other_user}","gists_url":"https://api.github.com/users/caseydavenport/gists{/gist_id}","starred_url":"https://api.github.com/users/caseydavenport/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseydavenport/subscriptions","organizations_url":"https://api.github.com/users/caseydavenport/orgs","repos_url":"https://api.github.com/users/caseydavenport/repos","events_url":"https://api.github.com/users/caseydavenport/events{/privacy}","received_events_url":"https://api.github.com/users/caseydavenport/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/caseydavenport/libcalico-go","description":"Golang Calico library functions:  https://www.projectcalico.org","fork":true,"url":"https://api.github.com/repos/caseydavenport/libcalico-go","forks_url":"https://api.github.com/repos/caseydavenport/libcalico-go/forks","keys_url":"https://api.github.com/repos/caseydavenport/libcalico-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caseydavenport/libcalico-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caseydavenport/libcalico-go/teams","hooks_url":"https://api.github.com/repos/caseydavenport/libcalico-go/hooks","issue_events_url":"https://api.github.com/repos/caseydavenport/libcalico-go/issues/events{/number}","events_url":"https://api.github.com/repos/caseydavenport/libcalico-go/events","assignees_url":"https://api.github.com/repos/caseydavenport/libcalico-go/assignees{/user}","branches_url":"https://api.github.com/repos/caseydavenport/libcalico-go/branches{/branch}","tags_url":"https://api.github.com/repos/caseydavenport/libcalico-go/tags","blobs_url":"https://api.github.com/repos/caseydavenport/libcalico-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caseydavenport/libcalico-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caseydavenport/libcalico-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/caseydavenport/libcalico-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caseydavenport/libcalico-go/statuses/{sha}","languages_url":"https://api.github.com/repos/caseydavenport/libcalico-go/languages","stargazers_url":"https://api.github.com/repos/caseydavenport/libcalico-go/stargazers","contributors_url":"https://api.github.com/repos/caseydavenport/libcalico-go/contributors","subscribers_url":"https://api.github.com/repos/caseydavenport/libcalico-go/subscribers","subscription_url":"https://api.github.com/repos/caseydavenport/libcalico-go/subscription","commits_url":"https://api.github.com/repos/caseydavenport/libcalico-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/caseydavenport/libcalico-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/caseydavenport/libcalico-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/caseydavenport/libcalico-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/caseydavenport/libcalico-go/contents/{+path}","compare_url":"https://api.github.com/repos/caseydavenport/libcalico-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caseydavenport/libcalico-go/merges","archive_url":"https://api.github.com/repos/caseydavenport/libcalico-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caseydavenport/libcalico-go/downloads","issues_url":"https://api.github.com/repos/caseydavenport/libcalico-go/issues{/number}","pulls_url":"https://api.github.com/repos/caseydavenport/libcalico-go/pulls{/number}","milestones_url":"https://api.github.com/repos/caseydavenport/libcalico-go/milestones{/number}","notifications_url":"https://api.github.com/repos/caseydavenport/libcalico-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caseydavenport/libcalico-go/labels{/name}","releases_url":"https://api.github.com/repos/caseydavenport/libcalico-go/releases{/id}","deployments_url":"https://api.github.com/repos/caseydavenport/libcalico-go/deployments","created_at":"2016-07-18T17:02:22Z","updated_at":"2016-07-18T17:02:23Z","pushed_at":"2017-01-30T18:13:56Z","git_url":"git://github.com/caseydavenport/libcalico-go.git","ssh_url":"git@github.com:caseydavenport/libcalico-go.git","clone_url":"https://github.com/caseydavenport/libcalico-go.git","svn_url":"https://github.com/caseydavenport/libcalico-go","homepage":null,"size":795,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"projectcalico:master","ref":"master","sha":"22c85122096fbad054af1f24c399c090d6427319","user":{"login":"projectcalico","id":12304728,"avatar_url":"https://avatars.githubusercontent.com/u/12304728?v=3","gravatar_id":"","url":"https://api.github.com/users/projectcalico","html_url":"https://github.com/projectcalico","followers_url":"https://api.github.com/users/projectcalico/followers","following_url":"https://api.github.com/users/projectcalico/following{/other_user}","gists_url":"https://api.github.com/users/projectcalico/gists{/gist_id}","starred_url":"https://api.github.com/users/projectcalico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectcalico/subscriptions","organizations_url":"https://api.github.com/users/projectcalico/orgs","repos_url":"https://api.github.com/users/projectcalico/repos","events_url":"https://api.github.com/users/projectcalico/events{/privacy}","received_events_url":"https://api.github.com/users/projectcalico/received_events","type":"Organization","site_admin":false},"repo":{"id":63438319,"name":"libcalico-go","full_name":"projectcalico/libcalico-go","owner":{"login":"projectcalico","id":12304728,"avatar_url":"https://avatars.githubusercontent.com/u/12304728?v=3","gravatar_id":"","url":"https://api.github.com/users/projectcalico","html_url":"https://github.com/projectcalico","followers_url":"https://api.github.com/users/projectcalico/followers","following_url":"https://api.github.com/users/projectcalico/following{/other_user}","gists_url":"https://api.github.com/users/projectcalico/gists{/gist_id}","starred_url":"https://api.github.com/users/projectcalico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectcalico/subscriptions","organizations_url":"https://api.github.com/users/projectcalico/orgs","repos_url":"https://api.github.com/users/projectcalico/repos","events_url":"https://api.github.com/users/projectcalico/events{/privacy}","received_events_url":"https://api.github.com/users/projectcalico/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectcalico/libcalico-go","description":"Golang Calico library functions:  https://www.projectcalico.org","fork":false,"url":"https://api.github.com/repos/projectcalico/libcalico-go","forks_url":"https://api.github.com/repos/projectcalico/libcalico-go/forks","keys_url":"https://api.github.com/repos/projectcalico/libcalico-go/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectcalico/libcalico-go/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectcalico/libcalico-go/teams","hooks_url":"https://api.github.com/repos/projectcalico/libcalico-go/hooks","issue_events_url":"https://api.github.com/repos/projectcalico/libcalico-go/issues/events{/number}","events_url":"https://api.github.com/repos/projectcalico/libcalico-go/events","assignees_url":"https://api.github.com/repos/projectcalico/libcalico-go/assignees{/user}","branches_url":"https://api.github.com/repos/projectcalico/libcalico-go/branches{/branch}","tags_url":"https://api.github.com/repos/projectcalico/libcalico-go/tags","blobs_url":"https://api.github.com/repos/projectcalico/libcalico-go/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectcalico/libcalico-go/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectcalico/libcalico-go/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectcalico/libcalico-go/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectcalico/libcalico-go/statuses/{sha}","languages_url":"https://api.github.com/repos/projectcalico/libcalico-go/languages","stargazers_url":"https://api.github.com/repos/projectcalico/libcalico-go/stargazers","contributors_url":"https://api.github.com/repos/projectcalico/libcalico-go/contributors","subscribers_url":"https://api.github.com/repos/projectcalico/libcalico-go/subscribers","subscription_url":"https://api.github.com/repos/projectcalico/libcalico-go/subscription","commits_url":"https://api.github.com/repos/projectcalico/libcalico-go/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectcalico/libcalico-go/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectcalico/libcalico-go/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectcalico/libcalico-go/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectcalico/libcalico-go/contents/{+path}","compare_url":"https://api.github.com/repos/projectcalico/libcalico-go/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectcalico/libcalico-go/merges","archive_url":"https://api.github.com/repos/projectcalico/libcalico-go/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectcalico/libcalico-go/downloads","issues_url":"https://api.github.com/repos/projectcalico/libcalico-go/issues{/number}","pulls_url":"https://api.github.com/repos/projectcalico/libcalico-go/pulls{/number}","milestones_url":"https://api.github.com/repos/projectcalico/libcalico-go/milestones{/number}","notifications_url":"https://api.github.com/repos/projectcalico/libcalico-go/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectcalico/libcalico-go/labels{/name}","releases_url":"https://api.github.com/repos/projectcalico/libcalico-go/releases{/id}","deployments_url":"https://api.github.com/repos/projectcalico/libcalico-go/deployments","created_at":"2016-07-15T17:09:40Z","updated_at":"2017-01-27T00:40:08Z","pushed_at":"2017-01-30T18:16:41Z","git_url":"git://github.com/projectcalico/libcalico-go.git","ssh_url":"git@github.com:projectcalico/libcalico-go.git","clone_url":"https://github.com/projectcalico/libcalico-go.git","svn_url":"https://github.com/projectcalico/libcalico-go","homepage":null,"size":957,"stargazers_count":21,"watchers_count":21,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":25,"forks":27,"open_issues":25,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projectcalico/libcalico-go/pulls/332"},"html":{"href":"https://github.com/projectcalico/libcalico-go/pull/332"},"issue":{"href":"https://api.github.com/repos/projectcalico/libcalico-go/issues/332"},"comments":{"href":"https://api.github.com/repos/projectcalico/libcalico-go/issues/332/comments"},"review_comments":{"href":"https://api.github.com/repos/projectcalico/libcalico-go/pulls/332/comments"},"review_comment":{"href":"https://api.github.com/repos/projectcalico/libcalico-go/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectcalico/libcalico-go/pulls/332/commits"},"statuses":{"href":"https://api.github.com/repos/projectcalico/libcalico-go/statuses/6b7a8212f11d93834d1320c647ee3c0d36c876d8"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"caseydavenport","id":1944093,"avatar_url":"https://avatars.githubusercontent.com/u/1944093?v=3","gravatar_id":"","url":"https://api.github.com/users/caseydavenport","html_url":"https://github.com/caseydavenport","followers_url":"https://api.github.com/users/caseydavenport/followers","following_url":"https://api.github.com/users/caseydavenport/following{/other_user}","gists_url":"https://api.github.com/users/caseydavenport/gists{/gist_id}","starred_url":"https://api.github.com/users/caseydavenport/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseydavenport/subscriptions","organizations_url":"https://api.github.com/users/caseydavenport/orgs","repos_url":"https://api.github.com/users/caseydavenport/repos","events_url":"https://api.github.com/users/caseydavenport/events{/privacy}","received_events_url":"https://api.github.com/users/caseydavenport/received_events","type":"User","site_admin":false},"comments":1,"review_comments":12,"maintainer_can_modify":false,"commits":1,"additions":308,"deletions":81,"changed_files":6}}
{"actor":{"display_login":"caseydavenport"}}