This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.prow.yaml
166 lines (166 loc) · 4.88 KB
/
.prow.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
presubmits:
- name: pull-kubecarrier-test
always_run: true
decorate: true
clone_uri: ssh://[email protected]/kubermatic/kubecarrier.git
spec:
containers:
- image: quay.io/kubecarrier/test
imagePullPolicy: Always
command:
- go-init
- -main
- make test
env:
- name: GO111MODULE
value: "on"
resources:
requests:
cpu: 4
- name: pull-kubecarrier-lint
always_run: true
decorate: true
clone_uri: ssh://[email protected]/kubermatic/kubecarrier.git
spec:
containers:
- image: quay.io/kubecarrier/dev:v6
imagePullPolicy: Always
command:
- go-init
- -main
- make lint
env:
- name: GO111MODULE
value: "on"
resources:
requests:
cpu: 4
memory: 6Gi
- name: pull-kubecarrier-e2e-v1.17
always_run: true
decorate: true
clone_uri: ssh://[email protected]/kubermatic/kubecarrier.git
spec:
# DNS configuration allows inner cluster to access the internet.
dnsPolicy: "None"
dnsConfig:
nameservers:
- 1.1.1.1 # Cloudflare DNS servers
- 1.0.0.1
containers:
- image: quay.io/kubecarrier/test
imagePullPolicy: Always
name: e2e-test
command:
- go-init
- -main
- make e2e-test
env:
- name: KIND_NODE_IMAGE
value: "kindest/node:v1.17.5@sha256:ab3f9e6ec5ad8840eeb1f76c89bb7948c77bbf76bcebe1a8b59790b8ae9a283a"
- name: GO111MODULE
value: "on"
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: kubecarrier-aws
key: key_id
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: kubecarrier-aws
key: key_secret
- name: AWS_DEFAULT_REGION
valueFrom:
secretKeyRef:
name: kubecarrier-aws
key: region
# docker-in-docker needs privileged mode
securityContext:
privileged: true
resources:
requests:
cpu: 3
memory: 4Gi
- name: pull-kubecarrier-e2e-v1.16
always_run: true
decorate: true
clone_uri: ssh://[email protected]/kubermatic/kubecarrier.git
spec:
# DNS configuration allows inner cluster to access the internet.
dnsPolicy: "None"
dnsConfig:
nameservers:
- 1.1.1.1 # Cloudflare DNS servers
- 1.0.0.1
containers:
- image: quay.io/kubecarrier/test
imagePullPolicy: Always
name: e2e-test
command:
- go-init
- -main
- make e2e-test
env:
- name: KIND_NODE_IMAGE
value: "kindest/node:v1.16.9@sha256:7175872357bc85847ec4b1aba46ed1d12fa054c83ac7a8a11f5c268957fd5765"
- name: GO111MODULE
value: "on"
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: kubecarrier-aws
key: key_id
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: kubecarrier-aws
key: key_secret
- name: AWS_DEFAULT_REGION
valueFrom:
secretKeyRef:
name: kubecarrier-aws
key: region
# docker-in-docker needs privileged mode
securityContext:
privileged: true
resources:
requests:
cpu: 3
memory: 4Gi
postsubmits:
- name: post-kubecarrier-test-image
decorate: true
clone_uri: ssh://[email protected]/kubermatic/kubecarrier.git
branches:
- ^master$
run_if_changed: "(go.sum|go.mod|start-docker.sh|test.Dockerfile|.pre-commit-config.yaml)"
spec:
containers:
- image: quay.io/kubecarrier/test
imagePullPolicy: Always
name: e2e-test
command:
- go-init
- -main
- make push-image-test
env:
- name: GO111MODULE
value: "on"
- name: QUAY_IO_USERNAME
valueFrom:
secretKeyRef:
name: kubecarrier-quay.io
key: username
- name: QUAY_IO_PASSWORD
valueFrom:
secretKeyRef:
name: kubecarrier-quay.io
key: password
# docker needs privileged mode
securityContext:
privileged: true
resources:
requests:
cpu: 800m
memory: 2Gi