forked from ciberkleid/cartographer-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
supplychain.yaml
65 lines (58 loc) · 1.84 KB
/
supplychain.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#@ load("@ytt:data", "data")
---
apiVersion: carto.run/v1alpha1
kind: ClusterSupplyChain
metadata:
name: e2e-pkgops
spec:
selector:
apps.tanzu.vmware.com/workload-type: web2pkg
params:
- name: tagPrefix
value: #@ data.values.registry.tagPrefix
#!
#! source-provider <--[src]-- source-tester <--[src]-- image-builder <--[img]--- config-provider <--[configmap]--- imgpkg-bundler
#! GitRepository TaskRun Image ConfigMap TaskRun
#!
resources:
- name: source-provider
templateRef:
kind: ClusterSourceTemplate
name: workload-git-repository
- name: source-tester
templateRef:
kind: ClusterSourceTemplate
name: test
sources:
- resource: source-provider
name: new-source
params:
- name: language
default: golang
- name: image-builder
templateRef:
kind: ClusterImageTemplate
name: workload-kpack-image
sources:
- resource: source-tester
#! Reference in ClusterTemplate as $(sources.new-source.url)$
#! Can also use $(source.url) if there is only one source
name: new-source
- name: config-provider
templateRef:
kind: ClusterConfigTemplate
name: app-config
images:
- resource: image-builder
#! Reference in ClusterTemplate as $(images.new-image)$
#! Can also use $(image) if there is only one image
name: new-image
- name: imgpkg-bundler
templateRef:
kind: ClusterImageTemplate
name: imgpkg-bundle
configs:
- resource: config-provider
#! Reference in ClusterTemplate as $(configs.new-config)$
#! Can also use $(config) if there is only one config
name: new-config