Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 36 for tailLines (0.19 sec)

  1. pkg/kubelet/kubelet_server_journal_windows.go

    			providers = append(providers, "'"+service+"'")
    		}
    	}
    	if len(providers) > 0 {
    		psCmd += fmt.Sprintf("; ProviderName=%s", strings.Join(providers, ","))
    	}
    	psCmd += "}"
    	if n.TailLines != nil {
    		psCmd += fmt.Sprintf(" -MaxEvents %d", *n.TailLines)
    	}
    	psCmd += " | Sort-Object TimeCreated"
    	if len(n.Pattern) > 0 {
    		psCmd += fmt.Sprintf(" | Where-Object -Property Message -Match '%s'", n.Pattern)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 15:54:36 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. pkg/kubelet/kubelet_server_journal_linux.go

    	}
    	if n.UntilTime != nil {
    		args = append(args, fmt.Sprintf("--until=%s", n.UntilTime.Format(dateLayout)))
    	}
    	if n.TailLines != nil {
    		args = append(args, "--pager-end", fmt.Sprintf("--lines=%d", *n.TailLines))
    	}
    	for _, service := range services {
    		if len(service) > 0 {
    			args = append(args, "--unit="+service)
    		}
    	}
    	if len(n.Pattern) > 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 11 01:09:28 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. pkg/apis/core/v1/conversion_test.go

    	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,
    		LimitBytes:   &limitBytes,
    	}
    	unversionedLogOptions := &core.PodLogOptions{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 05:34:15 UTC 2023
    - 21.7K bytes
    - Viewed (0)
  6. pkg/registry/core/pod/rest/log_test.go

    		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) {
    			t.Fatalf("Unexpected error: %v", 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)
  7. pkg/kubelet/server/server.go

    				Param(ws.QueryParameter("untilTime", "untilTime is an RFC3339 timestamp until which to show logs").DataType("string")).
    				Param(ws.QueryParameter("tailLines", "tailLines is used to retrieve the specified number of lines from the end of the log").DataType("string")).
    				Param(ws.QueryParameter("pattern", "pattern filters log entries by the provided regex pattern").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)
  8. pkg/registry/core/pod/strategy.go

    		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 {
    		params.Add("limitBytes", strconv.FormatInt(*opts.LimitBytes, 10))
    	}
    	loc := &url.URL{
    		Scheme:   nodeInfo.Scheme,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 17:51:48 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  9. pkg/kubelet/server/server_test.go

    		query        string
    		podLogOption *v1.PodLogOptions
    	}{
    		"without tail":     {"", &v1.PodLogOptions{}},
    		"with tail":        {"?tailLines=5", &v1.PodLogOptions{TailLines: pointer.Int64(5)}},
    		"with legacy tail": {"?tail=5", &v1.PodLogOptions{TailLines: pointer.Int64(5)}},
    		"with tail all":    {"?tail=all", &v1.PodLogOptions{}},
    		"with follow":      {"?follow=1", &v1.PodLogOptions{Follow: true}},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  10. pkg/apis/core/v1/zz_generated.conversion.go

    			return err
    		}
    	} else {
    		out.Timestamps = false
    	}
    	if values, ok := map[string][]string(*in)["tailLines"]; ok && len(values) > 0 {
    		if err := runtime.Convert_Slice_string_To_Pointer_int64(&values, &out.TailLines, s); err != nil {
    			return err
    		}
    	} else {
    		out.TailLines = nil
    	}
    	if values, ok := map[string][]string(*in)["limitBytes"]; 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)
Back to top