@@ -6574,6 +6574,15 @@ type Preconditions struct {
6574
6574
UID * types.UID `json:"uid,omitempty" protobuf:"bytes,1,opt,name=uid,casttype=k8s.io/apimachinery/pkg/types.UID"`
6575
6575
}
6576
6576
6577
+ const (
6578
+ // LogStreamStdout is the stream type for stdout.
6579
+ LogStreamStdout = "Stdout"
6580
+ // LogStreamStderr is the stream type for stderr.
6581
+ LogStreamStderr = "Stderr"
6582
+ // LogStreamAll represents the combined stdout and stderr.
6583
+ LogStreamAll = "All"
6584
+ )
6585
+
6577
6586
// +k8s:conversion-gen:explicit-from=net/url.Values
6578
6587
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
6579
6588
// +k8s:prerelease-lifecycle-gen:introduced=1.0
@@ -6608,7 +6617,8 @@ type PodLogOptions struct {
6608
6617
// +optional
6609
6618
Timestamps bool `json:"timestamps,omitempty" protobuf:"varint,6,opt,name=timestamps"`
6610
6619
// If set, the number of lines from the end of the logs to show. If not specified,
6611
- // logs are shown from the creation of the container or sinceSeconds or sinceTime
6620
+ // logs are shown from the creation of the container or sinceSeconds or sinceTime.
6621
+ // Note that when "TailLines" is specified, "Stream" can only be set to nil or "All".
6612
6622
// +optional
6613
6623
TailLines * int64 `json:"tailLines,omitempty" protobuf:"varint,7,opt,name=tailLines"`
6614
6624
// If set, the number of bytes to read from the server before terminating the
@@ -6625,6 +6635,14 @@ type PodLogOptions struct {
6625
6635
// the actual log data coming from the real kubelet).
6626
6636
// +optional
6627
6637
InsecureSkipTLSVerifyBackend bool `json:"insecureSkipTLSVerifyBackend,omitempty" protobuf:"varint,9,opt,name=insecureSkipTLSVerifyBackend"`
6638
+
6639
+ // Specify which container log stream to return to the client.
6640
+ // Acceptable values are "All", "Stdout" and "Stderr". If not specified, "All" is used, and both stdout and stderr
6641
+ // are returned interleaved.
6642
+ // Note that when "TailLines" is specified, "Stream" can only be set to nil or "All".
6643
+ // +featureGate=PodLogsQuerySplitStreams
6644
+ // +optional
6645
+ Stream * string `json:"stream,omitempty" protobuf:"varint,10,opt,name=stream"`
6628
6646
}
6629
6647
6630
6648
// +k8s:conversion-gen:explicit-from=net/url.Values
0 commit comments