Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for LoadCABundle (0.16 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/dynamic_cafile_content.go

    		),
    	}
    	if err := ret.loadCABundle(); err != nil {
    		return nil, err
    	}
    
    	return ret, nil
    }
    
    // AddListener adds a listener to be notified when the CA content changes.
    func (c *DynamicFileCAContent) AddListener(listener Listener) {
    	c.listeners = append(c.listeners, listener)
    }
    
    // loadCABundle determines the next set of content for the file.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/configmap_cafile_content.go

    func (c *ConfigMapCAController) AddListener(listener Listener) {
    	c.listeners = append(c.listeners, listener)
    }
    
    // loadCABundle determines the next set of content for the file.
    func (c *ConfigMapCAController) loadCABundle() error {
    	configMap, err := c.configmapLister.ConfigMaps(c.configmapNamespace).Get(c.configmapName)
    	if err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. pkg/webhooks/util/util.go

    type ConfigError struct {
    	err    error
    	reason string
    }
    
    func (e ConfigError) Error() string {
    	return e.err.Error()
    }
    
    func (e ConfigError) Reason() string {
    	return e.reason
    }
    
    func LoadCABundle(caBundleWatcher *keycertbundle.Watcher) ([]byte, error) {
    	caBundle := caBundleWatcher.GetCABundle()
    	if err := VerifyCABundle(caBundle); err != nil {
    		return nil, &ConfigError{err, "could not verify caBundle"}
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 14 17:33:33 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  4. pkg/webhooks/webhookpatch.go

    		return nil
    	}
    	if v != w.revision {
    		reportWebhookPatchFailure(webhookConfigName, reasonWrongRevision)
    		return errWrongRevision
    	}
    
    	found := false
    	updated := false
    	caCertPem, err := util.LoadCABundle(w.CABundleWatcher)
    	if err != nil {
    		log.Errorf("Failed to load CA bundle: %v", err)
    		reportWebhookPatchFailure(webhookConfigName, reasonLoadCABundleFailure)
    		return err
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 28 00:36:38 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  5. pkg/webhooks/validation/controller/controller.go

    	if whc == nil {
    		scope.Infof("Skip patching webhook, not found")
    		return nil
    	}
    
    	scope.Debugf("Reconcile(enter)")
    	defer func() { scope.Debugf("Reconcile(exit)") }()
    
    	caBundle, err := util.LoadCABundle(c.o.CABundleWatcher)
    	if err != nil {
    		scope.Errorf("Failed to load CA bundle: %v", err)
    		reportValidationConfigLoadError(err.(*util.ConfigError).Reason())
    		// no point in retrying unless cert file changes.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 28 16:52:19 UTC 2024
    - 11.3K bytes
    - Viewed (0)
Back to top