Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getPodWithRetry (0.14 sec)

  1. cni/pkg/nodeagent/cni-watcher_test.go

    	assert.NoError(t, err)
    
    	client.RunAndWait(ctx.Done())
    
    	t.Run("found pod", func(t *testing.T) {
    		p, err := pluginServer.getPodWithRetry(log, pod.Name, pod.Namespace)
    		assert.NoError(t, err)
    		assert.Equal(t, p, pod)
    	})
    	t.Run("no pod", func(t *testing.T) {
    		p, err := pluginServer.getPodWithRetry(log, "fake", pod.Namespace)
    		assert.Error(t, err)
    		assert.Equal(t, p, nil)
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:35 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/cni-watcher.go

    	// but we have to invoke the K8S client anyway, so to be safe we check it again here to make sure we get the same result.
    	ambientPod, err := s.getPodWithRetry(log, addCmd.PodName, addCmd.PodNamespace)
    	if err != nil {
    		return err
    	}
    	log.Debugf("Pod: %s in ns: %s is enabled for ambient, adding to mesh.", addCmd.PodName, addCmd.PodNamespace)
    
    	var podIps []netip.Addr
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:35 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top