{"action":"opened","number":478,"pull_request":{"url":"https://api.github.com/repos/docker/swarm/pulls/478","id":31363478,"html_url":"https://github.com/docker/swarm/pull/478","diff_url":"https://github.com/docker/swarm/pull/478.diff","patch_url":"https://github.com/docker/swarm/pull/478.patch","issue_url":"https://api.github.com/repos/docker/swarm/issues/478","number":478,"state":"open","locked":false,"title":"Add support for Soft Affinity","user":{"login":"smothiki","id":7416231,"avatar_url":"https://avatars.githubusercontent.com/u/7416231?v=3","gravatar_id":"","url":"https://api.github.com/users/smothiki","html_url":"https://github.com/smothiki","followers_url":"https://api.github.com/users/smothiki/followers","following_url":"https://api.github.com/users/smothiki/following{/other_user}","gists_url":"https://api.github.com/users/smothiki/gists{/gist_id}","starred_url":"https://api.github.com/users/smothiki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smothiki/subscriptions","organizations_url":"https://api.github.com/users/smothiki/orgs","repos_url":"https://api.github.com/users/smothiki/repos","events_url":"https://api.github.com/users/smothiki/events{/privacy}","received_events_url":"https://api.github.com/users/smothiki/received_events","type":"User","site_admin":false},"body":"Adds support for soft affinities as discussed in the [issue 447](https://github.com/docker/swarm/issues/447) \r\nsoft affinites are expressed with a **~** in the expression\r\n```\r\n$ docker run -d --name redis1 -e affinity:image==~redis redis\r\n```\r\nIf none of the nodes in the cluster has image redis, the scheduler will discard the affinity and schedules according to the strategy.\r\nProvided Test cases to validate soft affinity expressions ","created_at":"2015-03-17T18:24:12Z","updated_at":"2015-03-17T18:24:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker/swarm/pulls/478/commits","review_comments_url":"https://api.github.com/repos/docker/swarm/pulls/478/comments","review_comment_url":"https://api.github.com/repos/docker/swarm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/swarm/issues/478/comments","statuses_url":"https://api.github.com/repos/docker/swarm/statuses/1c677784a7b89bc351be9d29c0ece51f636363c6","head":{"label":"smothiki:softaffinity","ref":"softaffinity","sha":"1c677784a7b89bc351be9d29c0ece51f636363c6","user":{"login":"smothiki","id":7416231,"avatar_url":"https://avatars.githubusercontent.com/u/7416231?v=3","gravatar_id":"","url":"https://api.github.com/users/smothiki","html_url":"https://github.com/smothiki","followers_url":"https://api.github.com/users/smothiki/followers","following_url":"https://api.github.com/users/smothiki/following{/other_user}","gists_url":"https://api.github.com/users/smothiki/gists{/gist_id}","starred_url":"https://api.github.com/users/smothiki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smothiki/subscriptions","organizations_url":"https://api.github.com/users/smothiki/orgs","repos_url":"https://api.github.com/users/smothiki/repos","events_url":"https://api.github.com/users/smothiki/events{/privacy}","received_events_url":"https://api.github.com/users/smothiki/received_events","type":"User","site_admin":false},"repo":{"id":30662066,"name":"swarm","full_name":"smothiki/swarm","owner":{"login":"smothiki","id":7416231,"avatar_url":"https://avatars.githubusercontent.com/u/7416231?v=3","gravatar_id":"","url":"https://api.github.com/users/smothiki","html_url":"https://github.com/smothiki","followers_url":"https://api.github.com/users/smothiki/followers","following_url":"https://api.github.com/users/smothiki/following{/other_user}","gists_url":"https://api.github.com/users/smothiki/gists{/gist_id}","starred_url":"https://api.github.com/users/smothiki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smothiki/subscriptions","organizations_url":"https://api.github.com/users/smothiki/orgs","repos_url":"https://api.github.com/users/smothiki/repos","events_url":"https://api.github.com/users/smothiki/events{/privacy}","received_events_url":"https://api.github.com/users/smothiki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/smothiki/swarm","description":"Swarm: a Docker-native clustering system","fork":true,"url":"https://api.github.com/repos/smothiki/swarm","forks_url":"https://api.github.com/repos/smothiki/swarm/forks","keys_url":"https://api.github.com/repos/smothiki/swarm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smothiki/swarm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smothiki/swarm/teams","hooks_url":"https://api.github.com/repos/smothiki/swarm/hooks","issue_events_url":"https://api.github.com/repos/smothiki/swarm/issues/events{/number}","events_url":"https://api.github.com/repos/smothiki/swarm/events","assignees_url":"https://api.github.com/repos/smothiki/swarm/assignees{/user}","branches_url":"https://api.github.com/repos/smothiki/swarm/branches{/branch}","tags_url":"https://api.github.com/repos/smothiki/swarm/tags","blobs_url":"https://api.github.com/repos/smothiki/swarm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smothiki/swarm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smothiki/swarm/git/refs{/sha}","trees_url":"https://api.github.com/repos/smothiki/swarm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smothiki/swarm/statuses/{sha}","languages_url":"https://api.github.com/repos/smothiki/swarm/languages","stargazers_url":"https://api.github.com/repos/smothiki/swarm/stargazers","contributors_url":"https://api.github.com/repos/smothiki/swarm/contributors","subscribers_url":"https://api.github.com/repos/smothiki/swarm/subscribers","subscription_url":"https://api.github.com/repos/smothiki/swarm/subscription","commits_url":"https://api.github.com/repos/smothiki/swarm/commits{/sha}","git_commits_url":"https://api.github.com/repos/smothiki/swarm/git/commits{/sha}","comments_url":"https://api.github.com/repos/smothiki/swarm/comments{/number}","issue_comment_url":"https://api.github.com/repos/smothiki/swarm/issues/comments{/number}","contents_url":"https://api.github.com/repos/smothiki/swarm/contents/{+path}","compare_url":"https://api.github.com/repos/smothiki/swarm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smothiki/swarm/merges","archive_url":"https://api.github.com/repos/smothiki/swarm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smothiki/swarm/downloads","issues_url":"https://api.github.com/repos/smothiki/swarm/issues{/number}","pulls_url":"https://api.github.com/repos/smothiki/swarm/pulls{/number}","milestones_url":"https://api.github.com/repos/smothiki/swarm/milestones{/number}","notifications_url":"https://api.github.com/repos/smothiki/swarm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smothiki/swarm/labels{/name}","releases_url":"https://api.github.com/repos/smothiki/swarm/releases{/id}","created_at":"2015-02-11T18:12:29Z","updated_at":"2015-03-13T18:52:42Z","pushed_at":"2015-03-17T18:17:37Z","git_url":"git://github.com/smothiki/swarm.git","ssh_url":"git@github.com:smothiki/swarm.git","clone_url":"https://github.com/smothiki/swarm.git","svn_url":"https://github.com/smothiki/swarm","homepage":"","size":4179,"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":"docker:master","ref":"master","sha":"b04197d3c03ad81e29fa6b0ecd1aebf9e5edc4c5","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":19360616,"name":"swarm","full_name":"docker/swarm","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/swarm","description":"Swarm: a Docker-native clustering system","fork":false,"url":"https://api.github.com/repos/docker/swarm","forks_url":"https://api.github.com/repos/docker/swarm/forks","keys_url":"https://api.github.com/repos/docker/swarm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/swarm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/swarm/teams","hooks_url":"https://api.github.com/repos/docker/swarm/hooks","issue_events_url":"https://api.github.com/repos/docker/swarm/issues/events{/number}","events_url":"https://api.github.com/repos/docker/swarm/events","assignees_url":"https://api.github.com/repos/docker/swarm/assignees{/user}","branches_url":"https://api.github.com/repos/docker/swarm/branches{/branch}","tags_url":"https://api.github.com/repos/docker/swarm/tags","blobs_url":"https://api.github.com/repos/docker/swarm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/swarm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/swarm/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/swarm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/swarm/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/swarm/languages","stargazers_url":"https://api.github.com/repos/docker/swarm/stargazers","contributors_url":"https://api.github.com/repos/docker/swarm/contributors","subscribers_url":"https://api.github.com/repos/docker/swarm/subscribers","subscription_url":"https://api.github.com/repos/docker/swarm/subscription","commits_url":"https://api.github.com/repos/docker/swarm/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/swarm/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/swarm/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/swarm/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/swarm/contents/{+path}","compare_url":"https://api.github.com/repos/docker/swarm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/swarm/merges","archive_url":"https://api.github.com/repos/docker/swarm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/swarm/downloads","issues_url":"https://api.github.com/repos/docker/swarm/issues{/number}","pulls_url":"https://api.github.com/repos/docker/swarm/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/swarm/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/swarm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/swarm/labels{/name}","releases_url":"https://api.github.com/repos/docker/swarm/releases{/id}","created_at":"2014-05-01T23:15:17Z","updated_at":"2015-03-17T16:50:43Z","pushed_at":"2015-03-17T10:07:57Z","git_url":"git://github.com/docker/swarm.git","ssh_url":"git@github.com:docker/swarm.git","clone_url":"https://github.com/docker/swarm.git","svn_url":"https://github.com/docker/swarm","homepage":"","size":8853,"stargazers_count":2407,"watchers_count":2407,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":243,"mirror_url":null,"open_issues_count":52,"forks":243,"open_issues":52,"watchers":2407,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/swarm/pulls/478"},"html":{"href":"https://github.com/docker/swarm/pull/478"},"issue":{"href":"https://api.github.com/repos/docker/swarm/issues/478"},"comments":{"href":"https://api.github.com/repos/docker/swarm/issues/478/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/swarm/pulls/478/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/swarm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/swarm/pulls/478/commits"},"statuses":{"href":"https://api.github.com/repos/docker/swarm/statuses/1c677784a7b89bc351be9d29c0ece51f636363c6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":70,"deletions":7,"changed_files":4}}