-
Notifications
You must be signed in to change notification settings - Fork 0
/
myflow.yaml
55 lines (55 loc) · 1.36 KB
/
myflow.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
apiVersion: pkg.x-helm.dev/v1alpha1
kind: Module
metadata:
creationTimestamp: null
name: myflow
namespace: demo
spec:
actions:
- chartRef:
name: first
url: https://raw.githubusercontent.com/kubepack/module-testdata/master/stable/
version: 0.1.0
name: first
prerequisites:
requiredResources:
- group: apps
resource: deployments
version: v1
readinessCriteria:
timeout: 0s
waitForReconciled: true
- chartRef:
name: third
url: https://raw.githubusercontent.com/kubepack/module-testdata/master/stable/
version: 0.1.0
name: third
overrideValues:
- objref:
src:
selector:
matchLabels:
app.kubernetes.io/instance: '{{ .Release.Name }}'
app.kubernetes.io/name: '{{ .Release.Name }}'
target:
apiVersion: v1
kind: Pod
useAction: first
values:
- key: first.name
value:
fieldPath: .metadata.name
type: string
- key: first.port
value:
fieldPathTemplate: '{{ jp "{.spec.containers[0].ports[0].containerPort}" . }}'
type: string
prerequisites:
requiredResources:
- group: apps
resource: deployments
version: v1
readinessCriteria:
timeout: 0s
waitForReconciled: true
status: {}