Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 32 for sinceTime (0.17 sec)

  1. pkg/kubelet/kubelet_server_journal_linux.go

    func getLoggingCmd(n *nodeLogQuery, services []string) (string, []string, error) {
    	args := []string{
    		"--utc",
    		"--no-pager",
    		"--output=short-precise",
    	}
    	if n.SinceTime != nil {
    		args = append(args, fmt.Sprintf("--since=%s", n.SinceTime.Format(dateLayout)))
    	}
    	if n.UntilTime != nil {
    		args = append(args, fmt.Sprintf("--until=%s", n.UntilTime.Format(dateLayout)))
    	}
    	if n.TailLines != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 11 01:09:28 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. 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,
    		TailLines:    &tailLines,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 05:34:15 UTC 2023
    - 21.7K bytes
    - Viewed (0)
  3. pkg/apis/core/v1/validation/validation.go

    		allErrs = append(allErrs, field.Invalid(field.NewPath("limitBytes"), *opts.LimitBytes, "must be greater than 0"))
    	}
    	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 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  4. pkg/apis/core/v1/validation/validation_test.go

    			SinceSeconds: &sinceSecondsLessThan1,
    		},
    	}, {
    		name: "Invalid podLogOptions with both SinceSeconds and SinceTime set",
    		podLogOptions: v1.PodLogOptions{
    			TailLines:    &negativeLine,
    			LimitBytes:   &limitBytesGreaterThan1,
    			SinceSeconds: &sinceSecondsGreaterThan1,
    			SinceTime:    &timestamp,
    		},
    	}}
    	for _, tc := range errorCase {
    		t.Run(tc.name, func(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  5. pkg/registry/core/pod/strategy.go

    	}
    	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 {
    		params.Add("tailLines", strconv.FormatInt(*opts.TailLines, 10))
    	}
    	if opts.LimitBytes != 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)
  6. pkg/kubelet/server/server.go

    				Param(ws.QueryParameter("query", "query specifies services(s) or files from which to return logs").DataType("string")).
    				Param(ws.QueryParameter("sinceTime", "sinceTime is an RFC3339 timestamp from which to show logs").DataType("string")).
    				Param(ws.QueryParameter("untilTime", "untilTime is an RFC3339 timestamp until which to show logs").DataType("string")).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 40.1K bytes
    - Viewed (0)
  7. pkg/apis/core/v1/zz_generated.conversion.go

    			return err
    		}
    	} else {
    		out.SinceSeconds = nil
    	}
    	if values, ok := map[string][]string(*in)["sinceTime"]; ok && len(values) > 0 {
    		if err := metav1.Convert_Slice_string_To_Pointer_v1_Time(&values, &out.SinceTime, s); err != nil {
    			return err
    		}
    	} else {
    		out.SinceTime = nil
    	}
    	if values, ok := map[string][]string(*in)["timestamps"]; ok && len(values) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 472.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/core/v1/types.go

    	// If this value is in the future, no logs will be returned.
    	// Only one of sinceSeconds or sinceTime may be specified.
    	// +optional
    	SinceTime *metav1.Time `json:"sinceTime,omitempty" protobuf:"bytes,5,opt,name=sinceTime"`
    	// If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line
    	// of log output. Defaults to false.
    	// +optional
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 390.8K bytes
    - Viewed (0)
  9. pkg/apis/core/zz_generated.deepcopy.go

    	*out = *in
    	out.TypeMeta = in.TypeMeta
    	if in.SinceSeconds != nil {
    		in, out := &in.SinceSeconds, &out.SinceSeconds
    		*out = new(int64)
    		**out = **in
    	}
    	if in.SinceTime != nil {
    		in, out := &in.SinceTime, &out.SinceTime
    		*out = (*in).DeepCopy()
    	}
    	if in.TailLines != nil {
    		in, out := &in.TailLines, &out.TailLines
    		*out = new(int64)
    		**out = **in
    	}
    	if in.LimitBytes != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 181.5K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/core/v1/zz_generated.deepcopy.go

    	*out = *in
    	out.TypeMeta = in.TypeMeta
    	if in.SinceSeconds != nil {
    		in, out := &in.SinceSeconds, &out.SinceSeconds
    		*out = new(int64)
    		**out = **in
    	}
    	if in.SinceTime != nil {
    		in, out := &in.SinceTime, &out.SinceTime
    		*out = (*in).DeepCopy()
    	}
    	if in.TailLines != nil {
    		in, out := &in.TailLines, &out.TailLines
    		*out = new(int64)
    		**out = **in
    	}
    	if in.LimitBytes != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 181.9K bytes
    - Viewed (0)
Back to top