- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 29 for discoveryclient (0.18 sec)
-
pkg/kube/client_factory.go
}) out.mapper = lazy.NewWithRetry(func() (meta.ResettableRESTMapper, error) { discoveryClient, err := out.ToDiscoveryClient() if err != nil { return nil, err } return restmapper.NewDeferredDiscoveryRESTMapper(discoveryClient), nil }) out.expander = lazy.NewWithRetry(func() (meta.RESTMapper, error) { discoveryClient, err := out.discoveryClient.Get() if err != nil { return nil, err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Dec 15 21:30:37 UTC 2023 - 5.8K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/config_flags_fake.go
if f.restMapper != nil { return f.restMapper, nil } if f.discoveryClient != nil { mapper := restmapper.NewDeferredDiscoveryRESTMapper(f.discoveryClient) expander := restmapper.NewShortcutExpander(mapper, f.discoveryClient, nil) return expander, nil } return nil, fmt.Errorf("no restmapper") } // WithClientConfig sets the clientConfig flag
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 11 15:04:11 UTC 2023 - 3.9K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/config_flags.go
f.discoveryClientLock.Lock() defer f.discoveryClientLock.Unlock() if f.discoveryClient == nil { discoveryClient, err := f.toDiscoveryClient() if err != nil { return nil, err } f.discoveryClient = discoveryClient } return f.discoveryClient, nil } func (f *ConfigFlags) toDiscoveryClient() (discovery.CachedDiscoveryInterface, error) { config, err := f.ToRESTConfig() if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 11 15:04:11 UTC 2023 - 16.9K bytes - Viewed (0) -
cmd/kube-controller-manager/app/storageversionmigrator.go
dynamicClient, err := dynamic.NewForConfig(config) if err != nil { return nil, false, err } discoveryClient, err := discovery.NewDiscoveryClientForConfig(config) if err != nil { return nil, false, err } go svm.NewResourceVersionController( ctx, client, discoveryClient, metadata.NewForConfigOrDie(config), informer, controllerContext.RESTMapper, ).Run(ctx)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 19:25:10 UTC 2024 - 2.6K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/clientset.go
func (c *Clientset) ApiextensionsV1beta1() apiextensionsv1beta1.ApiextensionsV1beta1Interface { return c.apiextensionsV1beta1 } // Discovery retrieves the DiscoveryClient func (c *Clientset) Discovery() discovery.DiscoveryInterface { if c == nil { return nil } return c.DiscoveryClient } // NewForConfig creates a new Clientset for the given config. // If config's RateLimiter is not set and QPS and Burst are acceptable,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 08 21:36:26 UTC 2023 - 4.4K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/clientset.go
type Clientset struct { *discovery.DiscoveryClient crV1 *crv1.CrV1Client } // CrV1 retrieves the CrV1Client func (c *Clientset) CrV1() crv1.CrV1Interface { return c.crV1 } // Discovery retrieves the DiscoveryClient func (c *Clientset) Discovery() discovery.DiscoveryInterface { if c == nil { return nil } return c.DiscoveryClient }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Sep 23 18:26:20 UTC 2022 - 3.6K bytes - Viewed (0) -
pkg/controller/storageversionmigrator/resourceversion.go
kubeClient clientset.Interface, discoveryClient *discovery.DiscoveryClient, metadataClient metadata.Interface, svmInformer svminformers.StorageVersionMigrationInformer, mapper meta.ResettableRESTMapper, ) *ResourceVersionController { logger := klog.FromContext(ctx) rvController := &ResourceVersionController{ kubeClient: kubeClient, discoveryClient: discoveryClient, metadataClient: metadataClient,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 8.5K bytes - Viewed (0) -
pkg/registry/admissionregistration/rest/storage_apiserver.go
validatingwebhookconfigurationstorage "k8s.io/kubernetes/pkg/registry/admissionregistration/validatingwebhookconfiguration/storage" ) type RESTStorageProvider struct { Authorizer authorizer.Authorizer DiscoveryClient discovery.DiscoveryInterface } func (p RESTStorageProvider) NewRESTStorage(apiResourceConfigSource serverstorage.APIResourceConfigSource, restOptionsGetter generic.RESTOptionsGetter) (genericapiserver.APIGroupInfo, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 8.2K bytes - Viewed (0) -
pilot/pkg/xds/adstest.go
return NewXdsTest(t, conn, func(conn *grpc.ClientConn) (DiscoveryClient, error) { xds := discovery.NewAggregatedDiscoveryServiceClient(conn) return xds.StreamAggregatedResources(context.Background()) }) } func NewSdsTest(t test.Failer, conn *grpc.ClientConn) *AdsTest { return NewXdsTest(t, conn, func(conn *grpc.ClientConn) (DiscoveryClient, error) { xds := sds.NewSecretDiscoveryServiceClient(conn)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Feb 04 03:39:42 UTC 2024 - 6K bytes - Viewed (0) -
cmd/kube-controller-manager/app/core_test.go
return m.clientset } func (m TestClientBuilder) DiscoveryClient(name string) (discovery.DiscoveryInterface, error) { return m.clientset.Discovery(), nil } func (m TestClientBuilder) DiscoveryClientOrDie(name string) discovery.DiscoveryInterface { ret, err := m.DiscoveryClient(name) if err != nil { panic(err) } return ret }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 27 11:28:01 UTC 2023 - 5.1K bytes - Viewed (0)