Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ValidatePodLogOptions (0.17 sec)

  1. pkg/apis/core/v1/validation/validation_test.go

    			TailLines:    &positiveLine,
    			SinceSeconds: &sinceSecondsGreaterThan1,
    		},
    	}}
    	for _, tc := range successCase {
    		t.Run(tc.name, func(t *testing.T) {
    			if errs := ValidatePodLogOptions(&tc.podLogOptions); len(errs) != 0 {
    				t.Errorf("unexpected error: %v", errs)
    			}
    		})
    	}
    
    	errorCase := []struct {
    		name          string
    		podLogOptions v1.PodLogOptions
    	}{{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  2. pkg/kubelet/server/server.go

    		response.WriteError(http.StatusBadRequest, fmt.Errorf(`{"message": "Unable to decode query."}`))
    		return
    	}
    	logOptions.TypeMeta = metav1.TypeMeta{}
    	if errs := validation.ValidatePodLogOptions(logOptions); len(errs) > 0 {
    		response.WriteError(http.StatusUnprocessableEntity, fmt.Errorf(`{"message": "Invalid request."}`))
    		return
    	}
    
    	pod, ok := s.host.GetPodByName(podNamespace, podID)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 40.1K bytes
    - Viewed (0)
Back to top