Skip to content

Commit 837e45f

Browse files
committed
remove enablement of alpha/beta apis for DRA
DynamicResourceAllocation is in GA with resource.k8s.io/v1 apis in 1.34. we enabled v1beta1 api for DynamicResourceAllocation in tech or dev preview in 4.20 and previous versions. we don't support upgrade from a tech/dev preview cluster, so we don't have to carry the burden of supporting alpha/beta apis. we should not support alpha/beta apis from 4.20
1 parent fc59d5c commit 837e45f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pkg/operator/configobservation/apienablement/observe_runtime_config.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,6 @@ var defaultGroupVersionsByFeatureGate = map[configv1.FeatureGateName][]groupVers
2828
{KubeVersionRange: semver.MustParseRange(">=1.33.0 <1.35.0"), GroupVersion: schema.GroupVersion{Group: "admissionregistration.k8s.io", Version: "v1alpha1"}},
2929
{KubeVersionRange: semver.MustParseRange(">=1.34.0 <1.35.0"), GroupVersion: schema.GroupVersion{Group: "admissionregistration.k8s.io", Version: "v1beta1"}},
3030
},
31-
"DynamicResourceAllocation": {
32-
// when DRA goes GA with OpenShift 4.21 (1.34), alpha and beta
33-
// apis must not be served. But for now, while 1.34 rebase is
34-
// in progress, continue serving these apis.
35-
// TODO: remove the following alpha/beta enablement for resource
36-
// apis after the 1.34 rebase PR has successfully merges.
37-
{KubeVersionRange: semver.MustParseRange(">=1.31.0 <1.35.0"), GroupVersion: schema.GroupVersion{Group: "resource.k8s.io", Version: "v1alpha3"}},
38-
{KubeVersionRange: semver.MustParseRange(">=1.32.0 <1.35.0"), GroupVersion: schema.GroupVersion{Group: "resource.k8s.io", Version: "v1beta1"}},
39-
{KubeVersionRange: semver.MustParseRange(">=1.33.0 <1.35.0"), GroupVersion: schema.GroupVersion{Group: "resource.k8s.io", Version: "v1beta2"}},
40-
},
4131
"VolumeAttributesClass": {{GroupVersion: schema.GroupVersion{Group: "storage.k8s.io", Version: "v1beta1"}}},
4232
}
4333

0 commit comments

Comments
 (0)