File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export GO111MODULE=on
4444#
4545# Kubebuilder.
4646#
47- export KUBEBUILDER_ENVTEST_KUBERNETES_VERSION ?= 1.32 .0
47+ export KUBEBUILDER_ENVTEST_KUBERNETES_VERSION ?= 1.33 .0
4848export KUBEBUILDER_CONTROLPLANE_START_TIMEOUT ?= 60s
4949export KUBEBUILDER_CONTROLPLANE_STOP_TIMEOUT ?= 60s
5050
Original file line number Diff line number Diff line change @@ -288,7 +288,12 @@ func TestReconcile(t *testing.T) {
288288 if skipCRDMigrationPhases .Has (StorageVersionMigrationPhase ) {
289289 // If storage version migration was skipped before, we now cannot deploy CRDs that remove v1beta1.
290290 g .Expect (err ).To (HaveOccurred ())
291- g .Expect (err .Error ()).To (ContainSubstring ("status.storedVersions[0]: Invalid value: \" v1beta1\" : must appear in spec.versions" ))
291+ g .Expect (err .Error ()).To (Or (
292+ // Kubernetes < v1.33.0
293+ ContainSubstring ("status.storedVersions[0]: Invalid value: \" v1beta1\" : must appear in spec.versions" ),
294+ // Kubernetes >= v1.33.0
295+ ContainSubstring ("status.storedVersions[0]: Invalid value: \" v1beta1\" : missing from spec.versions" ),
296+ ))
292297 return
293298 }
294299 g .Expect (err ).ToNot (HaveOccurred ())
You can’t perform that action at this time.
0 commit comments