{"action":"created","issue":{"url":"https://api.github.com/repos/cockpit-project/cockpit/issues/4081","repository_url":"https://api.github.com/repos/cockpit-project/cockpit","labels_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/4081/labels{/name}","comments_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/4081/comments","events_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/4081/events","html_url":"https://github.com/cockpit-project/cockpit/issues/4081","id":143011757,"number":4081,"title":"Registry: Import Image","user":{"login":"aweiteka","id":1764461,"avatar_url":"https://avatars.githubusercontent.com/u/1764461?v=3","gravatar_id":"","url":"https://api.github.com/users/aweiteka","html_url":"https://github.com/aweiteka","followers_url":"https://api.github.com/users/aweiteka/followers","following_url":"https://api.github.com/users/aweiteka/following{/other_user}","gists_url":"https://api.github.com/users/aweiteka/gists{/gist_id}","starred_url":"https://api.github.com/users/aweiteka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aweiteka/subscriptions","organizations_url":"https://api.github.com/users/aweiteka/orgs","repos_url":"https://api.github.com/users/aweiteka/repos","events_url":"https://api.github.com/users/aweiteka/events{/privacy}","received_events_url":"https://api.github.com/users/aweiteka/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cockpit-project/cockpit/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"stefwalter","id":795070,"avatar_url":"https://avatars.githubusercontent.com/u/795070?v=3","gravatar_id":"","url":"https://api.github.com/users/stefwalter","html_url":"https://github.com/stefwalter","followers_url":"https://api.github.com/users/stefwalter/followers","following_url":"https://api.github.com/users/stefwalter/following{/other_user}","gists_url":"https://api.github.com/users/stefwalter/gists{/gist_id}","starred_url":"https://api.github.com/users/stefwalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefwalter/subscriptions","organizations_url":"https://api.github.com/users/stefwalter/orgs","repos_url":"https://api.github.com/users/stefwalter/repos","events_url":"https://api.github.com/users/stefwalter/events{/privacy}","received_events_url":"https://api.github.com/users/stefwalter/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-03-23T16:34:02Z","updated_at":"2016-03-29T01:52:09Z","closed_at":null,"body":"The \"New Image Stream\" action might be better labeled \"Import Image\" since it references another registry and sync's down the metadata.\r\n\r\nAlso, I would suggest an optional checkbox to pull all tags. Otherwise the user may enter a list of tags in a text field. :latest is default if unspecified.\r\n\r\nThis maps well to `oc import-image --from` command.\r\n\r\n```\r\noc import-image -h\r\nImport tag and image information from an external Docker image repository\r\n\r\nOnly image streams that have a value set for spec.dockerImageRepository and/or\r\nspec.Tags may have tag and image information imported.\r\n\r\nUsage:\r\n  oc import-image IMAGESTREAM[:TAG] [options]\r\n\r\nExamples:\r\n  $ oc import-image mystream\r\n\r\nOptions:\r\n      --all=false: If true, import all tags from the provided source on creation or if --from is specified\r\n      --confirm=false: If true, allow the image stream import location to be set or changed\r\n      --from='': A Docker image repository to import images from\r\n      --insecure=false: If true, allow importing from registries that have invalid HTTPS certificates or are hosted via HTTP\r\n\r\nUse \"oc options\" for a list of global command-line options (applies to all commands).\r\n```"},"comment":{"url":"https://api.github.com/repos/cockpit-project/cockpit/issues/comments/202662509","html_url":"https://github.com/cockpit-project/cockpit/issues/4081#issuecomment-202662509","issue_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/4081","id":202662509,"user":{"login":"aweiteka","id":1764461,"avatar_url":"https://avatars.githubusercontent.com/u/1764461?v=3","gravatar_id":"","url":"https://api.github.com/users/aweiteka","html_url":"https://github.com/aweiteka","followers_url":"https://api.github.com/users/aweiteka/followers","following_url":"https://api.github.com/users/aweiteka/following{/other_user}","gists_url":"https://api.github.com/users/aweiteka/gists{/gist_id}","starred_url":"https://api.github.com/users/aweiteka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aweiteka/subscriptions","organizations_url":"https://api.github.com/users/aweiteka/orgs","repos_url":"https://api.github.com/users/aweiteka/repos","events_url":"https://api.github.com/users/aweiteka/events{/privacy}","received_events_url":"https://api.github.com/users/aweiteka/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T01:52:09Z","updated_at":"2016-03-29T01:52:09Z","body":"> Have you tried it via JSON on the command line?\r\n\r\nIt appears defining an image stream via JSON is basically the same behavior as `oc import-image`. I'm trying to sort out the use case for creating an empty image stream. It feels to me like \"import image\" or \"sync remote image\" is the behavior a user would expect. I'm okay as it is today as long as the CLI args are basically covered. We can get feedback from users now."}}