This repository has been archived by the owner on Jun 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathconfig.yml
239 lines (203 loc) · 6.58 KB
/
config.yml
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
version: 2
templates:
docker_job_template: &docker_job_template
docker:
- image: golang:1.13
working_directory: /go/src/github.com/DataDog/pupernetes
machine_job_template: &machine_job_template
machine: true
working_directory: /home/circleci/.go_workspace/src/github.com/DataDog/pupernetes
environment:
CFLAGS: ""
CGO_ENABLED: "1"
DEBIAN_FRONTEND: "noninteractive"
SUDO_USER: "circleci"
jobs:
build:
<<: *docker_job_template
steps:
- checkout
- run:
name: make
command: make
tests:
<<: *docker_job_template
steps:
- checkout
- run:
name: tests
command: make check
gofmt:
<<: *docker_job_template
steps:
- checkout
- run:
name: verify-gofmt
command: make verify-gofmt
docs:
<<: *docker_job_template
steps:
- checkout
- run:
name: verify-docs
command: make verify-docs
license:
<<: *docker_job_template
steps:
- checkout
- run:
name: verify-license
command: make verify-license
misc:
<<: *docker_job_template
steps:
- checkout
- run:
name: goget
command: make goget
- run:
name: verify-misc
command: make verify-misc
setup_fg:
<<: *machine_job_template
steps:
- checkout
- run:
name: make
command: make pupernetes-docker
- run:
name: apt
command: sudo apt-get update -q && sudo apt-get install -yq systemd libseccomp2
- run:
name: setup
command: sudo ./pupernetes daemon setup sandbox/ -v 5 --kubeconfig-path $HOME/.kube/config
- run:
name: already-setup
# As it's already setup, pupernetes should be very fast
command: sudo timeout 15 ./pupernetes daemon setup sandbox/ --kubeconfig-path $HOME/.kube/config
- run:
name: clean-setup
# As we kept the binaries, pupernetes should be very fast
command: sudo timeout 15 ./pupernetes daemon setup sandbox/ -c etcd,iptables,kubectl,kubelet,manifests,mounts,network,secrets --kubeconfig-path $HOME/.kube/config
- run:
name: clean-setup-shortcut
# As we kept the binaries, pupernetes should be very fast
command: sudo timeout 15 ./pupernetes daemon setup sandbox/ -k binaries --kubeconfig-path $HOME/.kube/config
- run:
name: version-setup
# Clean everything but the binaries and download and extract the outdated hyperkube tarball
command: sudo ./pupernetes daemon setup sandbox/ --hyperkube-version 1.9.4 -k binaries --kubeconfig-path $HOME/.kube/config
- run:
name: clean-but-binaries
# Clean everything but the binaries
command: sudo ./pupernetes daemon clean sandbox/ -k binaries --kubeconfig-path $HOME/.kube/config
- run:
name: rm-kubectl
command: rm -v $HOME/.kube/config
- run:
name: kubectl-setup
command: sudo ./pupernetes daemon setup sandbox/ --hyperkube-version 1.9.4
- run:
name: kubectl-ok
command: ls -l $HOME/.kube/config && cat $HOME/.kube/config
- run:
name: clean
command: sudo ./pupernetes daemon clean sandbox/ -c all
run_fg:
<<: *machine_job_template
steps:
- checkout
- run:
name: make
command: make pupernetes-docker
- run:
name: apt
command: sudo apt-get update -q && sudo apt-get install -yq systemd libseccomp2
- run:
name: setup
command: sudo ./pupernetes daemon setup sandbox/ -v 5 --kubeconfig-path $HOME/.kube/config
- run:
name: copy-validation
# Copy a batch validation job where the manifests are applied once pupernetes apiserver is available =)
command: sudo cp -v .ci/pupernetes-validation.yaml sandbox/manifest-api/pupernetes-validation.yaml
- run:
name: run-docker
command: sudo timeout 600 ./pupernetes daemon run sandbox/ --bind-address 0.0.0.0:8989 --kubeconfig-path $HOME/.kube/config
- run:
name: run-containerd
command: sudo timeout 600 ./pupernetes daemon run sandbox/ --bind-address 0.0.0.0:8989 --kubeconfig-path $HOME/.kube/config --container-runtime containerd
- run:
name: clean
command: sudo ./pupernetes daemon clean sandbox/ -c all
run_systemd:
<<: *machine_job_template
steps:
- checkout
- run:
name: make
command: make pupernetes-docker
- run:
name: apt
command: sudo apt-get update -q && sudo apt-get install -yq systemd libseccomp2
- run:
name: run
command: sudo ./pupernetes daemon run sandbox/ --job-type systemd -v 5 --kubectl-link /usr/local/bin/kubectl --bind-address 0.0.0.0:8989 --kubeconfig-path $HOME/.kube/config --dns-check
- run:
name: kubectl
# kubectl some stuff
command: kubectl config view && kubectl version && kubectl get no,svc,deploy,ds,job,po --all-namespaces -o wide
- run:
name: validation
command: make ci-validation
sonobuoy:
<<: *machine_job_template
steps:
- checkout
- run:
name: make
command: make pupernetes-docker
- run:
name: apt
command: sudo apt-get update -q && sudo apt-get install -yq systemd libseccomp2
- run:
name: run
command: sudo ./pupernetes daemon run sandbox/ --job-type systemd -v 5 --kubectl-link /usr/local/bin/kubectl --bind-address 0.0.0.0:8989 --kubeconfig-path $HOME/.kube/config --dns-check
- run:
name: kubectl
# kubectl some stuff
command: kubectl config view && kubectl version && kubectl get no,svc,deploy,ds,job,po --all-namespaces -o wide
- run:
name: sonobuoy
command: make ci-sonobuoy
- run:
name: reset
command: ./pupernetes reset default kube-system --apply
- run:
name: validation
command: make ci-validation
workflows:
version: 2
pupernetes:
jobs:
- build
- tests
- gofmt
- docs
- license
- misc
- setup_fg:
requires:
- build
- tests
- run_fg:
requires:
- build
- tests
- run_systemd:
requires:
- build
- tests
- sonobuoy:
requires:
- build
- tests