- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for RunAndWait (0.07 sec)
-
cni/pkg/nodeagent/informers_test.go
ctx, mock.IsType(pod), util.GetPodIPsIfPresent(pod), "", ).Return(nil) server := getFakeDP(fs, client.Kube()) handlers := setupHandlers(ctx, client, server, "istio-system") client.RunAndWait(ctx.Done()) go handlers.Start() // label the namespace labelsPatch := []byte(fmt.Sprintf(`{"metadata":{"labels":{"%s":"%s"}}}`, label.IoIstioDataplaneMode.Name, constants.DataplaneModeAmbient))
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 22.1K bytes - Viewed (0) -
cni/pkg/nodeagent/cni-watcher_test.go
_, err := client.Kube().CoreV1().Namespaces().Patch(ctx, ns.Name, types.MergePatchType, labelsPatch, metav1.PatchOptions{}) assert.NoError(t, err) client.RunAndWait(ctx.Done()) payload, _ := json.Marshal(valid) // serialize our fake plugin event addEvent, err := processAddEvent(payload) assert.Equal(t, err, nil) // Push it thru the handler
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 7.6K bytes - Viewed (0) -
cni/pkg/repair/repair.go
} rc, err := NewRepairController(client, cfg) if err != nil { repairLog.Fatalf("Fatal error constructing repair controller: %+v", err) } go rc.Run(ctx.Done()) client.RunAndWait(ctx.Done()) } // Set up Kubernetes client using kubeconfig (or in-cluster config if no file provided) func clientSetup() (kube.Client, error) { config, err := kube.DefaultRestConfig("", "") if err != nil {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jun 28 19:12:54 UTC 2024 - 1.5K bytes - Viewed (0) -
cni/pkg/repair/repair_test.go
c, err := NewRepairController(tt.client, tt.config) assert.NoError(t, err) t.Cleanup(func() { assert.NoError(t, c.queue.WaitForClose(time.Second)) }) stop := test.NewStop(t) tt.client.RunAndWait(stop) go c.Run(stop) kube.WaitForCacheSync("test", stop, c.queue.HasSynced) assert.EventuallyEqual(t, func() map[string]string { havePods := c.pods.List(metav1.NamespaceAll, klabels.Everything())
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Oct 24 03:31:28 UTC 2023 - 10.6K bytes - Viewed (0) -
architecture/networking/controllers.md
Running the controller actually starts processing things. Normally, this just means running the queue. All informers created by `kube.Client` are kept track in the client, and started in one go with `RunAndWait` in one centralized call. As a result, each individual controllers should simply wait until informers have synced, then run the queue to start processing things. A queue is used to give a few properties:
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Feb 09 17:41:25 UTC 2024 - 4.9K bytes - Viewed (0) -
cni/pkg/nodeagent/server.go
if err != nil { return probeSet, err } probeSet.Flush() return probeSet, nil } func (s *Server) Start() { log.Info("CNI ambient server starting") s.kubeClient.RunAndWait(s.ctx.Done()) log.Info("CNI ambient server kubeclient started") pods := s.handlers.GetActiveAmbientPodSnapshot() err := s.dataplane.ConstructInitialSnapshot(pods) if err != nil {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Sep 25 20:54:34 UTC 2024 - 13.4K bytes - Viewed (0)