Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for k8s 1.31 #589

Merged
merged 17 commits into from
Aug 16, 2024
Merged

Update for k8s 1.31 #589

merged 17 commits into from
Aug 16, 2024

Conversation

d-honeybadger
Copy link
Contributor

@d-honeybadger d-honeybadger commented Aug 15, 2024

  • updated k8s dependencies and e2e tests to accomodate v1.31
  • dropped 1.27
  • updated go to 1.23
  • updated various packages that dependabot had PRs for
  • updated versions of kubernetes-csi components
    • pulled in new volumesnapshot CRDs and updated the webhook b/c external-snapshotter had a breaking change

@d-honeybadger d-honeybadger marked this pull request as ready for review August 15, 2024 20:59
@@ -167,7 +167,7 @@ Summaries:
fmt.Println("Stopping container")
// A nil timeout means we use the timeout configured on the container
// Config.
err := cli.ContainerStop(context.Background(), cont.ID, nil)
err := cli.ContainerStop(context.Background(), cont.ID, container.StopOptions{})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

b/c of docker pkg update

@@ -20,9 +20,9 @@ webhooks:
- name: "validation-webhook.snapshot.storage.k8s.io"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since v8.0.0, snapshot-validation-webhook doesn't validate anything but volumesnapshotclasses. New example configuration here: https:/kubernetes-csi/external-snapshotter/blob/v8.0.1/deploy/kubernetes/webhook-example/admission-configuration-template
And here's the changelog entry: https:/kubernetes-csi/external-snapshotter/blob/master/CHANGELOG/CHANGELOG-8.0.md#urgent-upgrade-notes

@@ -20,9 +20,9 @@ webhooks:
- name: "validation-webhook.snapshot.storage.k8s.io"
rules:
- apiGroups: ["snapshot.storage.k8s.io"]
apiVersions: ["v1", "v1beta1"]
Copy link
Contributor Author

@d-honeybadger d-honeybadger Aug 15, 2024

Choose a reason for hiding this comment

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

Changed to match the current example for this webhook configuration, but also v1beta1 was removed from webhook in v6.0.0: kubernetes-csi/external-snapshotter#709, so no point in keeping it here

@@ -27,9 +27,8 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copied new CRDs from https:/kubernetes-csi/external-snapshotter/tree/v8.0.1/client/config/crd
Important change here is that they moved validation from the webhook to the CEL rules on the CRDs themselves, so I'm pulling in all that validation.
They've also added crds for "volumegroupsnapshots" but that's irrelevant for DO cause DO volumes don't support taking a snapshot of multiplt volumes at once

@dhij
Copy link
Contributor

dhij commented Aug 16, 2024

👋 do we have a newer version of csi-node-driver-registrar:v2.10.1?

@d-honeybadger
Copy link
Contributor Author

👋 do we have a newer version of csi-node-driver-registrar:v2.10.1?

Looks like I missed that one, thank you! Updated it too, double-checked other images (that they're updated)

Copy link
Contributor

@dhij dhij left a comment

Choose a reason for hiding this comment

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

LGTM!

@d-honeybadger d-honeybadger merged commit 634bc0a into master Aug 16, 2024
8 checks passed
@d-honeybadger d-honeybadger deleted the dkomsa/k8s-1.31-updates branch August 16, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants