目录

Sample multi component git repository.

To test multi component build from the same git repository create the following objects:

Application

apiVersion: appstudio.redhat.com/v1alpha1
kind: Application
metadata:
  name: application-sample
  namespace: test
spec:
  description: Simple app that consists from two components from the same git repository
  displayName: test-git-multi-component

Component 1

apiVersion: appstudio.redhat.com/v1alpha1
kind: Component
metadata:
  name: go-component-sample
  namespace: test
  annotations:
    build.appstudio.openshift.io/request: "configure-pac"
    image.redhat.com/generate: '{"visibility": "public"}'
spec:
  componentName: go-sample-component-name
  application: application-sample
  source:
    git:
      url: https://github.com/mmorhun/sample-multi-component
      context: go-component

Component 2

apiVersion: appstudio.redhat.com/v1alpha1
kind: Component
metadata:
  name: python-component-sample
  namespace: test
  annotations:
    build.appstudio.openshift.io/request: "configure-pac"
    image.redhat.com/generate: '{"visibility": "public"}'
spec:
  componentName: python-sample-component-name
  application: application-sample
  source:
    git:
      url: https://github.com/mmorhun/sample-multi-component
      context: python-component
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号