{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/6288","labels_url":"https://api.github.com/repos/openshift/origin/issues/6288/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/6288/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/6288/events","html_url":"https://github.com/openshift/origin/pull/6288","id":121947336,"number":6288,"title":"Image import with auth","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":[{"url":"https://api.github.com/repos/openshift/origin/labels/component/images","name":"component/images","color":"0052cc"},{"url":"https://api.github.com/repos/openshift/origin/labels/needs-rebase","name":"needs-rebase","color":"cccccc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-12-13T22:11:00Z","updated_at":"2016-01-20T17:20:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openshift/origin/pulls/6288","html_url":"https://github.com/openshift/origin/pull/6288","diff_url":"https://github.com/openshift/origin/pull/6288.diff","patch_url":"https://github.com/openshift/origin/pull/6288.patch"},"body":"Add a new API which allows images to be imported through an image\r\nstream, with the ability to optionally tag those images into a new or\r\nexisting image stream. Allow the image import controller to continue to\r\nwork based on annotation.  Limit the ability to import an entire repository to a maximum number.\r\n\r\n```\r\n{\r\n  \"kind\": \"ImageStreamImport\",\r\n  \"apiVersion\": \"v1\",\r\n  \"repository\": {  # optional\r\n    \"from\": {\"kind\": \"DockerImage\", \"name\": \"mysql\"}\r\n  }\r\n}\r\n```\r\n\r\nresults in\r\n\r\n```\r\n{\r\n  \"kind\": \"ImageStreamImport\",\r\n  \"apiVersion\": \"v1\",\r\n  \"repository\": {  # optional\r\n    \"from\": {\"kind\": \"DockerImage\", \"name\": \"mysql\"},\r\n    \"images\": [\r\n      { ... }, # tag latest if available\r\n      ...      # up to N highest semantically versioned tags, if specified, otherwise alphabetic order\r\n    ],\r\n    \"additionalTags\": [\r\n      \"5.7.8\",\r\n      \"5.7.7\",\r\n      \"5.7\"\r\n    ],\r\n    \"status\": {\r\n      \"status\": \"Success\"\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nAdd the concept of \"generation\" to image streams to concretely record\r\nthe state at which a tag was changed, and allow importers to track when\r\nthat state was effected (into status). Add a conditions field to each\r\nstatus tag to report failures to users incrementally.\r\n\r\nPreserves all fundamental behaviors for legacy clients. Omitting\r\ngeneration on an update results in the field being preserved. Clients\r\nmust set generation to 0 to request a clear. Clients are prohibited from\r\nproviding their own generation.\r\n\r\nWhen more tags are requested (in a repository import) than are allowed, they will be returned as \"additionalTags\", sorted by semantic versioning order.  Latest is always the first tag.\r\n\r\nUpdate oc tag to not clear the top level annotation when setting the\r\ndirect field.\r\n\r\nDepends on #5404\r\n\r\n@bparees fyi"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/173283316","html_url":"https://github.com/openshift/origin/pull/6288#issuecomment-173283316","issue_url":"https://api.github.com/repos/openshift/origin/issues/6288","id":173283316,"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-01-20T17:20:34Z","updated_at":"2016-01-20T17:20:34Z","body":"continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/204/)"}}