File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed 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