Skip to content

Commit f502e35

Browse files
author
Klaus Ma
authored
Merge pull request volcano-sh#79 from volcano-sh/exit-code-handling
2 parents 31c8a7c + 3c93efb commit f502e35

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

pkg/apis/batch/v1alpha1/job.go

+6
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ type LifecyclePolicy struct {
147147
// +optional
148148
Event Event `json:"event,omitempty" protobuf:"bytes,2,opt,name=event"`
149149

150+
// The exit code of the pod container, controller will take action
151+
// according to this code.
152+
// Note: only one of `Event` or `ExitCode` can be specified.
153+
// +optional
154+
ExitCode *int32
155+
150156
// Timeout is the grace period for controller to take actions.
151157
// Default to nil (take action immediately).
152158
// +optional

pkg/apis/batch/v1alpha1/zz_generated.deepcopy.go

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)