- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 342 for stopCh (0.24 sec)
-
pkg/controller/endpointslice/endpointslice_controller_test.go
for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { ns := metav1.NamespaceDefault client, esController := newController(t, []string{"node-1"}, tc.batchPeriod) stopCh := make(chan struct{}) defer close(stopCh) _, ctx := ktesting.NewTestContext(t) go esController.Run(ctx, 1) esController.serviceStore.Add(&v1.Service{ ObjectMeta: metav1.ObjectMeta{Name: "foo", Namespace: ns},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 08:33:32 UTC 2024 - 65.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/options/admission.go
admissionPostStartHook := func(context server.PostStartHookContext) error { discoveryRESTMapper.Reset() go utilwait.Until(discoveryRESTMapper.Reset, 30*time.Second, context.StopCh) return nil } err = c.AddPostStartHook("start-apiserver-admission-initializer", admissionPostStartHook) if err != nil { return fmt.Errorf("failed to add post start hook for policy admission: %w", err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun May 12 08:49:42 UTC 2024 - 9.7K bytes - Viewed (0) -
pkg/controller/job/job_controller_test.go
} manager.podStoreSynced = alwaysReady manager.jobStoreSynced = alwaysReady stopCh := make(chan struct{}) defer close(stopCh) podInformer := sharedInformers.Core().V1().Pods().Informer() go podInformer.Run(stopCh) cache.WaitForCacheSync(stopCh, podInformer.HasSynced) go manager.Run(context.TODO(), 1) // Create job but don't add it to the store.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 15:36:36 UTC 2024 - 229.2K bytes - Viewed (0) -
pkg/volume/plugins.go
} return nil, nil } func (pm *VolumePluginMgr) Run(stopCh <-chan struct{}) { kletHost, ok := pm.Host.(KubeletVolumeHost) if ok { // start informer for CSIDriver informerFactory := kletHost.GetInformerFactory() informerFactory.Start(stopCh) informerFactory.WaitForCacheSync(stopCh) } } // NewPersistentVolumeRecyclerPodTemplate creates a template for a recycler
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 06 16:13:15 UTC 2024 - 38.2K bytes - Viewed (0) -
pilot/pkg/xds/delta.go
if err := s.processDeltaRequest(req, con); err != nil { return err } } else { // Remote side closed connection or error processing the request. return <-con.ErrorCh() } case <-con.StopCh(): return nil default: } // If there wasn't already a request, poll for requests and pushes. Note: if we have a huge
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 14 04:34:37 UTC 2024 - 25.6K bytes - Viewed (0) -
pkg/kubelet/volumemanager/reconciler/reconciler_common.go
// If attach/detach management is enabled, the manager will also check if // volumes that should be attached are attached and volumes that should // be detached are detached and trigger attach/detach operations as needed. Run(stopCh <-chan struct{}) // StatesHasBeenSynced returns true only after syncStates process starts to sync // states at least once after kubelet starts StatesHasBeenSynced() bool }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 10:23:12 UTC 2024 - 14.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_whitebox_test.go
pred.AllowWatchBookmarks = true // run the collision test for 3 seconds to let ~2 buckets expire stopCh := make(chan struct{}) var watchErr error time.AfterFunc(3*time.Second, func() { close(stopCh) }) wg := &sync.WaitGroup{} wg.Add(1) go func() { defer wg.Done() for { select { case <-stopCh: return default: ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 10:12:02 UTC 2024 - 82.9K bytes - Viewed (0) -
pkg/kubelet/kubelet_test.go
stopCh := make(chan struct{}) go kubelet.volumeManager.Run(kubelet.sourcesReady, stopCh) return stopCh } // dirExists returns true if the path exists and represents a directory. func dirExists(path string) bool { s, err := os.Stat(path) if err != nil { return false } return s.IsDir() } // Sort pods by UID. type podsByUID []*v1.Pod
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 106.9K bytes - Viewed (0) -
pkg/controlplane/instance.go
kubernetesServiceCtrl.Start(hookContext.StopCh) return nil }) s.ControlPlane.GenericAPIServer.AddPreShutdownHookOrDie("stop-kubernetes-service-controller", func() error { kubernetesServiceCtrl.Stop() return nil }) if utilfeature.DefaultFeatureGate.Enabled(features.MultiCIDRServiceAllocator) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 03 11:50:04 UTC 2024 - 21.2K bytes - Viewed (0) -
pilot/pkg/serviceregistry/serviceentry/controller.go
s.workloadHandlers = append(s.workloadHandlers, h) } // Run is used by some controllers to execute background jobs after init is done. func (s *Controller) Run(stopCh <-chan struct{}) { s.edsQueue.Run(stopCh) } // HasSynced always returns true for SE func (s *Controller) HasSynced() bool { return true } // Services list declarations of all services in the system
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 15:31:09 UTC 2024 - 36.8K bytes - Viewed (0)