{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/1918","labels_url":"https://api.github.com/repos/openshift/origin/issues/1918/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/1918/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/1918/events","html_url":"https://github.com/openshift/origin/pull/1918","id":70815412,"number":1918,"title":"Added support for project node selector","user":{"login":"pravisankar","id":1258630,"avatar_url":"https://avatars.githubusercontent.com/u/1258630?v=3","gravatar_id":"","url":"https://api.github.com/users/pravisankar","html_url":"https://github.com/pravisankar","followers_url":"https://api.github.com/users/pravisankar/followers","following_url":"https://api.github.com/users/pravisankar/following{/other_user}","gists_url":"https://api.github.com/users/pravisankar/gists{/gist_id}","starred_url":"https://api.github.com/users/pravisankar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pravisankar/subscriptions","organizations_url":"https://api.github.com/users/pravisankar/orgs","repos_url":"https://api.github.com/users/pravisankar/repos","events_url":"https://api.github.com/users/pravisankar/events{/privacy}","received_events_url":"https://api.github.com/users/pravisankar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":48,"created_at":"2015-04-24T23:00:13Z","updated_at":"2015-05-07T22:26:55Z","closed_at":"2015-05-05T06:33:33Z","pull_request":{"url":"https://api.github.com/repos/openshift/origin/pulls/1918","html_url":"https://github.com/openshift/origin/pull/1918","diff_url":"https://github.com/openshift/origin/pull/1918.diff","patch_url":"https://github.com/openshift/origin/pull/1918.patch"},"body":"Project node selector will constrain all pods within a project\r\nto a pool of nodes that satisfies given label selector.\r\n\r\n - Cluster admin can optionally specify global default project node selector.\r\n   Either pass '--project-node-selector=[selector]' flag as command line argument \r\n   to openshift start or pass 'projectNodeSelector: [selector]' entry in the master config.\r\n\r\n - User can optionally specify node selector for the project.\r\n\r\n   REST API: Pass node selector as annotation to the project.\r\n   Example:\r\n\t{\r\n\t  kind: 'Project',\r\n          Annotations: map[string]string{\r\n            'nodeSelector': [node_label_selector]\r\n          }\r\n          ...\r\n\t}\r\n\r\n   CLI: osadm new-project <name> --node-selector=[node_label_selector]\r\n - Any project with no node selector will use global node selector if present."},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/100037834","html_url":"https://github.com/openshift/origin/pull/1918#issuecomment-100037834","issue_url":"https://api.github.com/repos/openshift/origin/issues/1918","id":100037834,"user":{"login":"pravisankar","id":1258630,"avatar_url":"https://avatars.githubusercontent.com/u/1258630?v=3","gravatar_id":"","url":"https://api.github.com/users/pravisankar","html_url":"https://github.com/pravisankar","followers_url":"https://api.github.com/users/pravisankar/followers","following_url":"https://api.github.com/users/pravisankar/following{/other_user}","gists_url":"https://api.github.com/users/pravisankar/gists{/gist_id}","starred_url":"https://api.github.com/users/pravisankar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pravisankar/subscriptions","organizations_url":"https://api.github.com/users/pravisankar/orgs","repos_url":"https://api.github.com/users/pravisankar/repos","events_url":"https://api.github.com/users/pravisankar/events{/privacy}","received_events_url":"https://api.github.com/users/pravisankar/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T22:26:55Z","updated_at":"2015-05-07T22:26:55Z","body":"Okay, I'm converting project node selector to label selector(map[string]string)\r\nTo pass these labels as cli args for osadm new-project, we think (discussed with @abhgupta) json format is simple to parse. \r\nSomething like --node-selector=\"{ 'k1': 'v1', 'k2': 'v2' ...}\" instead of \"k1=v1, k2=v2...\"\r\n@smarterclayton  are you okay with this format?"}}