{"action":"created","comment":{"url":"https://api.github.com/repos/openshift/origin/pulls/comments/26959286","id":26959286,"diff_hunk":"@@ -0,0 +1,353 @@\n+# Deployment Hooks\n+\n+## Abstract\n+\n+A proposal for a deployment code execution API integrated with the deployment lifecycle.\n+\n+\n+## Motivation\n+\n+Deployment hooks are needed to provide users with a way to execute arbitrary commands necessary to complete a deployment.\n+\n+Goals of this design:\n+\n+1. Identify deployment hook use cases\n+2. Define the integration of deployment hooks and the deployment lifecycle\n+3. Describe a deployment hook API\n+\n+\n+## Comparison of potential approaches\n+\n+There are two fundamental approaches to solving each deployment hook use case: existing upstream support for *container lifecycle hooks*, and the externalized *deployment hooks* outlined in this proposal. The following describes the two approaches, and each use case is evaluated in terms of these approaches.\n+\n+##### Upstream container lifecycle hooks\n+\n+Kubernetes provides *container lifecycle hooks* for containers within a Pod. Currently, post-start and pre-stop hooks are supported. For deployments, post-start is the most relevant. Because these hooks are implemented by the Kubelet, the post-start hook provides some unique guarantees:\n+\n+1. The hook is executed synchronously during the pod lifecycle.\n+2. The status of the pod is linked to the status and outcome of the hook execution.\n+  1. The pod will not enter a ready status until the hook has completed successfully.\n+    1. Service endpoints will not be created for the pod until the pod has a ready status.\n+  1. If the hook fails, the pod's creation is considered a failure, and the retry behavior is restart-policy driven in the usual way.\n+\n+Because deployments are represented as replication controllers, lifecycle hooks defined for containers are executed for every container in the replica set for the deployment. This behavior has complexity implications when applied to deployment use cases:\n+\n+1. The hooks for all pods in the deployment will race, placing a burden on hook authors (e.g., the hooks would generally need to be tolerant of concurrent hook execution and implement manual coordination.)\n+\n+\n+##### Deployment hooks\n+\n+An alternative to the upstream-provided lifecycle hooks is to have a notion of a hook which is a property of an OpenShift deployment. OpenShift deployment hooks can provide a different set of guarantees:\n+\n+1. Hooks can be bound to the logical deployment lifecycle, enabling hook executions decoupled from replication mechanics.\n+  1. Races can be avoided by defining a hook that executes at least once per deployment regardless of the replica count.\n+2. Hooks defined in terms of deployments are conceptually easier to reason about from the perspective of a user defining a deployment workflow.\n+\n+Hooks can be defined to execute before or after the deployment strategy scales up the deployment. When implementing a hook which runs after a deployment has been scaled up, there are special considerations to make:\n+\n+1. Nothing prevents external connectivity races: when the deployment's pods are ready, they become routable to services and other pods within an application the moment their containers enter a ready state, likely before or during or before hook execution.\n+2. Hook execution can't be atomically linked to the deployment pods' statuses: If a hook failure should result in deployment failure, a previously scaled and exposed application must be rolled back when ideally the application shouldn't have been exposed prior to hook success.\n+\n+\n+## Use cases\n+\n+1. As a Rails application developer, I want to perform a Rails database migration following an application deployment.\n+2. As an application developer, I want to invoke a cloud API endpoint to notify it of the presence of new code.\n+\n+\n+#### Use-case: Rails migrations\n+\n+New revisions of a Rails application often contain schema or other database updates which must accompany the new code deployment. Users should be able to specify a hook which performs a Rails migration as part of the application code deployment.\n+\n+Database migrations are complex and introduce downtime concerns. Here are [some examples](https://blog.rainforestqa.com/2014-06-27-zero-downtime-database-migrations) of zero-downtime Rails migration workflows.\n+\n+Deployments including database migrations must make special considerations:\n+\n+1.  Code must be newer than the schema in use, or all old code must be stopped before the new schema is introduced.\n+2.  Database or table locking must be minimized or eliminated to prevent service outages.\n+\n+The workflows which are effective at ensuring zero downtime migrations are typically multi-phased. For a user orchestrating a zero downtime migration deployment, it's likely the user needs to verify each deployment step discretely, with the option to abort and rollback after each phase.\n+\n+Consider this simple example of a phased deployment which adds a new column:\n+\n+1. Deploy a new migration which adds the new column.\n+  1. The user can verify that the new column didn't break the application.\n+2. Deploy a new version of the code which makes use of the new column.\n+  1. The user can verify the new code interacts correctly with the new column.\n+\n+###### Container lifecycle hooks\n+\n+Container lifecycle hooks introduce problems with Rails migrations:\n+\n+1. There is no way to guarantee that pods with older code are not running.\n+2. The migration hook will execute in the same pod as application containers, consuming resources allocated for the application.\n+  1. This can cause instability, as it's unlikely the application pod resource allocation takes into account the temporarily increased requirements of a transient deployment step.\n+\n+###### Deployment hooks\n+\n+Deployment hooks satisfy this use case by providing a means to execute the hook only once per logical deployment. The hook is expressed as a run-once pod which provides the migration with its own resource allocation decoupled from the application.\n+\n+\n+#### Use-case: Invoke a cloud API endpoint\n+\n+Consider an application whose deployment should result in a cloud API call being invoked to notify it of the newly deployed code.\n+\n+###### Container lifecycle hooks\n+\n+Container lifecycle hooks aren't ideal for this use case because they will be fired once per pod in the deployment during scale-up rather than following the logical deployment as a whole. Consider an example deployment flow using container lifecycle hooks:\n+\n+1. Deployment is created.\n+2. Deployment is scaled up to 10 by the deployment strategy.\n+3. The cloud API is invoked 10 times.\n+4. Deployment is considered complete concurrently with the cloud API calls.\n+5. Deployment is scaled up to 15 to handle increased application traffic.\n+6. The cloud API is invoked 5 times, outside the deployment workflow.\n+\n+###### Deployment hooks\n+\n+A post-deployment hook would satisfy the use case by ensuring the API call is invoked after the deployment has been rolled out. For example, the flow of this deployment would be:\n+\n+1. Deployment is created.\n+2. Deployment is scaled up to 10 by the deployment strategy.\n+3. Deployment hook fires, invoking the cloud API.\n+4. Deployment is considered complete.\n+5. Deployment is scaled up to 15 to handle increased application traffic.\n+6. No further calls to cloud API are made until next deployment.\n+\n+\n+## Proposed design\n+\n+Deployment hooks are implemented as run-once pods which can be executed at one or both of the following points during the deployment lifecycle:\n+\n+1. Before the execution of the deployment strategy, which ensures that the hook is run and its outcome evaluated prior to the scale-up of the deployment. These hooks are referred to as *pre-deployment* hooks.\n+2. After the execution of the deployment strategy. These hooks are referred to as *post-deployment* hooks.\n+\n+##### Hook failure handling\n+\n+Hooks designated as *mandatory* should impact the outcome of the deployment.\n+\n+There are a few possible ways to handle a failed mandatory pre-deployment hook:\n+\n+1. Transition the deployment to a failed status and do not execute the strategy.\n+2. Delete and retry the deployment.\n+  1. Potentially safe because the strategy has not yet executed and the existing prior deployment is still active.\n+    1. Could be unsafe depending on what the hook did prior to failing.\n+  2. Further API considerations need made to prevent endless deployment attempts.\n+3. Rollback the deployment to a previous version.\n+  1. This is very dangerous to do automatically and is probably not realistic at this time:\n+    1. Requires automated rollback viability analysis/trust.\n+    2. Requires logic to prevent a chronically failing hook that spans historical deployments from causing unending rollbacks.\n+\n+This proposal prescribes the use of option 1 as being the simplest starting point for the hook API.\n+\n+Failed mandatory post-deployment hooks are more challenging:\n+\n+1. The deployment has most likely already been rolled out and made live by the strategy.\n+2. Deleting the deployment is no longer safe due to 1.\n+3. Rollback is necessary and subject to the same challenges presented above.\n+\n+Due to the complexities of automated rollback, this proposal limits the scope of failure handling for post-deployment hooks: post-deployment hooks cannot be considered mandatory at this time. This limitation may be lifted in the future by an separate proposal.\n+\n+##### Hook failure reporting\n+\n+When a deployment hook fails:\n+\n+1. An error is logged via the global error handler.\n+2. The hook status is available as an annotation on the deployment.\n+\n+More reporting capabilities could be addressed in a future proposal.\n+\n+\n+### Deployment hooks API\n+\n+The `DeploymentStrategy` gains a new `Lifecycle` field:\n+\n+```go\n+type DeploymentStrategy struct {\n+  // Type is the name of a deployment strategy.\n+  Type DeploymentStrategyType `json:\"type,omitempty\"`\n+  // CustomParams are the input to the Custom deployment strategy.\n+  CustomParams *CustomDeploymentStrategyParams `json:\"customParams,omitempty\"`\n+  // Lifecycle provides optional hooks into the deployment process.\n+  Lifecycle *Lifecycle `json:\"lifecycle,omitempty\"`\n+}\n+```\n+\n+```go\n+// Lifecycle describes actions the system should take in response to\n+// deployment lifecycle events. The deployment process blocks while\n+// executing lifecycle handlers. A HandleFailurePolicy determines what\n+// action is taken in response to a failed handler.\n+type Lifecycle struct {\n+  // Pre is called immediately before the deployment strategy executes.\n+  Pre *Handler `json:\"pre,omitempty\"`\n+  // Post is called immediately after the deployment strategy executes.\n+  // NOTE: AbortHandlerFailurePolicy is not supported for Post.\n+  Post *Handler `json:\"post,omitempty\"`\n+}\n+```\n+\n+Each lifecycle hook is implemented with a `Handler`:\n+\n+```go\n+// Handler defines a specific deployment lifecycle action.\n+type Handler struct {\n+  // ExecNewPod specifies the action to take.\n+  ExecNewPod *ExecNewPodAction `json:\"execNewPod,omitempty\"`\n+  // FailurePolicy specifies what action to take if the handler fails.\n+  FailurePolicy HandlerFailurePolicy `json:\"failurePolicy\"`\n+}\n+```\n+\n+The first handler implementation is pod-based:\n+\n+```go\n+// ExecNewPodAction runs a command in a new pod based on the specified\n+// container which is assumed to be part of the deployment template.\n+type ExecNewPodAction struct {\n+  // Command is the action command and its arguments.\n+  Command []string `json:\"command\"`\n+  // Env is a set of environment variables to supply to the action's container.\n+  Env []EnvVar `json:\"env,omitempty\"`\n+  // ContainerName is the name of a container in the deployment pod\n+  // template whose Docker image will be used for the action's container.\n+  ContainerName string `json:\"containerName\"`\n+}\n+```\n+\n+Handler failure management is policy driven:\n+\n+```go\n+// HandlerFailurePolicy describes the action to take if a handler fails.\n+type HandlerFailurePolicy string\n+\n+const(\n+  // RetryHandlerFailurePolicy means retry the handler until it succeeds.\n+  RetryHandlerFailurePolicy HandlerFailurePolicy = \"Retry\"\n+  // AbortHandlerFailurePolicy means abort the deployment (if possible).\n+  AbortHandlerFailurePolicy HandlerFailurePolicy = \"Abort\"\n+  // ContinueHandlerFailurePolicy means continue the deployment.\n+  ContinueHandlerFailurePolicy HandlerFailurePolicy = \"Continue\"\n+)\n+```\n+\n+`ExecNewPodAction` pods will be associated with deployments using new annotations:\n+\n+```go\n+const (\n+  // PreExecNewPodActionPodAnnotation is the name of a pre-deployment\n+  // ExecNewPodAction pod.\n+  PreExecNewPodActionPodAnnotation = \"openshift.io/deployment.lifecycle.pre.execnewpod.pod\"\n+  // PreExecNewPodActionPodPhaseAnnotation is the phase of a pre-deployment\n+  // ExecNewPodAction pod and is used to track its status and outcome.\n+  PreExecNewPodActionPodPhaseAnnotation = \"openshift.io/deployment.lifecycle.pre.execnewpod.phase\"\n+  // PostExecNewPodActionPodAnnotation is the name of a post-deployment\n+  // ExecNewPodAction pod.\n+  PostExecNewPodActionPodAnnotation = \"openshift.io/deployment.lifecycle.post.execnewpod.pod\"\n+  // PostDeploymentHookPodPhaseAnnotation is the phase of a post-deployment\n+  // ExecNewPodAction pod and is used to track its status and outcome.\n+  PostExecNewPodActionPodPhaseAnnotation = \"openshift.io/deployment.lifecycle.post.execnewpod.phase\"\n+)\n+```\n+\n+\n+### Example: Rails migration\n+\n+Here's an example deployment which demonstrates how to apply deployment hooks to a Rails application which uses migrations.\n+\n+The application image `example/rails` is built with a `Dockerfile` based on the `rails` image from Docker Hub:\n+\n+```dockerfile\n+FROM rails:onbuild\n+```\n+\n+A database is exposed to the application using a service:\n+\n+```json\n+{\n+  \"kind\": \"Service\",\n+  \"apiVersion\": \"v1beta1\",\n+  \"id\": \"mysql\",\n+  \"containerPort\": 3306,\n+  \"port\": 5434,\n+  \"selector\": {\n+    \"name\": \"mysql\"\n+  }\n+},\n+```\n+\n+A deployment configuration describes the template for application deployments:\n+\n+```json\n+{\n+  \"kind\": \"DeploymentConfig\",\n+  \"apiVersion\": \"v1beta1\",\n+  \"metadata\": {\n+    \"name\": \"rails\",\n+    \"description\": \"A sample Rails application.\"\n+  },\n+  \"triggers\": [\n+    {\n+      \"type\": \"ConfigChange\"\n+    }\n+  ],\n+  \"template\": {\n+    \"strategy\": {\n+      \"type\": \"Recreate\",\n+      \"lifecycle\": {\n+        \"pre\": {\n+          \"execNewPod\": {\n+          \"container\": \"rails\",\n+            \"command\": [\"rake\", \"db:migrate\"],\n+            \"env\": [\n+              {\n+                \"key\": \"CUSTOM_VAR\",","path":"docs/proposals/post-deployment-hooks.md","position":null,"original_position":304,"commit_id":"77b52efbbe15af01f7d285460ba8a43262c5ea9c","original_commit_id":"5320be519e5584630b6d45a769403437debd94c4","user":{"login":"ironcladlou","id":298299,"avatar_url":"https://avatars.githubusercontent.com/u/298299?v=3","gravatar_id":"","url":"https://api.github.com/users/ironcladlou","html_url":"https://github.com/ironcladlou","followers_url":"https://api.github.com/users/ironcladlou/followers","following_url":"https://api.github.com/users/ironcladlou/following{/other_user}","gists_url":"https://api.github.com/users/ironcladlou/gists{/gist_id}","starred_url":"https://api.github.com/users/ironcladlou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ironcladlou/subscriptions","organizations_url":"https://api.github.com/users/ironcladlou/orgs","repos_url":"https://api.github.com/users/ironcladlou/repos","events_url":"https://api.github.com/users/ironcladlou/events{/privacy}","received_events_url":"https://api.github.com/users/ironcladlou/received_events","type":"User","site_admin":false},"body":"Oops, fixed.","created_at":"2015-03-23T17:35:07Z","updated_at":"2015-03-23T17:35:07Z","html_url":"https://github.com/openshift/origin/pull/1224#discussion_r26959286","pull_request_url":"https://api.github.com/repos/openshift/origin/pulls/1224","_links":{"self":{"href":"https://api.github.com/repos/openshift/origin/pulls/comments/26959286"},"html":{"href":"https://github.com/openshift/origin/pull/1224#discussion_r26959286"},"pull_request":{"href":"https://api.github.com/repos/openshift/origin/pulls/1224"}}},"pull_request":{"url":"https://api.github.com/repos/openshift/origin/pulls/1224","id":30508641,"html_url":"https://github.com/openshift/origin/pull/1224","diff_url":"https://github.com/openshift/origin/pull/1224.diff","patch_url":"https://github.com/openshift/origin/pull/1224.patch","issue_url":"https://api.github.com/repos/openshift/origin/issues/1224","number":1224,"state":"open","locked":false,"title":"WIP: Deployment hooks proposal","user":{"login":"ironcladlou","id":298299,"avatar_url":"https://avatars.githubusercontent.com/u/298299?v=3","gravatar_id":"","url":"https://api.github.com/users/ironcladlou","html_url":"https://github.com/ironcladlou","followers_url":"https://api.github.com/users/ironcladlou/followers","following_url":"https://api.github.com/users/ironcladlou/following{/other_user}","gists_url":"https://api.github.com/users/ironcladlou/gists{/gist_id}","starred_url":"https://api.github.com/users/ironcladlou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ironcladlou/subscriptions","organizations_url":"https://api.github.com/users/ironcladlou/orgs","repos_url":"https://api.github.com/users/ironcladlou/repos","events_url":"https://api.github.com/users/ironcladlou/events{/privacy}","received_events_url":"https://api.github.com/users/ironcladlou/received_events","type":"User","site_admin":false},"body":"This PR is a WIP to discuss the design of a deployment hook mechanism for https://trello.com/c/Zea4kjvo.","created_at":"2015-03-04T21:57:15Z","updated_at":"2015-03-23T17:35:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e13630c7447ee8065d0b150685b72026088c3ba","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openshift/origin/pulls/1224/commits","review_comments_url":"https://api.github.com/repos/openshift/origin/pulls/1224/comments","review_comment_url":"https://api.github.com/repos/openshift/origin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openshift/origin/issues/1224/comments","statuses_url":"https://api.github.com/repos/openshift/origin/statuses/77b52efbbe15af01f7d285460ba8a43262c5ea9c","head":{"label":"ironcladlou:post-deployment-hook-proposal","ref":"post-deployment-hook-proposal","sha":"77b52efbbe15af01f7d285460ba8a43262c5ea9c","user":{"login":"ironcladlou","id":298299,"avatar_url":"https://avatars.githubusercontent.com/u/298299?v=3","gravatar_id":"","url":"https://api.github.com/users/ironcladlou","html_url":"https://github.com/ironcladlou","followers_url":"https://api.github.com/users/ironcladlou/followers","following_url":"https://api.github.com/users/ironcladlou/following{/other_user}","gists_url":"https://api.github.com/users/ironcladlou/gists{/gist_id}","starred_url":"https://api.github.com/users/ironcladlou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ironcladlou/subscriptions","organizations_url":"https://api.github.com/users/ironcladlou/orgs","repos_url":"https://api.github.com/users/ironcladlou/repos","events_url":"https://api.github.com/users/ironcladlou/events{/privacy}","received_events_url":"https://api.github.com/users/ironcladlou/received_events","type":"User","site_admin":false},"repo":{"id":23721352,"name":"origin","full_name":"ironcladlou/origin","owner":{"login":"ironcladlou","id":298299,"avatar_url":"https://avatars.githubusercontent.com/u/298299?v=3","gravatar_id":"","url":"https://api.github.com/users/ironcladlou","html_url":"https://github.com/ironcladlou","followers_url":"https://api.github.com/users/ironcladlou/followers","following_url":"https://api.github.com/users/ironcladlou/following{/other_user}","gists_url":"https://api.github.com/users/ironcladlou/gists{/gist_id}","starred_url":"https://api.github.com/users/ironcladlou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ironcladlou/subscriptions","organizations_url":"https://api.github.com/users/ironcladlou/orgs","repos_url":"https://api.github.com/users/ironcladlou/repos","events_url":"https://api.github.com/users/ironcladlou/events{/privacy}","received_events_url":"https://api.github.com/users/ironcladlou/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ironcladlou/origin","description":"OpenShift 3 - build, deploy, and manage your applications with Docker and Kubernetes","fork":true,"url":"https://api.github.com/repos/ironcladlou/origin","forks_url":"https://api.github.com/repos/ironcladlou/origin/forks","keys_url":"https://api.github.com/repos/ironcladlou/origin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ironcladlou/origin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ironcladlou/origin/teams","hooks_url":"https://api.github.com/repos/ironcladlou/origin/hooks","issue_events_url":"https://api.github.com/repos/ironcladlou/origin/issues/events{/number}","events_url":"https://api.github.com/repos/ironcladlou/origin/events","assignees_url":"https://api.github.com/repos/ironcladlou/origin/assignees{/user}","branches_url":"https://api.github.com/repos/ironcladlou/origin/branches{/branch}","tags_url":"https://api.github.com/repos/ironcladlou/origin/tags","blobs_url":"https://api.github.com/repos/ironcladlou/origin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ironcladlou/origin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ironcladlou/origin/git/refs{/sha}","trees_url":"https://api.github.com/repos/ironcladlou/origin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ironcladlou/origin/statuses/{sha}","languages_url":"https://api.github.com/repos/ironcladlou/origin/languages","stargazers_url":"https://api.github.com/repos/ironcladlou/origin/stargazers","contributors_url":"https://api.github.com/repos/ironcladlou/origin/contributors","subscribers_url":"https://api.github.com/repos/ironcladlou/origin/subscribers","subscription_url":"https://api.github.com/repos/ironcladlou/origin/subscription","commits_url":"https://api.github.com/repos/ironcladlou/origin/commits{/sha}","git_commits_url":"https://api.github.com/repos/ironcladlou/origin/git/commits{/sha}","comments_url":"https://api.github.com/repos/ironcladlou/origin/comments{/number}","issue_comment_url":"https://api.github.com/repos/ironcladlou/origin/issues/comments{/number}","contents_url":"https://api.github.com/repos/ironcladlou/origin/contents/{+path}","compare_url":"https://api.github.com/repos/ironcladlou/origin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ironcladlou/origin/merges","archive_url":"https://api.github.com/repos/ironcladlou/origin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ironcladlou/origin/downloads","issues_url":"https://api.github.com/repos/ironcladlou/origin/issues{/number}","pulls_url":"https://api.github.com/repos/ironcladlou/origin/pulls{/number}","milestones_url":"https://api.github.com/repos/ironcladlou/origin/milestones{/number}","notifications_url":"https://api.github.com/repos/ironcladlou/origin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ironcladlou/origin/labels{/name}","releases_url":"https://api.github.com/repos/ironcladlou/origin/releases{/id}","created_at":"2014-09-05T23:22:09Z","updated_at":"2015-02-03T21:50:32Z","pushed_at":"2015-03-23T17:34:48Z","git_url":"git://github.com/ironcladlou/origin.git","ssh_url":"git@github.com:ironcladlou/origin.git","clone_url":"https://github.com/ironcladlou/origin.git","svn_url":"https://github.com/ironcladlou/origin","homepage":"https://openshift.github.io","size":58639,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"openshift:master","ref":"master","sha":"020dd179649314e50f93c0ae973ace65288bd516","user":{"login":"openshift","id":792337,"avatar_url":"https://avatars.githubusercontent.com/u/792337?v=3","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"repo":{"id":22442668,"name":"origin","full_name":"openshift/origin","owner":{"login":"openshift","id":792337,"avatar_url":"https://avatars.githubusercontent.com/u/792337?v=3","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openshift/origin","description":"OpenShift 3 - build, deploy, and manage your applications with Docker and Kubernetes","fork":false,"url":"https://api.github.com/repos/openshift/origin","forks_url":"https://api.github.com/repos/openshift/origin/forks","keys_url":"https://api.github.com/repos/openshift/origin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openshift/origin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openshift/origin/teams","hooks_url":"https://api.github.com/repos/openshift/origin/hooks","issue_events_url":"https://api.github.com/repos/openshift/origin/issues/events{/number}","events_url":"https://api.github.com/repos/openshift/origin/events","assignees_url":"https://api.github.com/repos/openshift/origin/assignees{/user}","branches_url":"https://api.github.com/repos/openshift/origin/branches{/branch}","tags_url":"https://api.github.com/repos/openshift/origin/tags","blobs_url":"https://api.github.com/repos/openshift/origin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openshift/origin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openshift/origin/git/refs{/sha}","trees_url":"https://api.github.com/repos/openshift/origin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openshift/origin/statuses/{sha}","languages_url":"https://api.github.com/repos/openshift/origin/languages","stargazers_url":"https://api.github.com/repos/openshift/origin/stargazers","contributors_url":"https://api.github.com/repos/openshift/origin/contributors","subscribers_url":"https://api.github.com/repos/openshift/origin/subscribers","subscription_url":"https://api.github.com/repos/openshift/origin/subscription","commits_url":"https://api.github.com/repos/openshift/origin/commits{/sha}","git_commits_url":"https://api.github.com/repos/openshift/origin/git/commits{/sha}","comments_url":"https://api.github.com/repos/openshift/origin/comments{/number}","issue_comment_url":"https://api.github.com/repos/openshift/origin/issues/comments{/number}","contents_url":"https://api.github.com/repos/openshift/origin/contents/{+path}","compare_url":"https://api.github.com/repos/openshift/origin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openshift/origin/merges","archive_url":"https://api.github.com/repos/openshift/origin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openshift/origin/downloads","issues_url":"https://api.github.com/repos/openshift/origin/issues{/number}","pulls_url":"https://api.github.com/repos/openshift/origin/pulls{/number}","milestones_url":"https://api.github.com/repos/openshift/origin/milestones{/number}","notifications_url":"https://api.github.com/repos/openshift/origin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openshift/origin/labels{/name}","releases_url":"https://api.github.com/repos/openshift/origin/releases{/id}","created_at":"2014-07-30T20:04:05Z","updated_at":"2015-03-23T17:05:06Z","pushed_at":"2015-03-23T17:34:50Z","git_url":"git://github.com/openshift/origin.git","ssh_url":"git@github.com:openshift/origin.git","clone_url":"https://github.com/openshift/origin.git","svn_url":"https://github.com/openshift/origin","homepage":"http://www.openshift.org","size":80582,"stargazers_count":321,"watchers_count":321,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":172,"mirror_url":null,"open_issues_count":132,"forks":172,"open_issues":132,"watchers":321,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openshift/origin/pulls/1224"},"html":{"href":"https://github.com/openshift/origin/pull/1224"},"issue":{"href":"https://api.github.com/repos/openshift/origin/issues/1224"},"comments":{"href":"https://api.github.com/repos/openshift/origin/issues/1224/comments"},"review_comments":{"href":"https://api.github.com/repos/openshift/origin/pulls/1224/comments"},"review_comment":{"href":"https://api.github.com/repos/openshift/origin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openshift/origin/pulls/1224/commits"},"statuses":{"href":"https://api.github.com/repos/openshift/origin/statuses/77b52efbbe15af01f7d285460ba8a43262c5ea9c"}}}}