{"action":"opened","number":126,"pull_request":{"url":"https://api.github.com/repos/ksonnet/kubecfg/pulls/126","id":140406870,"html_url":"https://github.com/ksonnet/kubecfg/pull/126","diff_url":"https://github.com/ksonnet/kubecfg/pull/126.diff","patch_url":"https://github.com/ksonnet/kubecfg/pull/126.patch","issue_url":"https://api.github.com/repos/ksonnet/kubecfg/issues/126","number":126,"state":"open","locked":false,"title":"Add subcommand 'env add'","user":{"login":"jessicayuen","id":3442374,"avatar_url":"https://avatars0.githubusercontent.com/u/3442374?v=4","gravatar_id":"","url":"https://api.github.com/users/jessicayuen","html_url":"https://github.com/jessicayuen","followers_url":"https://api.github.com/users/jessicayuen/followers","following_url":"https://api.github.com/users/jessicayuen/following{/other_user}","gists_url":"https://api.github.com/users/jessicayuen/gists{/gist_id}","starred_url":"https://api.github.com/users/jessicayuen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessicayuen/subscriptions","organizations_url":"https://api.github.com/users/jessicayuen/orgs","repos_url":"https://api.github.com/users/jessicayuen/repos","events_url":"https://api.github.com/users/jessicayuen/events{/privacy}","received_events_url":"https://api.github.com/users/jessicayuen/received_events","type":"User","site_admin":false},"body":"'env add' will create a new environment within a ksonnet project, by\r\ngenerating a new directory, 'env-name', within the 'envs' directory.\r\nEach environment will contain environment-specfic files. Notably, a new\r\nenvironment-specific file is 'spec.json'. 'spec.json' currently only\r\ncontains the 'env-uri' of the Kubernetes cluster located at the added\r\nenvironment.\r\n\r\nBelow is an example directory structure for the environment\r\n'us-west/staging':\r\n\r\n```\r\napp-name/\r\n  .gitignore           Default .gitignore; can customize VCS\r\n  .ksonnet/            Metadata for ksonnet\r\n  envs/                Env specs (defaults: dev, test, prod)\r\n    default/           [Default generated environment.]\r\n    us-west/           [Example of user-generated env]\r\n      staging/\r\n        k8s.libsonnet\r\n        swagger.json\r\n        spec.json      [This will contain the uri and name of the environment]\r\n  components/          Top-level Kubernetes objects defining application\r\n  lib/                 user-written .libsonnet files\r\n  vendor/              mixin libraries, prototypes\r\n```","created_at":"2017-09-11T18:43:17Z","updated_at":"2017-09-11T18:43:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ksonnet/kubecfg/pulls/126/commits","review_comments_url":"https://api.github.com/repos/ksonnet/kubecfg/pulls/126/comments","review_comment_url":"https://api.github.com/repos/ksonnet/kubecfg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ksonnet/kubecfg/issues/126/comments","statuses_url":"https://api.github.com/repos/ksonnet/kubecfg/statuses/f86d6383b5d6432d8570d650ebb5360fb8bd0327","head":{"label":"jessicayuen:env-add","ref":"env-add","sha":"f86d6383b5d6432d8570d650ebb5360fb8bd0327","user":{"login":"jessicayuen","id":3442374,"avatar_url":"https://avatars0.githubusercontent.com/u/3442374?v=4","gravatar_id":"","url":"https://api.github.com/users/jessicayuen","html_url":"https://github.com/jessicayuen","followers_url":"https://api.github.com/users/jessicayuen/followers","following_url":"https://api.github.com/users/jessicayuen/following{/other_user}","gists_url":"https://api.github.com/users/jessicayuen/gists{/gist_id}","starred_url":"https://api.github.com/users/jessicayuen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessicayuen/subscriptions","organizations_url":"https://api.github.com/users/jessicayuen/orgs","repos_url":"https://api.github.com/users/jessicayuen/repos","events_url":"https://api.github.com/users/jessicayuen/events{/privacy}","received_events_url":"https://api.github.com/users/jessicayuen/received_events","type":"User","site_admin":false},"repo":{"id":102029601,"name":"kubecfg","full_name":"jessicayuen/kubecfg","owner":{"login":"jessicayuen","id":3442374,"avatar_url":"https://avatars0.githubusercontent.com/u/3442374?v=4","gravatar_id":"","url":"https://api.github.com/users/jessicayuen","html_url":"https://github.com/jessicayuen","followers_url":"https://api.github.com/users/jessicayuen/followers","following_url":"https://api.github.com/users/jessicayuen/following{/other_user}","gists_url":"https://api.github.com/users/jessicayuen/gists{/gist_id}","starred_url":"https://api.github.com/users/jessicayuen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessicayuen/subscriptions","organizations_url":"https://api.github.com/users/jessicayuen/orgs","repos_url":"https://api.github.com/users/jessicayuen/repos","events_url":"https://api.github.com/users/jessicayuen/events{/privacy}","received_events_url":"https://api.github.com/users/jessicayuen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jessicayuen/kubecfg","description":"A tool for managing complex enterprise Kubernetes environments as code.￼","fork":true,"url":"https://api.github.com/repos/jessicayuen/kubecfg","forks_url":"https://api.github.com/repos/jessicayuen/kubecfg/forks","keys_url":"https://api.github.com/repos/jessicayuen/kubecfg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jessicayuen/kubecfg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jessicayuen/kubecfg/teams","hooks_url":"https://api.github.com/repos/jessicayuen/kubecfg/hooks","issue_events_url":"https://api.github.com/repos/jessicayuen/kubecfg/issues/events{/number}","events_url":"https://api.github.com/repos/jessicayuen/kubecfg/events","assignees_url":"https://api.github.com/repos/jessicayuen/kubecfg/assignees{/user}","branches_url":"https://api.github.com/repos/jessicayuen/kubecfg/branches{/branch}","tags_url":"https://api.github.com/repos/jessicayuen/kubecfg/tags","blobs_url":"https://api.github.com/repos/jessicayuen/kubecfg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jessicayuen/kubecfg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jessicayuen/kubecfg/git/refs{/sha}","trees_url":"https://api.github.com/repos/jessicayuen/kubecfg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jessicayuen/kubecfg/statuses/{sha}","languages_url":"https://api.github.com/repos/jessicayuen/kubecfg/languages","stargazers_url":"https://api.github.com/repos/jessicayuen/kubecfg/stargazers","contributors_url":"https://api.github.com/repos/jessicayuen/kubecfg/contributors","subscribers_url":"https://api.github.com/repos/jessicayuen/kubecfg/subscribers","subscription_url":"https://api.github.com/repos/jessicayuen/kubecfg/subscription","commits_url":"https://api.github.com/repos/jessicayuen/kubecfg/commits{/sha}","git_commits_url":"https://api.github.com/repos/jessicayuen/kubecfg/git/commits{/sha}","comments_url":"https://api.github.com/repos/jessicayuen/kubecfg/comments{/number}","issue_comment_url":"https://api.github.com/repos/jessicayuen/kubecfg/issues/comments{/number}","contents_url":"https://api.github.com/repos/jessicayuen/kubecfg/contents/{+path}","compare_url":"https://api.github.com/repos/jessicayuen/kubecfg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jessicayuen/kubecfg/merges","archive_url":"https://api.github.com/repos/jessicayuen/kubecfg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jessicayuen/kubecfg/downloads","issues_url":"https://api.github.com/repos/jessicayuen/kubecfg/issues{/number}","pulls_url":"https://api.github.com/repos/jessicayuen/kubecfg/pulls{/number}","milestones_url":"https://api.github.com/repos/jessicayuen/kubecfg/milestones{/number}","notifications_url":"https://api.github.com/repos/jessicayuen/kubecfg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jessicayuen/kubecfg/labels{/name}","releases_url":"https://api.github.com/repos/jessicayuen/kubecfg/releases{/id}","deployments_url":"https://api.github.com/repos/jessicayuen/kubecfg/deployments","created_at":"2017-08-31T18:01:07Z","updated_at":"2017-08-31T18:01:09Z","pushed_at":"2017-09-11T18:42:02Z","git_url":"git://github.com/jessicayuen/kubecfg.git","ssh_url":"git@github.com:jessicayuen/kubecfg.git","clone_url":"https://github.com/jessicayuen/kubecfg.git","svn_url":"https://github.com/jessicayuen/kubecfg","homepage":"","size":5004,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"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":"ksonnet:master","ref":"master","sha":"70af2cd37459552c84004f285cd2b60799e31886","user":{"login":"ksonnet","id":28765962,"avatar_url":"https://avatars3.githubusercontent.com/u/28765962?v=4","gravatar_id":"","url":"https://api.github.com/users/ksonnet","html_url":"https://github.com/ksonnet","followers_url":"https://api.github.com/users/ksonnet/followers","following_url":"https://api.github.com/users/ksonnet/following{/other_user}","gists_url":"https://api.github.com/users/ksonnet/gists{/gist_id}","starred_url":"https://api.github.com/users/ksonnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksonnet/subscriptions","organizations_url":"https://api.github.com/users/ksonnet/orgs","repos_url":"https://api.github.com/users/ksonnet/repos","events_url":"https://api.github.com/users/ksonnet/events{/privacy}","received_events_url":"https://api.github.com/users/ksonnet/received_events","type":"Organization","site_admin":false},"repo":{"id":91519321,"name":"kubecfg","full_name":"ksonnet/kubecfg","owner":{"login":"ksonnet","id":28765962,"avatar_url":"https://avatars3.githubusercontent.com/u/28765962?v=4","gravatar_id":"","url":"https://api.github.com/users/ksonnet","html_url":"https://github.com/ksonnet","followers_url":"https://api.github.com/users/ksonnet/followers","following_url":"https://api.github.com/users/ksonnet/following{/other_user}","gists_url":"https://api.github.com/users/ksonnet/gists{/gist_id}","starred_url":"https://api.github.com/users/ksonnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksonnet/subscriptions","organizations_url":"https://api.github.com/users/ksonnet/orgs","repos_url":"https://api.github.com/users/ksonnet/repos","events_url":"https://api.github.com/users/ksonnet/events{/privacy}","received_events_url":"https://api.github.com/users/ksonnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ksonnet/kubecfg","description":"A tool for managing complex enterprise Kubernetes environments as code.￼","fork":false,"url":"https://api.github.com/repos/ksonnet/kubecfg","forks_url":"https://api.github.com/repos/ksonnet/kubecfg/forks","keys_url":"https://api.github.com/repos/ksonnet/kubecfg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ksonnet/kubecfg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ksonnet/kubecfg/teams","hooks_url":"https://api.github.com/repos/ksonnet/kubecfg/hooks","issue_events_url":"https://api.github.com/repos/ksonnet/kubecfg/issues/events{/number}","events_url":"https://api.github.com/repos/ksonnet/kubecfg/events","assignees_url":"https://api.github.com/repos/ksonnet/kubecfg/assignees{/user}","branches_url":"https://api.github.com/repos/ksonnet/kubecfg/branches{/branch}","tags_url":"https://api.github.com/repos/ksonnet/kubecfg/tags","blobs_url":"https://api.github.com/repos/ksonnet/kubecfg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ksonnet/kubecfg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ksonnet/kubecfg/git/refs{/sha}","trees_url":"https://api.github.com/repos/ksonnet/kubecfg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ksonnet/kubecfg/statuses/{sha}","languages_url":"https://api.github.com/repos/ksonnet/kubecfg/languages","stargazers_url":"https://api.github.com/repos/ksonnet/kubecfg/stargazers","contributors_url":"https://api.github.com/repos/ksonnet/kubecfg/contributors","subscribers_url":"https://api.github.com/repos/ksonnet/kubecfg/subscribers","subscription_url":"https://api.github.com/repos/ksonnet/kubecfg/subscription","commits_url":"https://api.github.com/repos/ksonnet/kubecfg/commits{/sha}","git_commits_url":"https://api.github.com/repos/ksonnet/kubecfg/git/commits{/sha}","comments_url":"https://api.github.com/repos/ksonnet/kubecfg/comments{/number}","issue_comment_url":"https://api.github.com/repos/ksonnet/kubecfg/issues/comments{/number}","contents_url":"https://api.github.com/repos/ksonnet/kubecfg/contents/{+path}","compare_url":"https://api.github.com/repos/ksonnet/kubecfg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ksonnet/kubecfg/merges","archive_url":"https://api.github.com/repos/ksonnet/kubecfg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ksonnet/kubecfg/downloads","issues_url":"https://api.github.com/repos/ksonnet/kubecfg/issues{/number}","pulls_url":"https://api.github.com/repos/ksonnet/kubecfg/pulls{/number}","milestones_url":"https://api.github.com/repos/ksonnet/kubecfg/milestones{/number}","notifications_url":"https://api.github.com/repos/ksonnet/kubecfg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ksonnet/kubecfg/labels{/name}","releases_url":"https://api.github.com/repos/ksonnet/kubecfg/releases{/id}","deployments_url":"https://api.github.com/repos/ksonnet/kubecfg/deployments","created_at":"2017-05-17T01:13:48Z","updated_at":"2017-09-07T11:43:08Z","pushed_at":"2017-09-11T18:05:41Z","git_url":"git://github.com/ksonnet/kubecfg.git","ssh_url":"git@github.com:ksonnet/kubecfg.git","clone_url":"https://github.com/ksonnet/kubecfg.git","svn_url":"https://github.com/ksonnet/kubecfg","homepage":"","size":5000,"stargazers_count":128,"watchers_count":128,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":33,"forks":12,"open_issues":33,"watchers":128,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ksonnet/kubecfg/pulls/126"},"html":{"href":"https://github.com/ksonnet/kubecfg/pull/126"},"issue":{"href":"https://api.github.com/repos/ksonnet/kubecfg/issues/126"},"comments":{"href":"https://api.github.com/repos/ksonnet/kubecfg/issues/126/comments"},"review_comments":{"href":"https://api.github.com/repos/ksonnet/kubecfg/pulls/126/comments"},"review_comment":{"href":"https://api.github.com/repos/ksonnet/kubecfg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ksonnet/kubecfg/pulls/126/commits"},"statuses":{"href":"https://api.github.com/repos/ksonnet/kubecfg/statuses/f86d6383b5d6432d8570d650ebb5360fb8bd0327"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":197,"deletions":28,"changed_files":4}}
{"actor":{"display_login":"jessicayuen"}}