Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 478 for stopCh (0.14 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/plugin_test.go

    			wh.SetAuthenticationInfoResolverWrapper(webhooktesting.Wrapper(webhooktesting.NewAuthenticationInfoResolver(new(int32))))
    			wh.SetServiceResolver(webhooktesting.NewServiceResolver(*serverURL))
    			wh.SetExternalKubeClientSet(client)
    			wh.SetExternalKubeInformerFactory(informer)
    
    			informer.Start(stopCh)
    			informer.WaitForCacheSync(stopCh)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:52 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. pkg/proxy/config/config_test.go

    	stopCh := make(chan struct{})
    	defer close(stopCh)
    
    	sharedInformers := informers.NewSharedInformerFactory(client, time.Minute)
    
    	config := NewServiceConfig(ctx, sharedInformers.Core().V1().Services(), time.Minute)
    	handler := NewServiceHandlerMock()
    	config.RegisterEventHandler(handler)
    	go sharedInformers.Start(stopCh)
    	go config.Run(stopCh)
    
    	service := &v1.Service{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/plugin_test.go

    			wh.SetAuthenticationInfoResolverWrapper(webhooktesting.Wrapper(webhooktesting.NewAuthenticationInfoResolver(new(int32))))
    			wh.SetServiceResolver(webhooktesting.NewServiceResolver(*serverURL))
    			wh.SetExternalKubeClientSet(client)
    			wh.SetExternalKubeInformerFactory(informer)
    
    			informer.Start(stopCh)
    			informer.WaitForCacheSync(stopCh)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:52 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  4. pkg/kubelet/volumemanager/volume_manager_test.go

    			manager := newTestVolumeManager(t, tmpDir, podManager, kubeClient, node)
    
    			stopCh := runVolumeManager(manager)
    			defer close(stopCh)
    
    			podManager.SetPods([]*v1.Pod{pod})
    
    			// Fake node status update
    			go simulateVolumeInUseUpdate(
    				v1.UniqueVolumeName(node.Status.VolumesAttached[0].Name),
    				stopCh,
    				manager)
    
    			err = manager.WaitForAttachAndMount(context.Background(), pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/apiserver.go

    		go nonStructuralSchemaController.Run(5, context.StopCh)
    		go apiApprovalController.Run(5, context.StopCh)
    		go finalizingController.Run(5, context.StopCh)
    
    		discoverySyncedCh := make(chan struct{})
    		go discoveryController.Run(context.StopCh, discoverySyncedCh)
    		select {
    		case <-context.StopCh:
    		case <-discoverySyncedCh:
    		}
    
    		return nil
    	})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 14:31:43 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  6. pkg/controller/resourcequota/resource_quota_monitor.go

    }
    
    // monitor runs a Controller with a local stop channel.
    type monitor struct {
    	controller cache.Controller
    
    	// stopCh stops Controller. If stopCh is nil, the monitor is considered to be
    	// not yet started.
    	stopCh chan struct{}
    }
    
    // Run is intended to be called in a goroutine. Multiple calls of this is an
    // error.
    func (m *monitor) Run() {
    	m.controller.Run(m.stopCh)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  7. pkg/kubelet/util/manager/watch_based_manager.go

    	// lock is to ensure the access and modify of lastAccessTime, stopped, and immutable are thread safety,
    	// and protecting from closing stopCh multiple times.
    	lock           sync.Mutex
    	lastAccessTime time.Time
    	stopped        bool
    	immutable      bool
    	stopCh         chan struct{}
    }
    
    func (i *objectCacheItem) stop() bool {
    	i.lock.Lock()
    	defer i.lock.Unlock()
    	return i.stopThreadUnsafe()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/reconcilers/peer_endpoint_lease.go

    		}
    	}, c.endpointInterval, stopCh)
    }
    
    // Stop cleans up this apiserver's peer endpoint leases.
    func (c *PeerEndpointLeaseController) Stop() {
    	c.lock.Lock()
    	defer c.lock.Unlock()
    
    	select {
    	case <-c.stopCh:
    		return // only close once
    	default:
    		close(c.stopCh)
    	}
    	finishedReconciling := make(chan struct{})
    	go func() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/secure_serving.go

    			s.Cert.AddListener(dynamicCertificateController)
    		}
    		// generate a context from stopCh. This is to avoid modifying files which are relying on apiserver
    		// TODO: See if we can pass ctx to the current method
    		ctx, cancel := context.WithCancel(context.Background())
    		go func() {
    			select {
    			case <-stopCh:
    				cancel() // stopCh closed, so cancel our context
    			case <-ctx.Done():
    			}
    		}()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 20:54:07 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  10. pilot/pkg/config/kube/ingress/controller_test.go

    			t.Fatalf("timed out waiting for config")
    		}
    		return config.Config{}
    	}
    
    	controller.RegisterEventHandler(gvk.VirtualService, configHandler)
    	stopCh := make(chan struct{})
    	go controller.Run(stopCh)
    	defer close(stopCh)
    
    	client.RunAndWait(stopCh)
    
    	ingress.Create(&ingress1)
    	vs := wait()
    	if vs.Name != ingress1.Name+"-"+"virtualservice" || vs.Namespace != ingress1.Namespace {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 18:34:32 UTC 2023
    - 10.1K bytes
    - Viewed (0)
Back to top