understandinf openshift source strategy

145 views Asked by At

regarding to the BuildConfig YAML code bellow:

source:
 git:
  ref: TCPuniverse-patch-1
  uri: 'https://github.com/TCPuniverse/simple-webapp.git'
 type: Git
strategy:
 sourceStrategy:
  from:
    kind: ImageStreamTag
    name: 'python:3.6'
    namespace: openshift
output:
  to:
    kind: ImageStreamTag
    name: 'tpython-app-1:latest'

shouldn't we see "python:3.6" Image Stream Tag in Build > Images page? And what does the "namespace: openshift" mean in strategy section?

1

There are 1 answers

4
Daein Park On

And what does the "namespace: openshift" mean in strategy section?

It means, https://github.com/TCPuniverse/simple-webapp.git source will build using python:3.6 imagestream tag in openshift project. And the built image would be pushed as tpython-app-1:lates imagestream in the project the buildconfig defined.