Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for HookClient (0.24 sec)

  1. 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)
  2. 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)
Back to top