Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewLeaderElection (0.15 sec)

  1. pilot/pkg/leaderelection/leaderelection.go

    	l.runFns = append(l.runFns, f)
    	return l
    }
    
    // NewLeaderElection creates a leader election instance with the provided ID. This follows standard Kubernetes
    // elections, with one difference: the "default" revision will steal the lock from other revisions.
    func NewLeaderElection(namespace, name, electionID, revision string, client kube.Client) *LeaderElection {
    	return newLeaderElection(namespace, name, electionID, revision, false, false, client)
    }
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 16:44:32 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. pilot/pkg/bootstrap/configcontroller.go

    			ingress.NewController(s.kubeClient, s.environment.Watcher, args.RegistryOptions.KubeOptions))
    
    		s.addTerminatingStartFunc("ingress status", func(stop <-chan struct{}) error {
    			leaderelection.
    				NewLeaderElection(args.Namespace, args.PodName, leaderelection.IngressController, args.Revision, s.kubeClient).
    				AddRunFunction(func(leaderStop <-chan struct{}) {
    					ingressSyncer := ingress.NewStatusSyncer(s.environment.Watcher, s.kubeClient)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. pilot/pkg/bootstrap/server.go

    	}
    	return nil
    }
    
    func (s *Server) initNodeUntaintController(args *PilotArgs) {
    	s.addStartFunc("nodeUntainter controller", func(stop <-chan struct{}) error {
    		go leaderelection.
    			NewLeaderElection(args.Namespace, args.PodName, leaderelection.NodeUntaintController, args.Revision, s.kubeClient).
    			AddRunFunction(func(leaderStop <-chan struct{}) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 46.3K bytes
    - Viewed (0)
Back to top