Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for SetFromFilesAndNotify (0.56 sec)

  1. pilot/pkg/keycertbundle/watcher.go

    		w.bundle.CABundle = caBundle
    	}
    	for _, ch := range w.watchers {
    		select {
    		case ch <- struct{}{}:
    		default:
    		}
    	}
    }
    
    // SetFromFilesAndNotify sets the key cert and root cert from files and notify the watchers.
    func (w *Watcher) SetFromFilesAndNotify(keyFile, certFile, rootCert string) error {
    	cert, err := os.ReadFile(certFile)
    	if err != nil {
    		return err
    	}
    	key, err := os.ReadFile(keyFile)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 05 14:00:18 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. pilot/pkg/bootstrap/certcontroller.go

    // when /var/run/secrets/istiod/tls is used. Not to be confused with the /etc/cacerts path.
    func (s *Server) initFileCertificateWatches(tlsOptions TLSOptions) error {
    	if err := s.istiodCertBundleWatcher.SetFromFilesAndNotify(tlsOptions.KeyFile, tlsOptions.CertFile, tlsOptions.CaCertFile); err != nil {
    		return fmt.Errorf("set keyCertBundle failed: %v", err)
    	}
    	// TODO: Setup watcher for root and restart server if it changes.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 11.3K bytes
    - Viewed (0)
Back to top