mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
find partial resource matches
This commit is contained in:
@@ -57,7 +57,7 @@ func TestRESTMapper(t *testing.T) {
|
||||
gv := unversioned.GroupVersion{Group: componentconfig.GroupName, Version: "v1alpha1"}
|
||||
proxyGVK := gv.WithKind("KubeProxyConfiguration")
|
||||
|
||||
if gvk, err := latest.GroupOrDie(componentconfig.GroupName).RESTMapper.KindFor("kubeproxyconfiguration"); err != nil || gvk != proxyGVK {
|
||||
if gvk, err := latest.GroupOrDie(componentconfig.GroupName).RESTMapper.KindFor(gv.WithResource("kubeproxyconfiguration")); err != nil || gvk != proxyGVK {
|
||||
t.Errorf("unexpected version mapping: %v %v", gvk, err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user