Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

    		}
    	}
    
    	return allErrs
    }
    
    // ValidatePodLogOptions checks if options that are set are at the correct
    // value. Any incorrect value will be returned to the ErrorList.
    func ValidatePodLogOptions(opts *v1.PodLogOptions) field.ErrorList {
    	allErrs := field.ErrorList{}
    	if opts.TailLines != nil && *opts.TailLines < 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  2. pkg/registry/core/pod/rest/log.go

    	logOpts, ok := opts.(*api.PodLogOptions)
    	if !ok {
    		return nil, fmt.Errorf("invalid options object: %#v", opts)
    	}
    
    	countSkipTLSMetric(logOpts.InsecureSkipTLSVerifyBackend)
    
    	if errs := validation.ValidatePodLogOptions(logOpts); len(errs) > 0 {
    		return nil, errors.NewInvalid(api.Kind("PodLogOptions"), name, errs)
    	}
    	location, transport, err := pod.LogLocation(ctx, r.Store, r.KubeletConn, name, logOpts)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 24 10:50:43 UTC 2023
    - 4.4K bytes
    - Viewed (0)
Back to top