Skip to content

Commit

Permalink
Merge pull request #79 from volcano-sh/exit-code-handling
Browse files Browse the repository at this point in the history
Exit code error handling
  • Loading branch information
Klaus Ma authored Apr 8, 2019
2 parents 99ccfd1 + 69fc43e commit d5f314a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/apis/batch/v1alpha1/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ type LifecyclePolicy struct {
// +optional
Event Event `json:"event,omitempty" protobuf:"bytes,2,opt,name=event"`

// The exit code of the pod container, controller will take action
// according to this code.
// Note: only one of `Event` or `ExitCode` can be specified.
// +optional
ExitCode *int32

// Timeout is the grace period for controller to take actions.
// Default to nil (take action immediately).
// +optional
Expand Down
5 changes: 5 additions & 0 deletions pkg/apis/batch/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d5f314a

Please sign in to comment.