mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
Merge pull request #124602 from Iceber/fix_discovery_prioritized_versions
fix the version order of 'discovery.k8s.io'
This commit is contained in:
commit
073c1596f2
@ -8,7 +8,7 @@
|
||||
"name": "endpointslices",
|
||||
"namespaced": true,
|
||||
"singularName": "endpointslice",
|
||||
"storageVersionHash": "Nx3SIv6I0mE=",
|
||||
"storageVersionHash": "qgS0xkrxYAI=",
|
||||
"verbs": [
|
||||
"create",
|
||||
"delete",
|
||||
|
@ -36,5 +36,5 @@ func Install(scheme *runtime.Scheme) {
|
||||
utilruntime.Must(discovery.AddToScheme(scheme))
|
||||
utilruntime.Must(v1beta1.AddToScheme(scheme))
|
||||
utilruntime.Must(v1.AddToScheme(scheme))
|
||||
utilruntime.Must(scheme.SetVersionPriority(v1beta1.SchemeGroupVersion, v1.SchemeGroupVersion))
|
||||
utilruntime.Must(scheme.SetVersionPriority(v1.SchemeGroupVersion, v1beta1.SchemeGroupVersion))
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ var GVRToStorageVersionHash = map[string]string{
|
||||
"batch/v1/cronjobs": "sd5LIXh4Fjs=",
|
||||
"certificates.k8s.io/v1/certificatesigningrequests": "95fRKMXA+00=",
|
||||
"coordination.k8s.io/v1/leases": "gqkMMb/YqFM=",
|
||||
"discovery.k8s.io/v1/endpointslices": "Nx3SIv6I0mE=",
|
||||
"discovery.k8s.io/v1/endpointslices": "qgS0xkrxYAI=",
|
||||
"networking.k8s.io/v1/networkpolicies": "YpfwF18m1G8=",
|
||||
"networking.k8s.io/v1/ingresses": "39NQlfNR+bo=",
|
||||
"networking.k8s.io/v1/ingressclasses": "l/iqIbDgFyQ=",
|
||||
|
@ -176,7 +176,6 @@ func GetEtcdStorageDataForNamespace(namespace string) map[schema.GroupVersionRes
|
||||
gvr("discovery.k8s.io", "v1", "endpointslices"): {
|
||||
Stub: `{"metadata": {"name": "slicev1"}, "addressType": "IPv4", "protocol": "TCP", "ports": [], "endpoints": []}`,
|
||||
ExpectedEtcdPath: "/registry/endpointslices/" + namespace + "/slicev1",
|
||||
ExpectedGVK: gvkP("discovery.k8s.io", "v1beta1", "EndpointSlice"),
|
||||
},
|
||||
// --
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user