Introduce Previous as PodLogOptions

This commit is contained in:
Dawn Chen
2015-05-07 14:10:10 -07:00
parent ecaf0874b2
commit ffa5947010
7 changed files with 19 additions and 0 deletions

View File

@@ -1330,6 +1330,9 @@ type PodLogOptions struct {
// If true, follow the logs for the pod
Follow bool
// If true, return previous terminated container logs
Previous bool
}
// PodExecOptions is the query options to a Pod's remote exec call

View File

@@ -1802,6 +1802,7 @@ func init() {
}
out.Container = in.Container
out.Follow = in.Follow
out.Previous = in.Previous
return nil
},
func(in *newer.PodLogOptions, out *PodLogOptions, s conversion.Scope) error {
@@ -1810,6 +1811,7 @@ func init() {
}
out.Container = in.Container
out.Follow = in.Follow
out.Previous = in.Previous
return nil
},
func(in *PodProxyOptions, out *newer.PodProxyOptions, s conversion.Scope) error {

View File

@@ -1320,6 +1320,9 @@ type PodLogOptions struct {
// If true, follow the logs for the pod
Follow bool `json:"follow,omitempty" description:"follow the log stream of the pod; defaults to false"`
// If true, return previous terminated container logs
Previous bool `json:"previous,omitempty" description:"return previous terminated container logs; defaults to false"`
}
// PodExecOptions is the query options to a Pod's remote exec call

View File

@@ -1188,6 +1188,9 @@ type PodLogOptions struct {
// If true, follow the logs for the pod
Follow bool `json:"follow,omitempty" description:"follow the log stream of the pod; defaults to false"`
// If true, return previous terminated container logs
Previous bool `json:"previous,omitempty" description:"return previous terminated container logs; defaults to false"`
}
// PodExecOptions is the query options to a Pod's remote exec call

View File

@@ -1208,6 +1208,9 @@ type PodLogOptions struct {
// If true, follow the logs for the pod
Follow bool `json:"follow,omitempty" description:"follow the log stream of the pod; defaults to false"`
// If true, return previous terminated container logs
Previous bool `json:"previous,omitempty" description:"return previous terminated container logs; defaults to false"`
}
// PodExecOptions is the query options to a Pod's remote exec call

View File

@@ -2544,6 +2544,7 @@ func convert_v1beta3_PodLogOptions_To_api_PodLogOptions(in *PodLogOptions, out *
}
out.Container = in.Container
out.Follow = in.Follow
out.Previous = in.Previous
return nil
}
@@ -2556,6 +2557,7 @@ func convert_api_PodLogOptions_To_v1beta3_PodLogOptions(in *newer.PodLogOptions,
}
out.Container = in.Container
out.Follow = in.Follow
out.Previous = in.Previous
return nil
}

View File

@@ -1320,6 +1320,9 @@ type PodLogOptions struct {
// If true, follow the logs for the pod
Follow bool `json:"follow,omitempty" description:"follow the log stream of the pod; defaults to false"`
// If true, return previous terminated container logs
Previous bool `json:"previous,omitempty" description:"return previous terminated container logs; defaults to false"`
}
// PodExecOptions is the query options to a Pod's remote exec call