Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CurrentCertKeyContent (0.38 sec)

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

    	return true
    }
    
    // Name is just an identifier
    func (c *DynamicCertKeyPairContent) Name() string {
    	return c.name
    }
    
    // CurrentCertKeyContent provides cert and key byte content
    func (c *DynamicCertKeyPairContent) CurrentCertKeyContent() ([]byte, []byte) {
    	certKeyContent := c.certKeyPair.Load().(*certKeyContent)
    	return certKeyContent.cert, certKeyContent.key
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/dynamiccertificates/tlsconfig.go

    		newContent.clientCA = caBundleContent{caBundle: currClientCABundle}
    	}
    
    	if c.servingCert != nil {
    		currServingCert, currServingKey := c.servingCert.CurrentCertKeyContent()
    		if len(currServingCert) == 0 || len(currServingKey) == 0 {
    			return nil, fmt.Errorf("not loading an empty serving certificate from %q", c.servingCert.Name())
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. pkg/kubelet/certificate/kubelet.go

    }
    
    // Enqueue implements the functions to be notified when the serving cert content changes.
    func (m *kubeletServerCertificateDynamicFileManager) Enqueue() {
    	certContent, keyContent := m.dynamicCertificateContent.CurrentCertKeyContent()
    	cert, err := tls.X509KeyPair(certContent, keyContent)
    	if err != nil {
    		klog.ErrorS(err, "invalid certificate and key pair from file", "certFile", m.certFile, "keyFile", m.keyFile)
    		return
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 03:07:16 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top