Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ReconcileCNIAddEvent (0.12 sec)

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

    	}
    	msg, err := processAddEvent(data)
    	if err != nil {
    		log.Errorf("failed to process CNI event payload: %v", err)
    		http.Error(w, err.Error(), http.StatusBadRequest)
    		return
    	}
    
    	if err := s.ReconcileCNIAddEvent(req.Context(), msg); err != nil {
    		log.WithLabels("ns", msg.PodNamespace, "name", msg.PodName).Errorf("failed to handle add event: %v", err)
    		http.Error(w, err.Error(), http.StatusInternalServerError)
    		return
    	}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Jul 02 18:48:50 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/cni-watcher_test.go

    	payload, _ := json.Marshal(valid)
    
    	// serialize our fake plugin event
    	addEvent, err := processAddEvent(payload)
    	assert.Equal(t, err, nil)
    
    	// Push it thru the handler
    	pluginServer.ReconcileCNIAddEvent(ctx, addEvent)
    
    	waitForMockCalls()
    
    	assertPodAnnotated(t, client, pod)
    	// Assert expected calls actually made
    	fs.AssertExpectations(t)
    }
    
    func TestGetPodWithRetry(t *testing.T) {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top