- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for GetPodIfAmbient (0.2 sec)
-
cni/pkg/nodeagent/informers.go
s.queue.Add(o) })) return s } // GetPodIfAmbient looks up a pod. It returns: // * An error if the pod cannot be found // * nil if the pod is found, but does not have ambient enabled // * the pod, if it is found and ambient is enabled func (s *InformerHandlers) GetPodIfAmbient(podName, podNamespace string) (*corev1.Pod, error) { ns := s.namespaces.Get(podNamespace, "") if ns == nil {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 11.7K bytes - Viewed (0) -
cni/pkg/nodeagent/cni-watcher.go
// if err is returned, we couldn't find the pod // if nil is returned, we found it but ambient is not enabled for ambientPod, err = s.handlers.GetPodIfAmbient(name, namespace); (err != nil) && (retries < maxStaleRetries); retries++ { log.Warnf("got an event for pod %s in namespace %s not found in current pod cache, retry %d of %d", name, namespace, retries, maxStaleRetries)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Jul 02 18:48:50 UTC 2024 - 6.7K bytes - Viewed (0) -
cni/pkg/nodeagent/informers_test.go
fs := &fakeServer{} fs.Start(ctx) server := getFakeDP(fs, client.Kube()) handlers := setupHandlers(ctx, client, server, "istio-system") client.RunAndWait(ctx.Done()) _, err := handlers.GetPodIfAmbient(pod.Name, ns.Name) assert.NoError(t, err) } func TestAmbientEnabledReturnsNoPodIfNotEnabled(t *testing.T) { setupLogging() NodeName = "testnode"
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 22.1K bytes - Viewed (0)