Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for addStartFunc (0.14 sec)

  1. pilot/pkg/bootstrap/sidecarinjector.go

    	// Patch cert if a webhook config name is provided.
    	// This requires RBAC permissions - a low-priv Istiod should not attempt to patch but rely on
    	// operator or CI/CD
    	if features.InjectionWebhookConfigName != "" {
    		s.addStartFunc("injection patcher", func(stop <-chan struct{}) error {
    			// No leader election - different istiod revisions will patch their own cert.
    			// update webhook configuration by watching the cabundle
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 04 20:39:38 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. pilot/pkg/bootstrap/certcontroller.go

    			if err != nil {
    				log.Fatalf("failed regenerating key and cert for istiod by kubernetes: %v", err)
    			}
    			s.istiodCertBundleWatcher.SetAndNotify(newKeyPEM, newCertChain, newCaBundle)
    		}
    	})
    
    	s.addStartFunc("istiod server certificate rotation", func(stop <-chan struct{}) error {
    		go func() {
    			// Track TTL of DNS cert and renew cert in accordance to grace period.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  3. pilot/pkg/bootstrap/validation.go

    	}
    	_, err := server.New(params)
    	if err != nil {
    		return err
    	}
    
    	s.readinessFlags.configValidationReady.Store(true)
    
    	if features.ValidationWebhookConfigName != "" && s.kubeClient != nil {
    		s.addStartFunc("validation controller", func(stop <-chan struct{}) error {
    			log.Infof("Starting validation controller")
    			go controller.NewValidatingWebhookController(
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  4. pilot/pkg/bootstrap/server.go

    	// internalStop is closed when the server is shutdown. This should be avoided as much as possible, in
    	// favor of AddStartFunc. This is only required if we *must* start something outside of this process.
    	// For example, everything depends on mesh config, so we use it there rather than trying to sequence everything
    	// in AddStartFunc
    	internalStop chan struct{}
    
    	webhookInfo *webhookInfo
    
    	statusReporter *distribution.Reporter
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  5. pilot/pkg/bootstrap/configcontroller.go

    	s.configController = aggregateConfigController
    
    	// Create the config store.
    	s.environment.ConfigStore = aggregateConfigController
    
    	// Defer starting the controller until after the service is created.
    	s.addStartFunc("config controller", func(stop <-chan struct{}) error {
    		go s.configController.Run(stop)
    		return nil
    	})
    
    	return nil
    }
    
    func (s *Server) initK8SConfigStore(args *PilotArgs) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  6. pilot/pkg/bootstrap/servicecontroller.go

    			if err := s.initKubeRegistry(args); err != nil {
    				return err
    			}
    		default:
    			return fmt.Errorf("service registry %s is not supported", r)
    		}
    	}
    
    	// Defer running of the service controllers.
    	s.addStartFunc("service controllers", func(stop <-chan struct{}) error {
    		go serviceControllers.Run(stop)
    		return nil
    	})
    
    	return nil
    }
    
    // initKubeRegistry creates all the k8s service controllers under this pilot
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. pilot/pkg/bootstrap/monitoring.go

    		return m.monitoringServer.Close()
    	}
    	return nil
    }
    
    // initMonitor initializes the configuration for the pilot monitoring server.
    func (s *Server) initMonitor(addr string) error { // nolint: unparam
    	s.addStartFunc("monitoring", func(stop <-chan struct{}) error {
    		monitor, err := startMonitor(addr, s.monitoringMux)
    		if err != nil {
    			return err
    		}
    		go func() {
    			<-stop
    			err := monitor.Close()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 01 14:41:40 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top