- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for AddRunFunction (0.13 sec)
-
pilot/pkg/bootstrap/configcontroller.go
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) // Start informers again. This fixes the case where informers for namespace do not start,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 28 16:41:38 UTC 2024 - 14.1K bytes - Viewed (0) -
pilot/pkg/leaderelection/leaderelection_test.go
defaultWatcher: watcher, perRevision: perRevision, ttl: time.Second, cycle: atomic.NewInt32(0), enabled: true, } l.AddRunFunction(func(stop <-chan struct{}) { <-stop }) for _, fn := range fns { l.AddRunFunction(fn) } stop := make(chan struct{}) go l.Run(stop) retry.UntilOrFail(t, func() bool { return l.isLeader() == expectLeader
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 28 04:22:19 UTC 2024 - 11.4K bytes - Viewed (0) -
pilot/pkg/leaderelection/leaderelection.go
return l.revision == currentLeaderRevision && !l.remote && currentLeaderRemote } // AddRunFunction registers a function to run when we are the leader. These will be run asynchronously. // To avoid running when not a leader, functions should respect the stop channel. func (l *LeaderElection) AddRunFunction(f func(stop <-chan struct{})) *LeaderElection { l.runFns = append(l.runFns, f) return l }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 12 16:44:32 UTC 2024 - 9.7K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/multicluster.go
election := leaderelection. NewLeaderElectionMulticluster(options.SystemNamespace, m.serverID, leaderelection.NamespaceController, m.revision, !configCluster, client). AddRunFunction(func(leaderStop <-chan struct{}) { log.Infof("starting namespace controller for cluster %s", cluster.ID) nc := NewNamespaceController(client, m.caBundleWatcher)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 12.7K bytes - Viewed (0) -
pilot/pkg/bootstrap/server.go
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{}) { nodeUntainter := untaint.NewNodeUntainter(leaderStop, s.kubeClient, args.CniNamespace, args.Namespace) nodeUntainter.Run(leaderStop) }).Run(stop) return nil })
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 17:48:28 UTC 2024 - 46.3K bytes - Viewed (0)