Skip to content

Commit 46bf673

Browse files
committed
add maxRetry and patch
Signed-off-by: dongjiang <[email protected]>
1 parent 1309efc commit 46bf673

File tree

6 files changed

+105
-0
lines changed

6 files changed

+105
-0
lines changed

pkg/apis/flow/v1alpha1/jobflow_types.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ type JobFlowSpec struct {
3535
Flows []Flow `json:"flows,omitempty"`
3636
// +optional
3737
JobRetainPolicy RetainPolicy `json:"jobRetainPolicy,omitempty"`
38+
// Defaults to 3.
39+
//
40+
// +kubebuilder:default:=3
41+
// +optional
42+
MaxRetry *int64 `json:"maxRetry,omitempty"`
3843
}
3944

4045
// Flow defines the dependent of jobs
@@ -44,6 +49,13 @@ type Flow struct {
4449
Name string `json:"name"`
4550
// +optional
4651
DependsOn *DependsOn `json:"dependsOn,omitempty"`
52+
// +optional
53+
Patch *Patch `json:"patch,omitempty"`
54+
}
55+
56+
type Patch struct {
57+
// +optional
58+
Spec *v1alpha1.JobSpec `json:"spec,omitempty"`
4759
}
4860

4961
type DependsOn struct {

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

Lines changed: 31 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/client/applyconfiguration/flow/v1alpha1/flow.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/client/applyconfiguration/flow/v1alpha1/jobflowspec.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/client/applyconfiguration/flow/v1alpha1/patch.go

Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/client/applyconfiguration/utils.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)