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

Commit 1139525

Browse files
committed
test: remove Kubernetes 1.19/20, add 1.23/24
This is in preparation for making 1.21-25 the only supported Kubernetes versions. The main advantage will be that support for the scheduler extender can be removed. For now it's still there, but not enabled for 1.24 because the configuration API changed.
1 parent b450165 commit 1139525

File tree

61 files changed

+226
-197
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+226
-197
lines changed

Jenkinsfile

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,15 @@ pipeline {
189189
// (more tests, runs longer, thus gets to use the existing worker)
190190
stage('Testing') {
191191
parallel {
192-
stage('1.22') {
192+
stage('1.24') {
193193
steps {
194194
// Skip production, i.e. run testing.
195-
TestInVM("", "", "fedora", "", "1.22", "Top.Level..[[:alpha:]]*-production[[:space:]]", "")
195+
TestInVM("", "", "fedora", "", "1.24", "Top.Level..[[:alpha:]]*-production[[:space:]]", "")
196196
}
197197
}
198198

199199
// When adding or removing coverage workers, update the "Code Coverage" step below!
200-
stage('coverage-1.22') {
200+
stage('coverage-1.24') {
201201
when {
202202
beforeAgent true
203203
not { changeRequest() }
@@ -206,12 +206,12 @@ pipeline {
206206
label "pmem-csi"
207207
}
208208
steps {
209-
TestInVM("fedora-coverage-1.22", "coverage-", "fedora", "", "1.22", "", "${env.COVERAGE_SKIP}")
209+
TestInVM("fedora-coverage-1.24", "coverage-", "fedora", "", "1.24", "", "${env.COVERAGE_SKIP}")
210210
}
211211
}
212212

213213
// All others set up their own worker.
214-
stage('1.21') {
214+
stage('1.23') {
215215
when {
216216
beforeAgent true
217217
not { changeRequest() }
@@ -220,10 +220,10 @@ pipeline {
220220
label "pmem-csi"
221221
}
222222
steps {
223-
TestInVM("fedora-1.21", "", "fedora", "", "1.21", "", "")
223+
TestInVM("fedora-1.23", "", "fedora", "", "1.23", "", "")
224224
}
225225
}
226-
stage('1.20') {
226+
stage('1.22') {
227227
when {
228228
beforeAgent true
229229
not { changeRequest() }
@@ -232,19 +232,19 @@ pipeline {
232232
label "pmem-csi"
233233
}
234234
steps {
235-
TestInVM("fedora-1.20", "", "fedora", "", "1.20", "", "")
235+
TestInVM("fedora-1.22", "", "fedora", "", "1.22", "", "")
236236
}
237237
}
238-
stage('1.19') {
238+
stage('1.21') {
239239
agent {
240240
label "pmem-csi"
241241
}
242242
steps {
243243
// Skip testing, i.e. run production.
244-
TestInVM("fedora-1.19", "", "fedora", "", "1.19", "Top.Level..[[:alpha:]]*-testing[[:space:]]", "")
244+
TestInVM("fedora-1.21", "", "fedora", "", "1.21", "Top.Level..[[:alpha:]]*-testing[[:space:]]", "")
245245
}
246246
}
247-
stage('coverage-1.19') {
247+
stage('coverage-1.21') {
248248
when {
249249
beforeAgent true
250250
not { changeRequest() }
@@ -253,7 +253,7 @@ pipeline {
253253
label "pmem-csi"
254254
}
255255
steps {
256-
TestInVM("fedora-coverage-1.19", "coverage-", "fedora", "", "1.19", "", "${env.COVERAGE_SKIP}")
256+
TestInVM("fedora-coverage-1.21", "coverage-", "fedora", "", "1.21", "", "${env.COVERAGE_SKIP}")
257257
}
258258
}
259259
}
@@ -334,8 +334,8 @@ git push origin HEAD:master
334334
}
335335
steps {
336336
// Restore <cluster>-coverage.out files.
337-
unstash '1.22-coverage'
338-
unstash '1.19-coverage'
337+
unstash '1.24-coverage'
338+
unstash '1.21-coverage'
339339

340340
// Merge and convert to Cobertura XML.
341341
sh "${RunInBuilder()} ${env.BUILD_CONTAINER} make _work/gocovmerge _work/gocover-cobertura"

Makefile

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -178,19 +178,13 @@ KUSTOMIZE_KUBERNETES_OUTPUT = \
178178
deploy/kubernetes-X.XX/pmem-csi-lvm-testing.yaml=deploy/kustomize/kubernetes-base-lvm-testing$(KUSTOMIZE_COVERAGE_SUFFIX) \
179179

180180
# Kubernetes versions derived from kubernetes-base.
181-
#
182-
# Once we drop support for 1.19, all the remaining versions can
183-
# be moved back here and the changes for storage capacity
184-
# tracking can be moved into kubernetes-base and
185-
# kubernetes-1.20 removed.
186181
KUSTOMIZE_KUBERNETES_VERSIONS = \
187-
1.19 \
188-
1.20
189-
KUSTOMIZE += $(foreach version,$(KUSTOMIZE_KUBERNETES_VERSIONS),$(subst X.XX,$(version),$(KUSTOMIZE_KUBERNETES_OUTPUT)))
182+
1.21 \
183+
1.22 \
184+
1.23 \
185+
1.24 \
190186

191-
# Deployments that have storage capacity tracking enabled, using the v1beta1 API.
192-
KUSTOMIZE += $(subst kubernetes-base,kubernetes-1.21,$(subst X.XX,1.21,$(KUSTOMIZE_KUBERNETES_OUTPUT)))
193-
KUSTOMIZE += $(subst kubernetes-base,kubernetes-1.21,$(subst X.XX,1.22,$(KUSTOMIZE_KUBERNETES_OUTPUT)))
187+
KUSTOMIZE += $(foreach version,$(KUSTOMIZE_KUBERNETES_VERSIONS),$(subst X.XX,$(version),$(KUSTOMIZE_KUBERNETES_OUTPUT)))
194188

195189
KUSTOMIZE += deploy/common/pmem-storageclass-default.yaml=deploy/kustomize/storageclass
196190
KUSTOMIZE += deploy/common/pmem-storageclass-ext4.yaml=deploy/kustomize/storageclass-ext4

deploy/kubernetes-1.21/direct/pmem-csi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,8 @@ spec:
546546
- --timeout=5m
547547
- --default-fstype=ext4
548548
- --worker-threads=5
549-
- --metrics-address=:10011
550549
- --enable-capacity
550+
- --metrics-address=:10011
551551
env:
552552
- name: NODE_NAME
553553
valueFrom:

deploy/kubernetes-1.21/direct/testing/pmem-csi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,9 @@ spec:
549549
- --timeout=5m
550550
- --default-fstype=ext4
551551
- --worker-threads=5
552+
- --enable-capacity
552553
- --metrics-address=:10011
553554
- -v=5
554-
- --enable-capacity
555555
env:
556556
- name: NODE_NAME
557557
valueFrom:

deploy/kubernetes-1.21/lvm/pmem-csi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,8 @@ spec:
546546
- --timeout=5m
547547
- --default-fstype=ext4
548548
- --worker-threads=5
549-
- --metrics-address=:10011
550549
- --enable-capacity
550+
- --metrics-address=:10011
551551
env:
552552
- name: NODE_NAME
553553
valueFrom:

deploy/kubernetes-1.21/lvm/testing/pmem-csi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,9 @@ spec:
549549
- --timeout=5m
550550
- --default-fstype=ext4
551551
- --worker-threads=5
552+
- --enable-capacity
552553
- --metrics-address=:10011
553554
- -v=5
554-
- --enable-capacity
555555
env:
556556
- name: NODE_NAME
557557
valueFrom:

deploy/kubernetes-1.21/pmem-csi-direct-testing.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,9 @@ spec:
549549
- --timeout=5m
550550
- --default-fstype=ext4
551551
- --worker-threads=5
552+
- --enable-capacity
552553
- --metrics-address=:10011
553554
- -v=5
554-
- --enable-capacity
555555
env:
556556
- name: NODE_NAME
557557
valueFrom:

deploy/kubernetes-1.21/pmem-csi-direct.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,8 @@ spec:
546546
- --timeout=5m
547547
- --default-fstype=ext4
548548
- --worker-threads=5
549-
- --metrics-address=:10011
550549
- --enable-capacity
550+
- --metrics-address=:10011
551551
env:
552552
- name: NODE_NAME
553553
valueFrom:

deploy/kubernetes-1.21/pmem-csi-lvm-testing.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,9 +549,9 @@ spec:
549549
- --timeout=5m
550550
- --default-fstype=ext4
551551
- --worker-threads=5
552+
- --enable-capacity
552553
- --metrics-address=:10011
553554
- -v=5
554-
- --enable-capacity
555555
env:
556556
- name: NODE_NAME
557557
valueFrom:

deploy/kubernetes-1.21/pmem-csi-lvm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,8 @@ spec:
546546
- --timeout=5m
547547
- --default-fstype=ext4
548548
- --worker-threads=5
549-
- --metrics-address=:10011
550549
- --enable-capacity
550+
- --metrics-address=:10011
551551
env:
552552
- name: NODE_NAME
553553
valueFrom:

0 commit comments

Comments
 (0)