[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: BuildConfig+ImageStream question





On Fri, Apr 1, 2016 at 9:13 AM, Tomas Nozicka <tnozicka redhat com> wrote:
Hi,

let's say we have an ImageStream with the following definition:
spec:
  dockerImageRepository: centos/ruby-22-centos7
status:
  dockerImageRepository: 172.30.107.255:5000/import/ruby-22-centos7

There is also an BuildConfig referencing this ImageStream by:
sourceStrategy:
  from:
    kind: ImageStreamTag
    name: ruby-22-centos7:latest

If you start build from this BuildConfig you get:
Error from server: imageStreamTag "ruby-22-centos7:latest" not found

​what is the output of "oc get is <imagestream name> -n <namespace>" ?​

 

There are intentionally no tags yet in the ImageStream. But it knows
where to get them. Should not have openshift downloaded the image in
the first place or is it correct to get this error?

​it looks like you created the imagestream in a namespace named "import", is that also where you defined the buildconfig?  if not, you need to specify the namespace in your "from" definition in the buildconfig, and ensure you have view access to the import namespace.

 


Thanks,
Tomas Nozicka

_______________________________________________
dev mailing list
dev lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/dev



--
Ben Parees | OpenShift


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]