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

Commit

Permalink
deploy: add support for Kubernetes 1.22
Browse files Browse the repository at this point in the history
The PMEM-CSI deployment itself is the same as for 1.21.

Some test code which used StorageV1beta1.CSIDriver had to be updated to
StorageV1 because 1.22 no longer has the older API.

(cherry picked from commit 08e4286)
  • Loading branch information
pohly committed Nov 17, 2021
1 parent 08505ea commit 5575aff
Show file tree
Hide file tree
Showing 20 changed files with 6,238 additions and 9 deletions.
16 changes: 14 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -180,17 +180,29 @@ pipeline {
// (more tests, runs longer, thus gets to use the existing worker)
stage('Testing') {
parallel {
stage('1.21') {
stage('1.22') {
options {
timeout(time: 12, unit: "HOURS")
}
steps {
// Skip production, i.e. run testing.
TestInVM("", "fedora", "", "1.21", "Top.Level..[[:alpha:]]*-production[[:space:]]")
TestInVM("", "fedora", "", "1.22", "Top.Level..[[:alpha:]]*-production[[:space:]]")
}
}

// All others set up their own worker.
stage('1.21') {
when {
beforeAgent true
not { changeRequest() }
}
agent {
label "pmem-csi"
}
steps {
TestInVM("fedora-1.21", "fedora", "", "1.21", "")
}
}
stage('1.20') {
when {
beforeAgent true
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ KUSTOMIZE += $(foreach version,$(KUSTOMIZE_KUBERNETES_VERSIONS),$(subst X.XX,$(v

# 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 += deploy/common/pmem-storageclass-default.yaml=deploy/kustomize/storageclass
KUSTOMIZE += deploy/common/pmem-storageclass-ext4.yaml=deploy/kustomize/storageclass-ext4
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ versions:
| 1.18 | | supported
| 1.19 | | supported
| 1.20 | | supported
| 1.21 | | supported
| 1.22 | | supported

<sup>1</sup> Several relevant features are only available in alpha
quality in Kubernetes 1.13 and the combination of skip attach and
Expand Down
1 change: 1 addition & 0 deletions deploy/kubernetes-1.22/direct/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resources: [ pmem-csi.yaml ]
Loading

0 comments on commit 5575aff

Please sign in to comment.