- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for HookClient (0.26 sec)
-
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/accessors.go
// v1beta1.MutatingWebhook and v1beta1.ValidatingWebhook API objects. webhookutil.ClientConfig is used // to create a HookClient and the purpose of the config struct is to share that with other packages // that need to create a HookClient. func hookClientConfigForWebhook(w WebhookAccessor) webhookutil.ClientConfig { ret := webhookutil.ClientConfig{Name: w.GetName(), CABundle: w.GetClientConfig().CABundle}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 12.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/webhook/client.go
errs = append(errs, fmt.Errorf("the clientManager requires an authInfoResolver")) } return utilerrors.NewAggregate(errs) } // HookClient get a RESTClient from the cache, or constructs one based on the // webhook configuration. func (cm *ClientManager) HookClient(cc ClientConfig) (*rest.RESTClient, error) { ccWithNoName := cc ccWithNoName.Name = "" cacheKey, err := json.Marshal(ccWithNoName) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 04 09:09:10 UTC 2024 - 7.3K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/webhook_converter.go
} var _ crConverterInterface = &webhookConverter{} func (f *webhookConverterFactory) NewWebhookConverter(crd *v1.CustomResourceDefinition) (*webhookConverter, error) { restClient, err := f.clientManager.HookClient(*webhookClientConfigForCRD(crd)) if err != nil { return nil, err } return &webhookConverter{ clientManager: f.clientManager, restClient: restClient, name: crd.Name,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 07 19:37:55 UTC 2023 - 20.6K bytes - Viewed (0)