Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetKeyCertBundle (0.18 sec)

  1. pilot/pkg/keycertbundle/watcher_test.go

    	case <-watch1:
    		keyCertBundle := watcher.GetKeyCertBundle()
    		if !bytes.Equal(keyCertBundle.KeyPem, key) || !bytes.Equal(keyCertBundle.CertPem, cert) ||
    			!bytes.Equal(keyCertBundle.CABundle, ca) {
    			t.Errorf("got wrong keyCertBundle %v", keyCertBundle)
    		}
    	default:
    		t.Errorf("watcher1 watched non keyCertBundle")
    	}
    	select {
    	case <-watch2:
    		keyCertBundle := watcher.GetKeyCertBundle()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 28 17:46:00 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  2. pilot/pkg/keycertbundle/watcher.go

    }
    
    // GetCABundle returns the CABundle.
    func (w *Watcher) GetCABundle() []byte {
    	w.mutex.RLock()
    	defer w.mutex.RUnlock()
    	return w.bundle.CABundle
    }
    
    // GetKeyCertBundle returns the bundle.
    func (w *Watcher) GetKeyCertBundle() KeyCertBundle {
    	w.mutex.RLock()
    	defer w.mutex.RUnlock()
    	return w.bundle
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 05 14:00:18 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. pilot/pkg/bootstrap/certcontroller.go

    	s.environment.AddMeshHandler(func() {
    		newCaBundle, _ := s.RA.GetRootCertFromMeshConfig(signerName)
    		if newCaBundle != nil && !bytes.Equal(newCaBundle, s.istiodCertBundleWatcher.GetKeyCertBundle().CABundle) {
    			newCertChain, newKeyPEM, _, err := chiron.GenKeyCertK8sCA(s.kubeClient.Kube(),
    				strings.Join(s.dnsNames, ","), "", signerName, true, SelfSignedCACertTTL.Get())
    			if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  4. pilot/pkg/bootstrap/server_test.go

    			var certRotated bool
    			var rotatedCertBytes []byte
    			err := retry.Until(func() bool {
    				rotatedCertBytes = s.istiodCertBundleWatcher.GetKeyCertBundle().CertPem
    				st := string(rotatedCertBytes)
    				certRotated = st != string(tt.certToWatch)
    				return certRotated == tt.certRotated
    			}, retry.Timeout(10*time.Second))
    
    			close(stop)
    			if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top