- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for GetPodIfAmbient (0.07 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/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)