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

deploy: test with Kubernetes 1.21 instead of 1.18 #983

Merged
merged 3 commits into from
Jun 12, 2021

Conversation

pohly
Copy link
Contributor

@pohly pohly commented Jun 7, 2021

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).

Fixes: #978
Fixes: #982
Fixes: #856
Fixes: #730

@pohly pohly force-pushed the kubernetes-1.21-support branch from 7f1e9c8 to f8cc2f7 Compare June 7, 2021 19:28
@pohly
Copy link
Contributor Author

pohly commented Jun 8, 2021

A newer external-provisioner with kubernetes-csi/external-provisioner#635 is needed for block volumes.

@pohly pohly force-pushed the kubernetes-1.21-support branch 2 times, most recently from 497578d to 4a0d65a Compare June 10, 2021 08:22
@pohly pohly changed the title WIP: deploy: test with Kubernetes 1.21 instead of 1.18 deploy: test with Kubernetes 1.21 instead of 1.18 Jun 10, 2021
@pohly
Copy link
Contributor Author

pohly commented Jun 10, 2021

The new external-provisioner v2.2.2 should work.

@pohly pohly force-pushed the kubernetes-1.21-support branch from dcd2e49 to 20775de Compare June 10, 2021 12:25
@pohly pohly requested a review from avalluri June 11, 2021 07:47
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).

Kubernetes 1.21 has additional default values that we need to ignore
when validating deployments.
@pohly pohly force-pushed the kubernetes-1.21-support branch from 20775de to 89cee65 Compare June 11, 2021 07:58
pohly added 2 commits June 11, 2021 10:00
The new external-provisioner v2.2.0 supports storage capacity tracking
with the v1beta1 API in Kubernetes >= 1.21. Our new deployment files
for 1.21 and the operator enable that for 1.21, but not for 1.19 and
1.20

To simplify the sidecar update in the future, the
hack/bump-image-versions.sh gets added which patches all locations
were we define image versions.

Unnecessary variables in pkg/apis/pmemcsi/v1beta1/deployment_types.go
get removed because they were only used there and patching the file is
simpler when there is only one variable per image.
Now that we actually can use the feature, the scheduler extensions are
not needed anymore for Kubernetes >= 1.21.
@pohly pohly force-pushed the kubernetes-1.21-support branch from 89cee65 to 7874146 Compare June 11, 2021 08:01
@pohly
Copy link
Contributor Author

pohly commented Jun 11, 2021

Testing was successful, including full testing of the entire branch.

Copy link
Contributor

@avalluri avalluri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@avalluri avalluri merged commit eb59ea4 into intel:devel Jun 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants