了解 OpenShift 源码策略

问题描述 投票:0回答:1

关于下面的 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'

我们不应该在“构建”>“图像”页面中看到“python:3.6”图像流标签吗? 策略部分中的“命名空间:openshift”是什么意思?

openshift openshift-origin okd minishift redhat-containers
1个回答
1
投票

策略部分中的“namespace: openshift”是什么意思?

这意味着,

https://github.com/TCPuniverse/simple-webapp.git
源将使用
python:3.6
项目中的
openshift
图像流标签构建。构建的图像将作为
tpython-app-1:lates
图像流推送到 buildconfig 定义的项目中。

© www.soinside.com 2019 - 2024. All rights reserved.