Skip to content

oc export does not work for image streams #8327

@tnozicka

Description

@tnozicka

If you export ImageStream having Spec.DockerImageRepository all of its tags are striped and not exported!
I probably found the line causing this 181: https://github.com/openshift/origin/blob/master/pkg/cmd/cli/cmd/exporter.go
IMHO you should copy tags from spec and status as well.

Version

oc v1.1.4
kubernetes v1.2.0-origin-41-g91d3e75

Steps To Reproduce
  1. oc new-project original-project
  2. oc new-app centos/ruby-22-centos7~https://github.com/openshift/ruby-hello-world.git
  3. oc new-project import
  4. oc export is,bc -o yaml -n original-project | oc create -f - -n import
  5. oc start-build ruby-hello-world -n import
Current Result

Error from server: imageStreamTag "ruby-22-centos7:latest" not found

Expected Result

No error

Metadata

Metadata

Assignees

Labels

component/imageregistrykind/bugCategorizes issue or PR as related to a bug.lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.priority/P2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions