了解openshift源代码策略

了解openshift源代码策略,openshift,openshift-origin,okd,minishift,redhat-containers,Openshift,Openshift Origin,Okd,Minishift,Redhat Containers,关于以下BuildConfig YAML代码: 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:

关于以下BuildConfig YAML代码:

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'
我们不应该在Build>Images页面中看到“python:3.6”图像流标记吗? 策略部分中的“名称空间:openshift”是什么意思

策略部分中的“名称空间:openshift”是什么意思


它的意思是,
https://github.com/TCPuniverse/simple-webapp.git
source将使用
openshift
项目中的
python:3.6
imagestream标记构建。在buildconfig定义的项目中,生成的映像将被推送到
tpython-app-1:lates
imagestream。

OKD中我的项目名称是“My-project-1”。我试图将“namespace:openshift”更改为“namespace:my-project-1”以匹配我自己的项目名称,但它抱怨图像流标记,因此我尝试创建“python:3.6”图像流选项卡;我发现另一个错误,指向“python:3.6”中的无效字符。如果“namespace:openshift”指向项目名称,那么为什么会出现这些错误呢?为什么图像流标记中没有显示“python:3.6”?有什么帮助吗?我仍然困在这里。我将sourceStrategy/from/namespace从“openshift”更改为我的项目名称,但它不起作用。虽然在这一变化之前它起了作用,但为什么呢?如果那不是我的项目名称,“namespace:openshift”是什么意思?!您能在这方面帮助我吗?好的,okd在
openshift
项目中提供python s2i图像作为ImageStream。您可以使用
ocget is python-n openshift
检查这一点。有关python s2i的详细信息,请参阅。并使用
oc descripe is python-n openshift
检查python ImageStreamTag 3.6是否存在。如果它不存在,您可以使用现有的其他版本尝试构建。