Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 347 for watcher (0.9 sec)

  1. pilot/pkg/bootstrap/servicecontroller.go

    func (s *Server) initServiceControllers(args *PilotArgs) error {
    	serviceControllers := s.ServiceController()
    
    	s.serviceEntryController = serviceentry.NewController(
    		s.configController, s.XDSServer,
    		s.environment.Watcher,
    		serviceentry.WithClusterID(s.clusterID),
    	)
    	serviceControllers.AddRegistry(s.serviceEntryController)
    
    	registered := sets.New[provider.ID]()
    	for _, r := range args.RegistryOptions.Registries {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/etcd3/watcher_test.go

    	}
    
    	w, err := store.watcher.Watch(ctx, "/abc", int64(102), requestOpts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer w.Stop()
    
    	actualEvent := <-w.ResultChan()
    	if actualEvent.Type != watch.Error {
    		t.Fatalf("Unexpected type of the event: %v, expected: %v", actualEvent.Type, watch.Error)
    	}
    	actualErr, ok := actualEvent.Object.(*metav1.Status)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go

    	wg.Wait()
    
    	if watchErr != nil {
    		t.Fatal(watchErr)
    	}
    
    	// wait out the expiration period and pop expired watchers
    	time.Sleep(2 * time.Second)
    	cacher.Lock()
    	defer cacher.Unlock()
    	cacher.bookmarkWatchers.popExpiredWatchersThreadUnsafe()
    	if len(cacher.bookmarkWatchers.watchersBuckets) != 0 {
    		numWatchers := 0
    		for bucketID, v := range cacher.bookmarkWatchers.watchersBuckets {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 82.9K bytes
    - Viewed (0)
  4. internal/config/etcd/etcd.go

    	if !cfg.Enabled {
    		return nil, nil
    	}
    	cli, err := clientv3.New(cfg.Config)
    	if err != nil {
    		return nil, err
    	}
    	cli.KV = namespace.NewKV(cli.KV, cfg.PathPrefix)
    	cli.Watcher = namespace.NewWatcher(cli.Watcher, cfg.PathPrefix)
    	cli.Lease = namespace.NewLease(cli.Lease, cfg.PathPrefix)
    	return cli, nil
    }
    
    func parseEndpoints(endpoints string) ([]string, bool, error) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. pkg/kube/inject/webhook.go

    	return &c, nil
    }
    
    // WebhookParameters configures parameters for the sidecar injection
    // webhook.
    type WebhookParameters struct {
    	// Watcher watches the sidecar injection configuration.
    	Watcher Watcher
    
    	// Port is the webhook port, e.g. typically 443 for https.
    	// This is mainly used for tests. Webhook runs on the port started by Istiod.
    	Port int
    
    	Env *model.Environment
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:59:39 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  6. pkg/xds/server.go

    	close(conn.initialized)
    }
    
    // ConnectionContext is used by the RPC event loop to respond to requests and pushes.
    type ConnectionContext interface {
    	XdsConnection() *Connection
    	Watcher() Watcher
    	// Initialize checks the first request.
    	Initialize(node *core.Node) error
    	// Close discards the connection.
    	Close()
    	// Process responds to a discovery request.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 20:55:20 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  7. pilot/pkg/leaderelection/leaderelection.go

    }
    
    func newLeaderElection(namespace, name, electionID, revision string, perRevision bool, remote bool, client kube.Client) *LeaderElection {
    	var watcher revisions.DefaultWatcher
    	if features.EnableLeaderElection {
    		watcher = revisions.NewDefaultWatcher(client, revision)
    	}
    	if name == "" {
    		hn, _ := os.Hostname()
    		name = fmt.Sprintf("unknown-%s", hn)
    	}
    	if perRevision && revision != "" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 16:44:32 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  8. security/pkg/nodeagent/sds/sdsservice.go

    }
    
    func (c *Context) Watcher() xds.Watcher {
    	return c.w
    }
    
    func (w *Watch) DeleteWatchedResource(string) {
    	w.Lock()
    	defer w.Unlock()
    	w.watch = nil
    }
    
    func (w *Watch) GetWatchedResource(string) *xds.WatchedResource {
    	w.Lock()
    	defer w.Unlock()
    	return w.watch
    }
    
    func (w *Watch) NewWatchedResource(typeURL string, names []string) {
    	w.Lock()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat May 25 00:20:04 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. security/pkg/k8s/chiron/utils.go

    	return append(certPEM, caCert...), caCert, nil
    }
    
    // Return signed CSR through a watcher. If no CSR is read, return nil.
    func readSignedCsr(client clientset.Interface, csr string, watchTimeout time.Duration) ([]byte, error) {
    	selector := fields.OneTermEqualSelector("metadata.name", csr).String()
    	// Setup a List+Watch, like informers do
    	// A simple Watch will fail if the cert is signed too quickly
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 18:11:22 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  10. pkg/webhooks/validation/controller/controller.go

    // shouldn't we be doing this for both validating and mutating webhooks...?
    func (c *Controller) startCaBundleWatcher(stop <-chan struct{}) {
    	if c.o.CABundleWatcher == nil {
    		return
    	}
    	id, watchCh := c.o.CABundleWatcher.AddWatcher()
    	defer c.o.CABundleWatcher.RemoveWatcher(id)
    
    	for {
    		select {
    		case <-watchCh:
    			c.syncAll()
    		case <-stop:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 28 16:52:19 UTC 2024
    - 11.3K bytes
    - Viewed (0)
Back to top