This way you will end up with deployment #2 and failed #1 with errors which is not nice at all, more so for the official templates.
--- Back-off pulling image " " Error syncing pod, skipping: failed to "StartContainer" for "jenkins" with ErrImagePull: "API error (500): repository name component must match \"[a-z0-9](?:-*[a-z0-9])*(?:[._][a-z0-9](?:-*[a-z0-9])*)*\"\n" Failed to pull image " ": API error (500): repository name component must match "[a-z0-9](?:-*[a-z0-9])*(?:[._][a-z0-9](?:-*[a-z0-9])*)*" --- Is there some proper solution? On Út, 2016-05-17 at 10:04 -0400, Clayton Coleman wrote: > Set image to " " > > On Tue, May 17, 2016 at 9:54 AM, Tomas Nozicka <[email protected]> > wrote: > > > > I am not able to specify ImageStream as source of what my container > > is > > run from in my DeploymentConfig. I can only specify image there [1] > > but > > not ImageStream. But when I setup triggers for DeploymentConfig I > > can > > specify ImageStream in form of ImageStreamTag. > > > > So the #1 deployment is from an image and #2->infinity are done > > from > > ImageStreamTag. > > > > Is there some way how to get deployment #1 from ImageStreamTag? > > > > Here is an example: > > > > ------------------- > > "kind": "DeploymentConfig" > > ... > > "triggers": [ > > { > > "type": "ImageChange", > > "imageChangeParams": { > > "automatic": true, > > "containerNames": [ > > "jenkins" > > ], > > "from": { > > "kind": "ImageStreamTag", > > "name": "jenkins:latest", > > "namespace": "${NAMESPACE}" > > } > > }, > > ... > > "template": { > > ... > > "spec": { > > "containers": [ > > { > > "name": "jenkins", > > "image": "${JENKINS_IMAGE}", > > }, > > ... > > ------------------- > > > > Deployment: > > - #1 deploys image ${JENKINS_IMAGE} > > - #2 (and future ones) deploys from ImageStreamTag > > 'jenkins:latest' in > > namespace 'openshift' > > > > > > Thanks, > > Tomas > > > > [1] - https://docs.openshift.org/latest/rest_api/openshift_v1.html# > > v1-c > > ontainer > > > > _______________________________________________ > > dev mailing list > > [email protected] > > http://lists.openshift.redhat.com/openshiftmm/listinfo/dev _______________________________________________ dev mailing list [email protected] http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
