- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 47 for Informer (0.31 sec)
-
pkg/controller/podautoscaler/horizontal.go
monitor monitor.Monitor // hpaLister is able to list/get HPAs from the shared cache from the informer passed in to // NewHorizontalController. hpaLister autoscalinglisters.HorizontalPodAutoscalerLister hpaListerSynced cache.InformerSynced // podLister is able to list/get Pods from the shared cache from the informer passed in to // NewHorizontalController. podLister corelisters.PodLister
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 63.6K bytes - Viewed (0) -
pkg/controller/cronjob/cronjob_controllerv2_test.go
} client := fake.NewSimpleClientset() informerFactory := informers.NewSharedInformerFactory(client, controller.NoResyncPeriodFunc()) _ = informerFactory.Batch().V1().CronJobs().Informer().GetIndexer().Add(tt.cronJob) for _, job := range tt.finishedJobs { _ = informerFactory.Batch().V1().Jobs().Informer().GetIndexer().Add(job) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 70.8K bytes - Viewed (0) -
pkg/controller/job/job_controller.go
jm.deleteJob(logger, obj) }, }); err != nil { return nil, fmt.Errorf("adding Job event handler: %w", err) } jm.jobLister = jobInformer.Lister() jm.jobStoreSynced = jobInformer.Informer().HasSynced if _, err := podInformer.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{ AddFunc: func(obj interface{}) { jm.addPod(logger, obj) }, UpdateFunc: func(oldObj, newObj interface{}) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 10 23:56:37 UTC 2024 - 77.6K bytes - Viewed (0) -
pkg/controller/podautoscaler/replica_calculator_test.go
metricsClient := metricsclient.NewRESTMetricsClient(testMetricsClient.MetricsV1beta1(), testCMClient, testEMClient) informerFactory := informers.NewSharedInformerFactory(testClient, controller.NoResyncPeriodFunc()) informer := informerFactory.Core().V1().Pods() replicaCalc := NewReplicaCalculator(metricsClient, informer.Lister(), defaultTestingTolerance, defaultTestingCPUInitializationPeriod, defaultTestingDelayOfInitialReadinessStatus)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Aug 19 03:31:34 UTC 2023 - 68.4K 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) -
pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go
testCtx := setup(t, nil, tc.claims, nil, nil, nil) if claim, ok := tc.newObj.(*resourcev1alpha2.ResourceClaim); ok { // Update the informer because the lister gets called and must have the claim. store := testCtx.informerFactory.Resource().V1alpha2().ResourceClaims().Informer().GetStore() if tc.oldObj == nil { require.NoError(t, store.Add(claim)) } else { require.NoError(t, store.Update(claim))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 27 07:57:10 UTC 2024 - 61.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/admission_test.go
func TestPluginNotReady(t *testing.T) { compiler := &fakeCompiler{} matcher := &fakeMatcher{ DefaultMatch: true, } // Show that an unstarted informer (or one that has failed its listwatch) // will show proper error from plugin ctx := setupTestCommon(t, compiler, matcher, false) err := ctx.Plugin.Dispatch( context.Background(),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 25 01:39:01 UTC 2024 - 63.8K bytes - Viewed (0) -
pkg/scheduler/framework/runtime/framework.go
func WithEventRecorder(recorder events.EventRecorder) Option { return func(o *frameworkOptions) { o.eventRecorder = recorder } } // WithInformerFactory sets informer factory for the scheduling frameworkImpl. func WithInformerFactory(informerFactory informers.SharedInformerFactory) Option { return func(o *frameworkOptions) { o.informerFactory = informerFactory } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 17 09:07:27 UTC 2024 - 60.9K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go
for _, pod := range tt.pods { podItems = append(podItems, *pod) } cs := clientsetfake.NewSimpleClientset(&v1.PodList{Items: podItems}) informerFactory := informers.NewSharedInformerFactory(cs, 0) podInformer := informerFactory.Core().V1().Pods().Informer() podInformer.GetStore().Add(tt.pod) for i := range tt.pods { podInformer.GetStore().Add(tt.pods[i]) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 15:52:16 UTC 2024 - 82.8K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.31.md
- Fix a race condition in transforming informer happening when objects were accessed during Resync operation ([#124344](https://github.com/ku...
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 20:34:14 UTC 2024 - 60.3K bytes - Viewed (0)