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

Commit

Permalink
test: remove Kubernetes 1.19/20, add 1.23/24
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pohly committed Sep 14, 2022
1 parent b450165 commit 1139525
Show file tree
Hide file tree
Showing 61 changed files with 226 additions and 197 deletions.
28 changes: 14 additions & 14 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,15 @@ pipeline {
// (more tests, runs longer, thus gets to use the existing worker)
stage('Testing') {
parallel {
stage('1.22') {
stage('1.24') {
steps {
// Skip production, i.e. run testing.
TestInVM("", "", "fedora", "", "1.22", "Top.Level..[[:alpha:]]*-production[[:space:]]", "")
TestInVM("", "", "fedora", "", "1.24", "Top.Level..[[:alpha:]]*-production[[:space:]]", "")
}
}

// When adding or removing coverage workers, update the "Code Coverage" step below!
stage('coverage-1.22') {
stage('coverage-1.24') {
when {
beforeAgent true
not { changeRequest() }
Expand All @@ -206,12 +206,12 @@ pipeline {
label "pmem-csi"
}
steps {
TestInVM("fedora-coverage-1.22", "coverage-", "fedora", "", "1.22", "", "${env.COVERAGE_SKIP}")
TestInVM("fedora-coverage-1.24", "coverage-", "fedora", "", "1.24", "", "${env.COVERAGE_SKIP}")
}
}

// All others set up their own worker.
stage('1.21') {
stage('1.23') {
when {
beforeAgent true
not { changeRequest() }
Expand All @@ -220,10 +220,10 @@ pipeline {
label "pmem-csi"
}
steps {
TestInVM("fedora-1.21", "", "fedora", "", "1.21", "", "")
TestInVM("fedora-1.23", "", "fedora", "", "1.23", "", "")
}
}
stage('1.20') {
stage('1.22') {
when {
beforeAgent true
not { changeRequest() }
Expand All @@ -232,19 +232,19 @@ pipeline {
label "pmem-csi"
}
steps {
TestInVM("fedora-1.20", "", "fedora", "", "1.20", "", "")
TestInVM("fedora-1.22", "", "fedora", "", "1.22", "", "")
}
}
stage('1.19') {
stage('1.21') {
agent {
label "pmem-csi"
}
steps {
// Skip testing, i.e. run production.
TestInVM("fedora-1.19", "", "fedora", "", "1.19", "Top.Level..[[:alpha:]]*-testing[[:space:]]", "")
TestInVM("fedora-1.21", "", "fedora", "", "1.21", "Top.Level..[[:alpha:]]*-testing[[:space:]]", "")
}
}
stage('coverage-1.19') {
stage('coverage-1.21') {
when {
beforeAgent true
not { changeRequest() }
Expand All @@ -253,7 +253,7 @@ pipeline {
label "pmem-csi"
}
steps {
TestInVM("fedora-coverage-1.19", "coverage-", "fedora", "", "1.19", "", "${env.COVERAGE_SKIP}")
TestInVM("fedora-coverage-1.21", "coverage-", "fedora", "", "1.21", "", "${env.COVERAGE_SKIP}")
}
}
}
Expand Down Expand Up @@ -334,8 +334,8 @@ git push origin HEAD:master
}
steps {
// Restore <cluster>-coverage.out files.
unstash '1.22-coverage'
unstash '1.19-coverage'
unstash '1.24-coverage'
unstash '1.21-coverage'

// Merge and convert to Cobertura XML.
sh "${RunInBuilder()} ${env.BUILD_CONTAINER} make _work/gocovmerge _work/gocover-cobertura"
Expand Down
16 changes: 5 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -178,19 +178,13 @@ KUSTOMIZE_KUBERNETES_OUTPUT = \
deploy/kubernetes-X.XX/pmem-csi-lvm-testing.yaml=deploy/kustomize/kubernetes-base-lvm-testing$(KUSTOMIZE_COVERAGE_SUFFIX) \

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

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

KUSTOMIZE += deploy/common/pmem-storageclass-default.yaml=deploy/kustomize/storageclass
KUSTOMIZE += deploy/common/pmem-storageclass-ext4.yaml=deploy/kustomize/storageclass-ext4
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes-1.21/direct/pmem-csi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,8 @@ spec:
- --timeout=5m
- --default-fstype=ext4
- --worker-threads=5
- --metrics-address=:10011
- --enable-capacity
- --metrics-address=:10011
env:
- name: NODE_NAME
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes-1.21/direct/testing/pmem-csi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,9 @@ spec:
- --timeout=5m
- --default-fstype=ext4
- --worker-threads=5
- --enable-capacity
- --metrics-address=:10011
- -v=5
- --enable-capacity
env:
- name: NODE_NAME
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes-1.21/lvm/pmem-csi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,8 @@ spec:
- --timeout=5m
- --default-fstype=ext4
- --worker-threads=5
- --metrics-address=:10011
- --enable-capacity
- --metrics-address=:10011
env:
- name: NODE_NAME
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes-1.21/lvm/testing/pmem-csi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,9 @@ spec:
- --timeout=5m
- --default-fstype=ext4
- --worker-threads=5
- --enable-capacity
- --metrics-address=:10011
- -v=5
- --enable-capacity
env:
- name: NODE_NAME
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes-1.21/pmem-csi-direct-testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,9 @@ spec:
- --timeout=5m
- --default-fstype=ext4
- --worker-threads=5
- --enable-capacity
- --metrics-address=:10011
- -v=5
- --enable-capacity
env:
- name: NODE_NAME
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes-1.21/pmem-csi-direct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,8 @@ spec:
- --timeout=5m
- --default-fstype=ext4
- --worker-threads=5
- --metrics-address=:10011
- --enable-capacity
- --metrics-address=:10011
env:
- name: NODE_NAME
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes-1.21/pmem-csi-lvm-testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,9 @@ spec:
- --timeout=5m
- --default-fstype=ext4
- --worker-threads=5
- --enable-capacity
- --metrics-address=:10011
- -v=5
- --enable-capacity
env:
- name: NODE_NAME
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes-1.21/pmem-csi-lvm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,8 @@ spec:
- --timeout=5m
- --default-fstype=ext4
- --worker-threads=5
- --metrics-address=:10011
- --enable-capacity
- --metrics-address=:10011
env:
- name: NODE_NAME
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes-1.22/direct/pmem-csi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,8 @@ spec:
- --timeout=5m
- --default-fstype=ext4
- --worker-threads=5
- --metrics-address=:10011
- --enable-capacity
- --metrics-address=:10011
env:
- name: NODE_NAME
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes-1.22/direct/testing/pmem-csi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,9 @@ spec:
- --timeout=5m
- --default-fstype=ext4
- --worker-threads=5
- --enable-capacity
- --metrics-address=:10011
- -v=5
- --enable-capacity
env:
- name: NODE_NAME
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes-1.22/lvm/pmem-csi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,8 @@ spec:
- --timeout=5m
- --default-fstype=ext4
- --worker-threads=5
- --metrics-address=:10011
- --enable-capacity
- --metrics-address=:10011
env:
- name: NODE_NAME
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes-1.22/lvm/testing/pmem-csi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,9 @@ spec:
- --timeout=5m
- --default-fstype=ext4
- --worker-threads=5
- --enable-capacity
- --metrics-address=:10011
- -v=5
- --enable-capacity
env:
- name: NODE_NAME
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes-1.22/pmem-csi-direct-testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,9 @@ spec:
- --timeout=5m
- --default-fstype=ext4
- --worker-threads=5
- --enable-capacity
- --metrics-address=:10011
- -v=5
- --enable-capacity
env:
- name: NODE_NAME
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes-1.22/pmem-csi-direct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,8 @@ spec:
- --timeout=5m
- --default-fstype=ext4
- --worker-threads=5
- --metrics-address=:10011
- --enable-capacity
- --metrics-address=:10011
env:
- name: NODE_NAME
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes-1.22/pmem-csi-lvm-testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,9 @@ spec:
- --timeout=5m
- --default-fstype=ext4
- --worker-threads=5
- --enable-capacity
- --metrics-address=:10011
- -v=5
- --enable-capacity
env:
- name: NODE_NAME
valueFrom:
Expand Down
2 changes: 1 addition & 1 deletion deploy/kubernetes-1.22/pmem-csi-lvm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,8 @@ spec:
- --timeout=5m
- --default-fstype=ext4
- --worker-threads=5
- --metrics-address=:10011
- --enable-capacity
- --metrics-address=:10011
env:
- name: NODE_NAME
valueFrom:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -546,13 +546,22 @@ spec:
- --timeout=5m
- --default-fstype=ext4
- --worker-threads=5
- --enable-capacity
- --metrics-address=:10011
env:
- name: NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
image: registry.k8s.io/sig-storage/csi-provisioner:v3.2.1
imagePullPolicy: IfNotPresent
livenessProbe:
Expand Down Expand Up @@ -713,6 +722,7 @@ metadata:
spec:
attachRequired: false
podInfoOnMount: true
storageCapacity: true
volumeLifecycleModes:
- Persistent
- Ephemeral
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ spec:
- --timeout=5m
- --default-fstype=ext4
- --worker-threads=5
- --enable-capacity
- --metrics-address=:10011
- -v=5
env:
Expand All @@ -557,6 +558,14 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
image: registry.k8s.io/sig-storage/csi-provisioner:v3.2.1
imagePullPolicy: IfNotPresent
livenessProbe:
Expand Down Expand Up @@ -787,6 +796,7 @@ metadata:
spec:
attachRequired: false
podInfoOnMount: true
storageCapacity: true
volumeLifecycleModes:
- Persistent
- Ephemeral
Original file line number Diff line number Diff line change
Expand Up @@ -546,13 +546,22 @@ spec:
- --timeout=5m
- --default-fstype=ext4
- --worker-threads=5
- --enable-capacity
- --metrics-address=:10011
env:
- name: NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
image: registry.k8s.io/sig-storage/csi-provisioner:v3.2.1
imagePullPolicy: IfNotPresent
livenessProbe:
Expand Down Expand Up @@ -713,6 +722,7 @@ metadata:
spec:
attachRequired: false
podInfoOnMount: true
storageCapacity: true
volumeLifecycleModes:
- Persistent
- Ephemeral
Loading

0 comments on commit 1139525

Please sign in to comment.