- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 390 for Informer (0.12 sec)
-
plugin/pkg/admission/podtolerationrestriction/admission_test.go
t.Errorf("expected no error, got: %v", err) } } // newHandlerForTest returns the admission controller configured for testing. func newHandlerForTest(c kubernetes.Interface) (*Plugin, informers.SharedInformerFactory, error) { f := informers.NewSharedInformerFactory(c, 5*time.Minute) pluginConfig, err := loadConfiguration(nil) // must not fail if err != nil { return nil, nil, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 00:00:21 UTC 2024 - 16K bytes - Viewed (0) -
pkg/controller/endpoint/endpoints_controller_test.go
endpoints, informerFactory.Core().V1().Pods().Informer().GetStore(), informerFactory.Core().V1().Services().Informer().GetStore(), informerFactory.Core().V1().Endpoints().Informer().GetStore(), } } func newFakeController(ctx context.Context, batchPeriod time.Duration) (*fake.Clientset, *endpointController) { client := fake.NewSimpleClientset()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 06:51:56 UTC 2024 - 87.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/apf_controller.go
pli := fci.PriorityLevelConfigurations() fsi := fci.FlowSchemas() cfgCtlr.plLister = pli.Lister() cfgCtlr.plInformerSynced = pli.Informer().HasSynced cfgCtlr.fsLister = fsi.Lister() cfgCtlr.fsInformerSynced = fsi.Informer().HasSynced pli.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{ AddFunc: func(obj interface{}) { pl := obj.(*flowcontrol.PriorityLevelConfiguration)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 48.8K bytes - Viewed (0) -
pkg/controller/tainteviction/taint_eviction_test.go
func setupNewController(ctx context.Context, fakeClientSet *fake.Clientset) (*Controller, cache.Indexer, cache.Indexer) { informerFactory := informers.NewSharedInformerFactory(fakeClientSet, 0) podIndexer := informerFactory.Core().V1().Pods().Informer().GetIndexer() nodeIndexer := informerFactory.Core().V1().Nodes().Informer().GetIndexer()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 31.3K bytes - Viewed (0) -
pkg/scheduler/framework/preemption/preemption.go
logger := klog.FromContext(ctx) // 0) Fetch the latest version of <pod>. // It's safe to directly fetch pod here. Because the informer cache has already been // initialized when creating the Scheduler obj. // However, tests may need to manually initialize the shared pod informer. podNamespace, podName := pod.Namespace, pod.Name pod, err := ev.PodLister.Pods(pod.Namespace).Get(pod.Name) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 15:52:16 UTC 2024 - 25.1K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/pod.go
return nil } res := make([]*v1.Pod, 0, len(keys)) for _, key := range keys { p := pc.getPodByKey(key) // Subtle race condition. getPodKeys is our cache over pods, while getPodByKey hits the informer cache. // if these are out of sync, p may be nil (pod was deleted). if p != nil { res = append(res, p) } } return res } // getPodByKey returns the pod by key
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 10.8K bytes - Viewed (0) -
pkg/volume/csi/csi_block_test.go
if err != nil { t.Fatalf("Failed to create a fakeDriver: %v", err) } // after the driver is created, create the plugin. newTestPlugin waits for the informer to sync, // such that csiMapper.SetUpDevice below sees the VolumeAttachment object in the lister. plug, tmpDir := newTestPlugin(t, fakeClient) defer os.RemoveAll(tmpDir)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 11 06:07:40 UTC 2023 - 26.5K bytes - Viewed (0) -
plugin/pkg/admission/serviceaccount/admission.go
s.client = cl } // SetExternalKubeInformerFactory registers informers with the plugin func (s *Plugin) SetExternalKubeInformerFactory(f informers.SharedInformerFactory) { serviceAccountInformer := f.Core().V1().ServiceAccounts() s.serviceAccountLister = serviceAccountInformer.Lister() s.SetReadyFunc(func() bool { return serviceAccountInformer.Informer().HasSynced() }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 12 17:49:30 UTC 2024 - 18.6K bytes - Viewed (0) -
cmd/kube-proxy/app/server.go
// function must configure its shared informer event handlers first. informerFactory.Start(wait.NeverStop) // Make an informer that selects for our nodename. currentNodeInformerFactory := informers.NewSharedInformerFactoryWithOptions(s.Client, s.Config.ConfigSyncPeriod.Duration, informers.WithTweakListOptions(func(options *metav1.ListOptions) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 26 13:27:41 UTC 2024 - 46.8K bytes - Viewed (0) -
pkg/kube/kclient/client_test.go
namespaces.AddEventHandler(clienttest.TrackerHandler(tracker)) // This is not great! But seems the best we can do. // For namespaces specifically we have an interesting race. // We will have 2+ informer handlers: the filter itself, and N controllers. // The ordering of handlers if random. If the filter receives the event first, it could suppress re-sending the namespace event,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 11 15:12:54 UTC 2024 - 17.2K bytes - Viewed (0)