@@ -231,32 +231,6 @@ func TestGroupVersionsByFeatureGate(t *testing.T) {
231
231
},
232
232
expectedGroupVersions : map [configv1.FeatureGateName ][]schema.GroupVersion {},
233
233
},
234
- {
235
- name : "intersection of group versions should result in an error" ,
236
- kubeVersion : semver .MustParse ("1.31.0" ),
237
- groupVersionsByFeatureGate : map [configv1.FeatureGateName ][]groupVersionByOpenshiftVersion {
238
- "DynamicResourceAllocation" : {
239
- {KubeVersionRange : semver .MustParseRange ("< 1.32.0" ), GroupVersion : schema.GroupVersion {Group : "resource-a.k8s.io" , Version : "v1alpha2" }},
240
- {KubeVersionRange : semver .MustParseRange (">= 1.30.0" ), GroupVersion : schema.GroupVersion {Group : "resource-a.k8s.io" , Version : "v1alpha3" }},
241
- {KubeVersionRange : semver .MustParseRange (">= 1.31.0" ), GroupVersion : schema.GroupVersion {Group : "resource-b.k8s.io" , Version : "v1alpha2" }},
242
- },
243
- },
244
- expectErrors : true ,
245
- },
246
- {
247
- name : "intersection of group versions across feature gates should result in an error" ,
248
- kubeVersion : semver .MustParse ("1.31.0" ),
249
- groupVersionsByFeatureGate : map [configv1.FeatureGateName ][]groupVersionByOpenshiftVersion {
250
- "DynamicResourceAllocation" : {
251
- {KubeVersionRange : semver .MustParseRange ("< 1.32.0" ), GroupVersion : schema.GroupVersion {Group : "resource-a.k8s.io" , Version : "v1alpha2" }},
252
- {KubeVersionRange : semver .MustParseRange (">= 1.31.0" ), GroupVersion : schema.GroupVersion {Group : "resource-b.k8s.io" , Version : "v1alpha2" }},
253
- },
254
- "DRA" : {
255
- {GroupVersion : schema.GroupVersion {Group : "resource-b.k8s.io" , Version : "v1alpha1" }},
256
- },
257
- },
258
- expectErrors : true ,
259
- },
260
234
} {
261
235
t .Run (tc .name , func (t * testing.T ) {
262
236
actual , err := getGroupVersionByFeatureGate (tc .groupVersionsByFeatureGate , tc .kubeVersion )
0 commit comments