Change:
The override in can be removed in Kubernetes v1.25 because then the oldest supported kube-apiserver for downgrades will be v1.24 which will understand the v1 format. Also need to adapt See and Code cleanup...
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the label and provide further guidance. The label can be by org members by writing in a comment. <detailsInstructions for interacting with me using PR comments are available . If you have questions or suggestions related to my behavior, please file an issue against the repository. </details
/assign
/sig storage
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules: After 90d of inactivity, is applied After 30d of inactivity since was applied, is applied After 30d of inactivity since was applied, the issue is closed You can: Mark this issue or PR as fresh with Mark this issue or PR as rotten with Close this issue or PR with Offer to help out with [Issue Triage][1] Please send feedback to sig-contributor-experience at . /lifecycle stale [1]:
/remove-lifecycle stale /lifecycle frozen

Discussion:
"storage.k8s.io/v1/csidrivers":                                     "hL6j/rwBV5w=", "storage.k8s.io/v1/csinodes":                                       "Pe62DkZtjuo=", "storage.k8s.io/v1/storageclasses":                                 "K+m6uJwbjGY=", <del> "storage.k8s.io/v1/csistoragecapacities":                           "4as6MA/kOg0=", </del> <ins> "storage.k8s.io/v1/csistoragecapacities":                           "xeVl+2Ly1kE=", </ins> "storage.k8s.io/v1/volumeattachments":                              "tJx/ezt6UDU=", <del> "storage.k8s.io/v1beta1/csistoragecapacities":                      "4as6MA/kOg0=", </del> <ins> "storage.k8s.io/v1beta1/csistoragecapacities":                      "xeVl+2Ly1kE=", </ins> "apps/v1/controllerrevisions":                                      "85nkx63pcBU=", "apps/v1/daemonsets":                                               "dd7pWHUlMKQ=", "apps/v1/deployments":                                              "8aSe+NMegvE=",

"k8s.io/kubernetes/pkg/apis/extensions" "k8s.io/kubernetes/pkg/apis/networking" "k8s.io/kubernetes/pkg/apis/policy" <del> apisstorage "k8s.io/kubernetes/pkg/apis/storage" </del> ) // SpecialDefaultResourcePrefixes are prefixes compiled into Kubernetes.

func NewStorageFactoryConfig() *StorageFactoryConfig { resources := []schema.GroupVersionResource{ <del> // TODO (https://github.com/kubernetes/kubernetes/issues/108451): remove the override in // 1.25. apisstorage.Resource("csistoragecapacities").WithVersion("v1beta1"), </del> <ins> // If a resource has to be stored in a version that is not the // latest, then it can be listed here. Usually this is the case // when a new version for a resource gets introduced and a // downgrade to an older apiserver that doesn't know the new // version still needs to be supported for one release. // // Example from Kubernetes 1.24 where csistoragecapacities had just // graduated to GA: // // TODO (https://github.com/kubernetes/kubernetes/issues/108451): remove the override in 1.25. // apisstorage.Resource("csistoragecapacities").WithVersion("v1beta1"), </ins> } return &StorageFactoryConfig{

gvr("storage.k8s.io", "v1alpha1", "csistoragecapacities"): { Stub:             `{"metadata": {"name": "csc-12345-1"}, "storageClassName": "sc1"}`, ExpectedEtcdPath: "/registry/csistoragecapacities/" + namespace + "/csc-12345-1", <del> ExpectedGVK:      gvkP("storage.k8s.io", "v1beta1", "CSIStorageCapacity"), </del> <ins> ExpectedGVK:      gvkP("storage.k8s.io", "v1", "CSIStorageCapacity"), </ins> }, // --

gvr("storage.k8s.io", "v1beta1", "csistoragecapacities"): { Stub:             `{"metadata": {"name": "csc-12345-2"}, "storageClassName": "sc1"}`, ExpectedEtcdPath: "/registry/csistoragecapacities/" + namespace + "/csc-12345-2", <ins> ExpectedGVK:      gvkP("storage.k8s.io", "v1", "CSIStorageCapacity"), </ins> }, // --

gvr("storage.k8s.io", "v1", "csistoragecapacities"): { Stub:             `{"metadata": {"name": "csc-12345-3"}, "storageClassName": "sc1"}`, ExpectedEtcdPath: "/registry/csistoragecapacities/" + namespace + "/csc-12345-3", <del> ExpectedGVK:      gvkP("storage.k8s.io", "v1beta1", "CSIStorageCapacity"), </del> }, // --