- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ValidatePodLogOptions (0.3 sec)
-
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) -
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)