{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/10551","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/10551/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/10551/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/10551/events","html_url":"https://github.com/openshift/origin/pull/10551","id":172251879,"number":10551,"title":"Implement oc set route-backend and A/B to describers / printers","user":{"login":"smarterclayton","id":1163175,"avatar_url":"https://avatars.githubusercontent.com/u/1163175?v=3","gravatar_id":"","url":"https://api.github.com/users/smarterclayton","html_url":"https://github.com/smarterclayton","followers_url":"https://api.github.com/users/smarterclayton/followers","following_url":"https://api.github.com/users/smarterclayton/following{/other_user}","gists_url":"https://api.github.com/users/smarterclayton/gists{/gist_id}","starred_url":"https://api.github.com/users/smarterclayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarterclayton/subscriptions","organizations_url":"https://api.github.com/users/smarterclayton/orgs","repos_url":"https://api.github.com/users/smarterclayton/repos","events_url":"https://api.github.com/users/smarterclayton/events{/privacy}","received_events_url":"https://api.github.com/users/smarterclayton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/openshift/origin/milestones/14","html_url":"https://github.com/openshift/origin/milestones/1.3.0","labels_url":"https://api.github.com/repos/openshift/origin/milestones/14/labels","id":1664374,"number":14,"title":"1.3.0","description":"","creator":{"login":"jwforres","id":1467629,"avatar_url":"https://avatars.githubusercontent.com/u/1467629?v=3","gravatar_id":"","url":"https://api.github.com/users/jwforres","html_url":"https://github.com/jwforres","followers_url":"https://api.github.com/users/jwforres/followers","following_url":"https://api.github.com/users/jwforres/following{/other_user}","gists_url":"https://api.github.com/users/jwforres/gists{/gist_id}","starred_url":"https://api.github.com/users/jwforres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwforres/subscriptions","organizations_url":"https://api.github.com/users/jwforres/orgs","repos_url":"https://api.github.com/users/jwforres/repos","events_url":"https://api.github.com/users/jwforres/events{/privacy}","received_events_url":"https://api.github.com/users/jwforres/received_events","type":"User","site_admin":false},"open_issues":27,"closed_issues":47,"state":"open","created_at":"2016-03-24T17:23:55Z","updated_at":"2016-08-20T04:45:11Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-08-20T04:00:33Z","updated_at":"2016-08-20T05:37:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openshift/origin/pulls/10551","html_url":"https://github.com/openshift/origin/pull/10551","diff_url":"https://github.com/openshift/origin/pull/10551.diff","patch_url":"https://github.com/openshift/origin/pull/10551.patch"},"body":"    oc set route-backends foo a=10 b=20 c=0\r\n\r\nAdds describer and printer support for router.\r\n\r\n```\r\n$ oc set route-backends --all\r\nNAME         KIND     TO    WEIGHT\r\nroutes/bar   Service  bar   100 (100%)\r\nroutes/bar2  Service  bar2  100 (100%)\r\nroutes/foo   Service  a1    0\r\nroutes/foo   Service  b2    0\r\nroutes/foo   Service  c3    0\r\n\r\n$ oc set route-backends foo a=10 b=30\r\nroute \"foo\" updated\r\n\r\n$ oc set route-backends foo\r\nNAME        KIND     TO  WEIGHT\r\nroutes/foo  Service  a   10 (25%)\r\nroutes/foo  Service  b   30 (75%)\r\n\r\n$ oc describe route foo\r\nName:\t\t\tfoo\r\nNamespace:\t\tdefault\r\nCreated:\t\t4 minutes ago\r\nLabels:\t\t\t<none>\r\nAnnotations:\t\topenshift.io/host.generated=true\r\nRequested Host:\t\tfoo-default.router.default.svc.cluster.local\r\nPath:\t\t\t<none>\r\nTLS Termination:\tedge\r\nInsecure Policy:\t<none>\r\nEndpoint Port:\t\t8080\r\n\r\nService:\ta\r\nWeight:\t\t10 (25%)\r\nEndpoints:\t<error: endpoints \"a\" not found>\r\n\r\nService:\tb\r\nWeight:\t\t30 (75%)\r\nEndpoints:\t<error: endpoints \"b\" not found>\r\n\r\n$ oc get route\r\nNAME      HOST/PORT                                       PATH      SERVICES        PORT      TERMINATION\r\nbar       bar-default.router.default.svc.cluster.local              bar(100%)       9090      edge\r\nbar2      bar2-default.router.default.svc.cluster.local             bar2(100%)      9090      edge\r\nfoo       foo-default.router.default.svc.cluster.local              a(25%),b(75%)   8080      edge\r\n```\r\n\r\nPrimary use cases for set route-backend:\r\n\r\n1. Allow someone to easily set a number of backends at a time: `oc set route-backends foo a=N b=N c=N`\r\n2. Allow someone to script tweaking a particular backend up: `oc set route-backends foo --adjust a=+10%`\r\n3. Allow someone to reset to even: `oc set route-backends foo --equal`\r\n4. Allow someone to zero out the weights: `oc set route-backends foo --zero`"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/241181062","html_url":"https://github.com/openshift/origin/pull/10551#issuecomment-241181062","issue_url":"https://api.github.com/repos/openshift/origin/issues/10551","id":241181062,"user":{"login":"openshift-bot","id":1779249,"avatar_url":"https://avatars.githubusercontent.com/u/1779249?v=3","gravatar_id":"","url":"https://api.github.com/users/openshift-bot","html_url":"https://github.com/openshift-bot","followers_url":"https://api.github.com/users/openshift-bot/followers","following_url":"https://api.github.com/users/openshift-bot/following{/other_user}","gists_url":"https://api.github.com/users/openshift-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift-bot/subscriptions","organizations_url":"https://api.github.com/users/openshift-bot/orgs","repos_url":"https://api.github.com/users/openshift-bot/repos","events_url":"https://api.github.com/users/openshift-bot/events{/privacy}","received_events_url":"https://api.github.com/users/openshift-bot/received_events","type":"User","site_admin":false},"created_at":"2016-08-20T05:37:14Z","updated_at":"2016-08-20T05:37:14Z","body":"Evaluated for origin test up to a6300562ec45ae82841c0bd2f3620f376f6cb1e5"}}
{"actor":{"display_login":"openshift-bot"}}