From 64583807552499fd6f67d776c946ea7b3ebfb992 Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Mon, 15 Jan 2024 15:56:21 -0800 Subject: [PATCH] Remove defunct references to "vendor" Kubernetes-commit: d772f7719dc55ebfec2e9461b6e14bf17f5301df --- restmapper/shortcut.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restmapper/shortcut.go b/restmapper/shortcut.go index ca517a01..0afc8689 100644 --- a/restmapper/shortcut.go +++ b/restmapper/shortcut.go @@ -50,7 +50,7 @@ func (e shortcutExpander) KindFor(resource schema.GroupVersionResource) (schema. // In case of new CRDs this means we potentially don't have current state of discovery. // In the current wiring in k8s.io/cli-runtime/pkg/genericclioptions/config_flags.go#toRESTMapper, // we are using DeferredDiscoveryRESTMapper which on KindFor failure will clear the - // cache and fetch all data from a cluster (see vendor/k8s.io/client-go/restmapper/discovery.go#KindFor). + // cache and fetch all data from a cluster (see k8s.io/client-go/restmapper/discovery.go#KindFor). // Thus another call to expandResourceShortcut, after a NoMatchError should successfully // read Kind to the user or an error. gvk, err := e.RESTMapper.KindFor(e.expandResourceShortcut(resource))