Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,432 for stopCh (0.25 sec)

  1. 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)
  2. pkg/kube/portforwarder.go

    }
    
    func (f *forwarder) Close() {
    	close(f.stopCh)
    	// Closing the stop channel should close anything
    	// opened by f.forwarder.ForwardPorts()
    }
    
    func (f *forwarder) ErrChan() <-chan error {
    	return f.errCh
    }
    
    func (f *forwarder) WaitForStop() {
    	<-f.stopCh
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 14 02:12:37 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/wait/wait.go

    	return channelContext{stopCh: parentCh}
    }
    
    var _ context.Context = channelContext{}
    
    // channelContext will behave as if the context were cancelled when stopCh is
    // closed.
    type channelContext struct {
    	stopCh <-chan struct{}
    }
    
    func (c channelContext) Done() <-chan struct{} { return c.stopCh }
    func (c channelContext) Err() error {
    	select {
    	case <-c.stopCh:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 19:14:11 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_volumes_test.go

    						RBDImage: "fake-device",
    					},
    				},
    			},
    		},
    	})
    
    	stopCh := runVolumeManager(kubelet)
    	defer close(stopCh)
    
    	kubelet.podManager.SetPods([]*v1.Pod{pod})
    
    	// Fake node status update
    	go simulateVolumeInUseUpdate(
    		v1.UniqueVolumeName("fake/fake-device"),
    		stopCh,
    		kubelet.volumeManager)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 17 16:53:28 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  5. 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)
  6. plugin/pkg/admission/resourcequota/admission_test.go

    	return createHandlerWithConfig(kubeClient, informerFactory, nil, stopCh)
    }
    
    func createHandlerWithConfig(kubeClient kubernetes.Interface, informerFactory informers.SharedInformerFactory, config *resourcequotaapi.Configuration, stopCh chan struct{}) (*resourcequota.QuotaAdmission, error) {
    	if config == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 84.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/apf_filter_test.go

    	})
    
    	stopCh := make(chan struct{})
    	defer close(stopCh)
    
    	informerFactory.Start(stopCh)
    	status := informerFactory.WaitForCacheSync(stopCh)
    	if names := unsynced(status); len(names) > 0 {
    		t.Fatalf("WaitForCacheSync did not successfully complete, resources=%#v", names)
    	}
    
    	go func() {
    		controller.Run(stopCh)
    	}()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/admission/initializer/initializer_test.go

    func TestWantsShutdownNotification(t *testing.T) {
    	stopCh := make(chan struct{})
    	target := initializer.New(nil, nil, nil, &TestAuthorizer{}, nil, stopCh, nil)
    	wantDrainedNotification := &WantDrainedNotification{}
    	target.Initialize(wantDrainedNotification)
    	if wantDrainedNotification.stopCh == nil {
    		t.Errorf("expected stopCh to be initialized but found nil")
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. pkg/controlplane/controller/kubernetesservice/controller.go

    		defer close(localStopCh)
    		select {
    		case <-stopCh: // from Start
    		case <-c.stopCh: // from Stop
    		}
    	}()
    
    	go c.Run(localStopCh)
    }
    
    // Stop cleans up this API Servers endpoint reconciliation leases so another master can take over more quickly.
    func (c *Controller) Stop() {
    	c.lock.Lock()
    	defer c.lock.Unlock()
    
    	select {
    	case <-c.stopCh:
    		return // only close once
    	default:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 16 16:33:01 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/plugin/pkg/audit/buffered/buffered.go

    	b.wg.Wait()
    
    	b.delegateBackend.Shutdown()
    }
    
    // processIncomingEvents runs a loop that collects events from the buffer. When
    // b.stopCh is closed, processIncomingEvents stops and closes the buffer.
    func (b *bufferedBackend) processIncomingEvents(stopCh <-chan struct{}) {
    	defer close(b.buffer)
    
    	var (
    		maxWaitChan  <-chan time.Time
    		maxWaitTimer *time.Timer
    	)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 9.1K bytes
    - Viewed (0)
Back to top