Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for LoadCABundle (0.3 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)
Back to top