mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
remove enabled by default beta resources that have been removed
This commit is contained in:
parent
2eb4eac581
commit
a51be9786b
@ -28,19 +28,6 @@ func TestNoNewBetaAPIsByDefault(t *testing.T) {
|
||||
// this list and this test was created to make it more painful.
|
||||
// legacyBetaEnabledByDefaultResources is the list of beta resources we enable. You may not add to this list
|
||||
legacyBetaEnabledByDefaultResources := map[schema.GroupVersionResource]bool{
|
||||
gvr("autoscaling", "v2beta1", "horizontalpodautoscalers"): true, // remove in 1.25
|
||||
gvr("autoscaling", "v2beta2", "horizontalpodautoscalers"): true, // remove in 1.26
|
||||
gvr("batch", "v1beta1", "jobtemplates"): true, // remove in 1.25
|
||||
gvr("batch", "v1beta1", "cronjobs"): true, // remove in 1.25
|
||||
gvr("discovery.k8s.io", "v1beta1", "endpointslices"): true, // remove in 1.25
|
||||
gvr("events.k8s.io", "v1beta1", "events"): true, // remove in 1.25
|
||||
gvr("node.k8s.io", "v1beta1", "runtimeclasses"): true, // remove in 1.25
|
||||
gvr("policy", "v1beta1", "poddisruptionbudgets"): true, // remove in 1.25
|
||||
gvr("policy", "v1beta1", "podsecuritypolicies"): true, // remove in 1.25
|
||||
gvr("storage.k8s.io", "v1beta1", "csinodes"): true, // remove in 1.25
|
||||
gvr("storage.k8s.io", "v1beta1", "csistoragecapacities"): true, // remove in 1.27
|
||||
gvr("flowcontrol.apiserver.k8s.io", "v1beta1", "flowschemas"): true, // remove in 1.26
|
||||
gvr("flowcontrol.apiserver.k8s.io", "v1beta1", "prioritylevelconfigurations"): true, // remove in 1.26
|
||||
gvr("flowcontrol.apiserver.k8s.io", "v1beta2", "flowschemas"): true, // remove in 1.29
|
||||
gvr("flowcontrol.apiserver.k8s.io", "v1beta2", "prioritylevelconfigurations"): true, // remove in 1.29
|
||||
}
|
||||
@ -50,7 +37,6 @@ func TestNoNewBetaAPIsByDefault(t *testing.T) {
|
||||
// beta versions enabled by default. Nothing new should be added here. There are no future exceptions because there
|
||||
// are no more beta resources enabled by default.
|
||||
legacyBetaResourcesWithoutStableEquivalents := map[schema.GroupResource]bool{
|
||||
gvr("storage.k8s.io", "v1beta1", "csistoragecapacities").GroupResource(): true,
|
||||
gvr("flowcontrol.apiserver.k8s.io", "v1beta1", "flowschemas").GroupResource(): true,
|
||||
gvr("flowcontrol.apiserver.k8s.io", "v1beta1", "prioritylevelconfigurations").GroupResource(): true,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user