Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 988 for watcher (0.44 sec)

  1. cmd/kube-proxy/app/server.go

    	return err
    }
    
    // Creates a new filesystem watcher and adds watches for the config file.
    func (o *Options) initWatcher() error {
    	fswatcher := filesystem.NewFsnotifyWatcher()
    	err := fswatcher.Init(o.eventHandler, o.errorHandler)
    	if err != nil {
    		return err
    	}
    	err = fswatcher.AddWatch(o.ConfigFile)
    	if err != nil {
    		return err
    	}
    	o.watcher = fswatcher
    	return nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 13:27:41 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/dra/plugin/plugin.go

    	klog.InfoS("DeRegister DRA plugin", "name", pluginName)
    	deregisterPlugin(pluginName)
    	h.controller.removePlugin(pluginName)
    }
    
    // ValidatePlugin is called by kubelet's plugin watcher upon detection
    // of a new registration socket opened by DRA plugin.
    func (h *RegistrationHandler) ValidatePlugin(pluginName string, endpoint string, versions []string) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 19 16:27:05 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. pkg/kube/inject/webhook_test.go

    	env := model.Environment{
    		Watcher:     mesh.NewFixedWatcher(m),
    		ConfigStore: store,
    	}
    	env.SetPushContext(&model.PushContext{
    		ProxyConfigs: pcs,
    	})
    	watcher, err := NewFileWatcher(configFile, valuesFile)
    	if err != nil {
    		t.Fatalf("NewFileWatcher() failed: %v", err)
    	}
    	wh, err := NewWebhook(WebhookParameters{
    		Watcher: watcher,
    		Port:    port,
    		Env:     &env,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 39K bytes
    - Viewed (1)
  4. pkg/volume/flexvolume/flexvolume_test.go

    	}
    }
    
    func GetDynamicPluginProberWithoutWatcher(pluginDir string, runner exec.Interface) volume.DynamicPluginProber {
    	return &flexVolumeProber{
    		pluginDir: pluginDir,
    		watcher:   newFakeWatcher(),
    		factory:   pluginFactory{},
    		runner:    runner,
    		fs:        &utilfs.DefaultFs{},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  5. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/ProjectConnection.java

         * This will guarantee that Gradle picks up changes when trigerring a build, even
         * if the file system is too slow to notify file watchers.
         *
         * The caller shouldn't notify Gradle about changes detected by using other file
         * watchers, since Gradle already will be using its own file watcher.
         *
         * <p>The paths which are passed in need to be absolute, canonicalized paths.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/serviceentry/controller.go

    	networkIDCallback func(IP string, labels labels.Instance) network.ID
    
    	// Indicates whether this controller is for workload entries.
    	workloadEntryController bool
    
    	meshWatcher mesh.Watcher
    
    	model.NoopAmbientIndexes
    	model.NetworkGatewaysHandler
    }
    
    type Option func(*Controller)
    
    func WithClusterID(clusterID cluster.ID) Option {
    	return func(o *Controller) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  7. pkg/volume/csi/csi_attacher.go

    		return err
    	}
    	if successful {
    		return nil
    	}
    
    	watcher, err := c.k8s.StorageV1().VolumeAttachments().Watch(context.TODO(), metav1.SingleObject(metav1.ObjectMeta{Name: attachID, ResourceVersion: attach.ResourceVersion}))
    	if err != nil {
    		return fmt.Errorf("watch error:%v for volume %v", err, volumeHandle)
    	}
    
    	ch := watcher.ResultChan()
    	defer watcher.Stop()
    	for {
    		select {
    		case event, ok := <-ch:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 03 07:38:14 UTC 2023
    - 25.9K bytes
    - Viewed (0)
  8. pkg/kube/informerfactory/factory.go

    	}
    
    	return f.makeStartableInformer(informer, key)
    }
    
    func allowedOverlap(resource schema.GroupVersionResource) bool {
    	// We register an optimized Pod watcher for standard flow, but for the experimental analysis feature we need the full pod,
    	// so we start another watch.
    	// We may want to reconsider this if the analysis feature becomes stable.
    	return features.EnableAnalysis && resource == gvr.Pod
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  9. pilot/pkg/xds/ads.go

    	return conn.s.initConnection(node, conn, conn.ids)
    }
    
    func (conn *Connection) Close() {
    	conn.s.closeConnection(conn)
    }
    
    func (conn *Connection) Watcher() xds.Watcher {
    	return conn.proxy
    }
    
    func (conn *Connection) Process(req *discovery.DiscoveryRequest) error {
    	return conn.s.processRequest(req, conn)
    }
    
    func (conn *Connection) Push(ev any) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 08:29:05 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  10. pkg/config/mesh/kubemesh/watcher_test.go

    		key: "ingressClass: user",
    	})
    	cmUserinvalid := makeConfigMapWithName(extraCmName, "1", map[string]string{
    		key: "ingressClass: 1",
    	})
    	setup := func(t test.Failer) (corev1.ConfigMapInterface, mesh.Watcher) {
    		client := kube.NewFakeClient()
    		cms := client.Kube().CoreV1().ConfigMaps(namespace)
    		stop := test.NewStop(t)
    		w := NewConfigMapWatcher(client, namespace, name, key, true, stop)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 7.7K bytes
    - Viewed (0)
Back to top