Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit f552cfd

Browse files
committed
deploy: test with Kubernetes 1.21 instead of 1.18
The deployments for 1.18 get removed in favor of testing with 1.21. For the two versions which get tested pre-merge, testing of both "production" and "testing" deployments gets restored the way it was originally intended (more tests on main worker, less on newly spawned worker).
1 parent f4c19e5 commit f552cfd

17 files changed

+83
-79
lines changed

Jenkinsfile

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -174,45 +174,48 @@ pipeline {
174174

175175
// Some stages are skipped entirely when testing PRs, the
176176
// others skip certain tests in that case:
177-
// - production deployment is only tested with Kubernetes 1.16
178-
// and testing deployment only with Kubernetes 1.18
177+
// - production deployment is tested on the oldest supported Kubernetes
178+
// (less tests, runs faster)
179+
// - testing deployment is tested on the newest supported Kubernetes
180+
// (more tests, runs longer, thus gets to use the existing worker)
179181
stage('Testing') {
180182
parallel {
181-
// This runs most tests and thus gets to use the initial worker immediately.
182-
stage('1.20') {
183+
stage('1.21') {
183184
options {
184185
timeout(time: 12, unit: "HOURS")
185186
}
186187
steps {
187-
TestInVM("", "fedora", "", "1.20", "Top.Level..[[:alpha:]]*-production[[:space:]]")
188+
// Skip production, i.e. run testing.
189+
TestInVM("", "fedora", "", "1.21", "Top.Level..[[:alpha:]]*-production[[:space:]]")
188190
}
189191
}
190192

191193
// All others set up their own worker.
192-
stage('1.19') {
194+
stage('1.20') {
195+
when {
196+
beforeAgent true
197+
not { changeRequest() }
198+
}
193199
options {
194200
timeout(time: 12, unit: "HOURS")
195201
}
196202
agent {
197203
label "pmem-csi"
198204
}
199205
steps {
200-
TestInVM("fedora-1.19", "fedora", "", "1.19", "Top.Level..[[:alpha:]]*-production[[:space:]]")
206+
TestInVM("fedora-1.20", "fedora", "", "1.20", "")
201207
}
202208
}
203-
stage('1.18') {
204-
when {
205-
beforeAgent true
206-
not { changeRequest() }
207-
}
209+
stage('1.19') {
208210
options {
209211
timeout(time: 12, unit: "HOURS")
210212
}
211213
agent {
212214
label "pmem-csi"
213215
}
214216
steps {
215-
TestInVM("fedora-1.18", "fedora", "", "1.18", "")
217+
// Skip testing, i.e. run production.
218+
TestInVM("fedora-1.19", "fedora", "", "1.19", "Top.Level..[[:alpha:]]*-testing[[:space:]]")
216219
}
217220
}
218221
}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ KUSTOMIZE_KUBERNETES_OUTPUT = \
167167
deploy/kubernetes-X.XX/pmem-csi-lvm-testing.yaml=deploy/kustomize/kubernetes-base-lvm-coverage \
168168

169169
KUSTOMIZE_KUBERNETES_VERSIONS = \
170-
1.18 \
171170
1.19 \
172171
1.20 \
172+
1.21
173173

174174
KUSTOMIZE += $(foreach version,$(KUSTOMIZE_KUBERNETES_VERSIONS),$(subst X.XX,$(version),$(KUSTOMIZE_KUBERNETES_OUTPUT)))
175175

deploy/bindata_generated.go

Lines changed: 60 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)