- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for SinceSeconds (0.2 sec)
-
pkg/apis/core/v1/validation/validation_test.go
LimitBytes: &limitBytesGreaterThan1, SinceSeconds: &sinceSecondsGreaterThan1, }, }, { name: "Invalid podLogOptions with zero or negative LimitBytes", podLogOptions: v1.PodLogOptions{ TailLines: &positiveLine, LimitBytes: &limitBytesLessThan1, SinceSeconds: &sinceSecondsGreaterThan1, }, }, { name: "Invalid podLogOptions with zero or negative SinceSeconds", 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) -
pkg/apis/core/v1/validation/validation.go
} switch { case opts.SinceSeconds != nil && opts.SinceTime != nil: allErrs = append(allErrs, field.Forbidden(field.NewPath(""), "at most one of `sinceTime` or `sinceSeconds` may be specified")) case opts.SinceSeconds != nil: if *opts.SinceSeconds < 1 { allErrs = append(allErrs, field.Invalid(field.NewPath("sinceSeconds"), *opts.SinceSeconds, "must be greater than 0")) } } return allErrs }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Oct 28 07:31:28 UTC 2023 - 6.7K bytes - Viewed (0) -
staging/src/k8s.io/api/testdata/v1.30.0/core.v1.PodLogOptions.json
{ "kind": "PodLogOptions", "apiVersion": "v1", "container": "containerValue", "follow": true, "previous": true, "sinceSeconds": 4, "sinceTime": "2005-01-01T01:01:01Z", "timestamps": true, "tailLines": 7, "limitBytes": 8, "insecureSkipTLSVerifyBackend": true
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 08:52:25 UTC 2024 - 281 bytes - Viewed (0) -
staging/src/k8s.io/api/testdata/v1.29.0/core.v1.PodLogOptions.yaml
apiVersion: v1 container: containerValue follow: true insecureSkipTLSVerifyBackend: true kind: PodLogOptions limitBytes: 8 previous: true sinceSeconds: 4 sinceTime: "2005-01-01T01:01:01Z" tailLines: 7
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 04:12:07 UTC 2023 - 218 bytes - Viewed (0) -
staging/src/k8s.io/api/testdata/v1.30.0/core.v1.PodLogOptions.yaml
apiVersion: v1 container: containerValue follow: true insecureSkipTLSVerifyBackend: true kind: PodLogOptions limitBytes: 8 previous: true sinceSeconds: 4 sinceTime: "2005-01-01T01:01:01Z" tailLines: 7
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 08:52:25 UTC 2024 - 218 bytes - Viewed (0) -
staging/src/k8s.io/api/testdata/v1.29.0/core.v1.PodLogOptions.json
{ "kind": "PodLogOptions", "apiVersion": "v1", "container": "containerValue", "follow": true, "previous": true, "sinceSeconds": 4, "sinceTime": "2005-01-01T01:01:01Z", "timestamps": true, "tailLines": 7, "limitBytes": 8, "insecureSkipTLSVerifyBackend": true
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 04:12:07 UTC 2023 - 281 bytes - Viewed (0) -
pkg/apis/core/v1/conversion_test.go
) func TestPodLogOptions(t *testing.T) { sinceSeconds := int64(1) sinceTime := metav1.NewTime(time.Date(2000, 1, 1, 12, 34, 56, 0, time.UTC).Local()) tailLines := int64(2) limitBytes := int64(3) versionedLogOptions := &v1.PodLogOptions{ Container: "mycontainer", Follow: true, Previous: true, SinceSeconds: &sinceSeconds, SinceTime: &sinceTime, Timestamps: true,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 10 05:34:15 UTC 2023 - 21.7K bytes - Viewed (0) -
pkg/registry/core/pod/rest/log_test.go
store := &genericregistry.Store{ Storage: genericregistry.DryRunnableStorage{Storage: s}, } logRest := &LogREST{Store: store, KubeletConn: nil} negativeOne := int64(-1) testCases := []*api.PodLogOptions{ {SinceSeconds: &negativeOne}, {TailLines: &negativeOne}, } for _, tc := range testCases { _, err := logRest.Get(genericapirequest.NewDefaultContext(), "test", tc) if !errors.IsInvalid(err) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 24 09:23:05 UTC 2023 - 1.6K bytes - Viewed (0) -
pkg/registry/core/pod/strategy.go
params.Add("follow", "true") } if opts.Previous { params.Add("previous", "true") } if opts.Timestamps { params.Add("timestamps", "true") } if opts.SinceSeconds != nil { params.Add("sinceSeconds", strconv.FormatInt(*opts.SinceSeconds, 10)) } if opts.SinceTime != nil { params.Add("sinceTime", opts.SinceTime.Format(time.RFC3339)) } if opts.TailLines != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 17:51:48 UTC 2024 - 29.8K bytes - Viewed (0) -
pkg/apis/core/validation/validation.go
} switch { case opts.SinceSeconds != nil && opts.SinceTime != nil: allErrs = append(allErrs, field.Forbidden(field.NewPath(""), "at most one of `sinceTime` or `sinceSeconds` may be specified")) case opts.SinceSeconds != nil: if *opts.SinceSeconds < 1 { allErrs = append(allErrs, field.Invalid(field.NewPath("sinceSeconds"), *opts.SinceSeconds, "must be greater than 0")) } } return allErrs
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 349.5K bytes - Viewed (0)