- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 197 for HasSynced (0.62 sec)
-
plugin/pkg/auth/authorizer/node/graph_populator.go
synced := []cache.InformerSynced{ podHandler.HasSynced, pvsHandler.HasSynced, attachHandler.HasSynced, } if slices != nil { sliceHandler, _ := slices.Informer().AddEventHandler(cache.ResourceEventHandlerFuncs{ AddFunc: g.addResourceSlice, UpdateFunc: nil, // Not needed, NodeName is immutable. DeleteFunc: g.deleteResourceSlice, }) synced = append(synced, sliceHandler.HasSynced) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:55 UTC 2024 - 6.5K bytes - Viewed (0) -
pilot/pkg/controllers/untaint/nodeuntainter.go
n.queue.AddObject(o.New) } }) } func (n *NodeUntainter) HasSynced() bool { return n.queue.HasSynced() } func (n *NodeUntainter) Run(stop <-chan struct{}) { kubelib.WaitForCacheSync("node untainer", stop, n.nodesClient.HasSynced, n.podsClient.HasSynced) n.queue.Run(stop) n.podsClient.ShutdownHandlers() n.nodesClient.ShutdownHandlers() }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Apr 13 00:50:31 UTC 2024 - 6.9K bytes - Viewed (0) -
pkg/test/csrctrl/controllers/csr_controller.go
} return nil } func (s *Signer) Run(stop <-chan struct{}) { kube.WaitForCacheSync("csr", stop, s.csrs.HasSynced) s.queue.Run(stop) } func (s *Signer) HasSynced() bool { return s.queue.HasSynced() } // isCertificateRequestApproved returns true if a certificate request has the // "Approved" condition and no "Denied" conditions; false otherwise.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 17:36:41 UTC 2023 - 3.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/internal/generic/controller_test.go
// unbuffered channel. require.False(t, myController.HasSynced()) // Wait for all enqueued reconciliations require.NoError(t, waitForReconcile(initialObject)) // Now it is safe to wait for it to Sync require.True(t, cache.WaitForCacheSync(testContext.Done(), myController.HasSynced)) // Updated object updatedObject := &unstructured.Unstructured{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 12 18:58:24 UTC 2024 - 16.1K bytes - Viewed (0) -
pkg/kubelet/util/manager/watch_based_manager.go
// watches too often. MinWatchTimeout: 30 * time.Minute, }, ) item := &objectCacheItem{ refMap: make(map[types.UID]int), store: store, reflector: reflector, hasSynced: func() (bool, error) { return store.hasSynced(), nil }, stopCh: make(chan struct{}), } // Don't start reflector if Kubelet is already shutting down. if !c.stopped { go item.startReflector() } return item }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 11.6K bytes - Viewed (0) -
pkg/queue/instance.go
Closed() <-chan struct{} } type Instance interface { baseInstance // HasSynced returns true once the queue has synced. // Syncing indicates that all items in the queue *before* Run was called have been processed. HasSynced() bool } type queueImpl struct { delay time.Duration tasks []*queueTask cond *sync.Cond closing bool
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jul 21 16:30:36 UTC 2023 - 4.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/internal/generic/controller.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 7.5K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/controller.go
}) }, }) } // HasSynced returns true after the initial state synchronization func (c *Controller) HasSynced() bool { return c.queue.HasSynced() || c.initialSyncTimedout.Load() } func (c *Controller) informersSynced() bool { if c.ambientIndex != nil && !c.ambientIndex.HasSynced() { return false } return c.namespaces.HasSynced() && c.services.HasSynced() && c.endpoints.slices.HasSynced() &&
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 41.2K bytes - Viewed (0) -
pilot/pkg/config/kube/crdclient/client_test.go
events.Inc() }) go c.Run(stop) fake.RunAndWait(stop) kube.WaitForCacheSync("test", stop, c.HasSynced) // This MUST have been called by the time HasSynced returns true assert.Equal(t, events.Load(), 1) } func TestAlternativeVersions(t *testing.T) { fake := kube.NewFakeClient() fake.RunAndWait(test.NewStop(t))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 02:58:52 UTC 2024 - 14.1K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex.go
} func (a *index) SyncAll() { a.networkUpdateTrigger.TriggerRecomputation() } func (a *index) HasSynced() bool { return a.services.Synced().HasSynced() && a.workloads.Synced().HasSynced() && a.waypoints.Synced().HasSynced() && a.authorizationPolicies.Synced().HasSynced() } type LookupNetwork func(endpointIP string, labels labels.Instance) network.ID
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 19 17:19:41 UTC 2024 - 15.8K bytes - Viewed (0)