Skip to content

Commit

Permalink
Introduce Previous as PodLogOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
dchen1107 committed May 8, 2015
1 parent 5efa28c commit b30bf07
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions pkg/api/v1/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions pkg/api/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions pkg/api/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions pkg/api/v1beta2/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions pkg/api/v1beta3/conversion_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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
}

Expand Down
3 changes: 3 additions & 0 deletions pkg/api/v1beta3/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b30bf07

Please sign in to comment.