Set image to " " On Tue, May 17, 2016 at 9:54 AM, Tomas Nozicka <tnozi...@redhat.com> 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 > dev@lists.openshift.redhat.com > http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
_______________________________________________ dev mailing list dev@lists.openshift.redhat.com http://lists.openshift.redhat.com/openshiftmm/listinfo/dev