Skip to content

Commit a25d3ad

Browse files
authored
Merge pull request #905 from hangscer8/remove_backofflimit
Remove backofflimit
2 parents b7ae242 + b155278 commit a25d3ad

File tree

43 files changed

+19
-96
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+19
-96
lines changed

api/apis/clusteroperation/v1alpha1/types.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package v1alpha1
22

33
import (
4+
"github.com/kubean-io/kubean-api/apis"
45
corev1 "k8s.io/api/core/v1"
56
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
6-
"github.com/kubean-io/kubean-api/apis"
77
)
88

99
// +genclient
@@ -69,8 +69,6 @@ type Spec struct {
6969
// +optional
7070
ExtraArgs string `json:"extraArgs"`
7171
// +required
72-
BackoffLimit int `json:"backoffLimit"`
73-
// +required
7472
Image string `json:"image"`
7573
// +optional
7674
PreHook []HookAction `json:"preHook"`

api/charts/crds/kubean.io_clusteroperations.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ spec:
6060
activeDeadlineSeconds:
6161
format: int64
6262
type: integer
63-
backoffLimit:
64-
type: integer
6563
cluster:
6664
description: Cluster the name of Cluster.kubean.io.
6765
type: string
@@ -221,7 +219,6 @@ spec:
221219
required:
222220
- action
223221
- actionType
224-
- backoffLimit
225222
- cluster
226223
- image
227224
type: object

charts/kubean/crds/kubean.io_clusteroperations.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ spec:
6060
activeDeadlineSeconds:
6161
format: int64
6262
type: integer
63-
backoffLimit:
64-
type: integer
6563
cluster:
6664
description: Cluster the name of Cluster.kubean.io.
6765
type: string
@@ -221,7 +219,6 @@ spec:
221219
required:
222220
- action
223221
- actionType
224-
- backoffLimit
225222
- cluster
226223
- image
227224
type: object

docs/en/concepts/crds.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ metadata:
5959
spec:
6060
cluster: cluster1-demo
6161
image: ghcr.m.daocloud.io/kubean-io/spray-job:latest
62-
backoffLimit: 0
6362
actionType: playbook
6463
action: cluster.yml
6564
preHook:
@@ -92,7 +91,6 @@ Each field in this CRD is explained as follows:
9291
- `postHook`: what to do after executing the `action`. Allow multiple values, such as get the cluster status.
9392
- `actionType`: refer to the above `actionType`.
9493
- `action`: refer to the above `action`.
95-
- `backoffLimit`: times of retry if the `action` fails.
9694

9795
## Manifest
9896

docs/en/concepts/custom_action.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ metadata:
6060
spec:
6161
cluster: cluster1-demo
6262
image: ghcr.io/kubean-io/spray-job:latest
63-
backoffLimit: 0
6463
actionType: playbook
6564
action: myplaybook.yml
6665
actionSource: configmap

docs/en/usage/airgap.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ metadata:
190190
spec:
191191
cluster: sample
192192
image: ghcr.io/kubean-io/spray-job:latest
193-
backoffLimit: 0
194193
actionType: playbook
195194
action: cluster.yml
196195
preHook:

docs/en/usage/all_in_one_install.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ name: cluster-mini-install-ops
101101
spec:
102102
cluster: cluster-mini
103103
image: ghcr.m.daocloud.io/kubean-io/spray-job:v0.5.2 # kubean image version
104-
backoffLimit: 0
105104
actionType: playbook
106105
action: cluster.yml
107106
preHook:

docs/en/usage/install_without_root.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ data:
135135
spec:
136136
cluster: sample
137137
image: ghcr.m.daocloud.io/kubean-io/spray-job:latest
138-
backoffLimit: 0
139138
actionType: playbook
140139
action: cluster.yml
141140
preHook:

docs/en/usage/mirror_install.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ metadata:
110110
spec:
111111
cluster: cluster1-online
112112
image: ghcr.m.daocloud.io/kubean-io/spray-job:v0.5.2 # kubean image version
113-
backoffLimit: 0
114113
actionType: playbook
115114
action: cluster.yml
116115
preHook:

docs/en/usage/scale_worknode.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ metadata:
190190
spec:
191191
cluster: cluster-mini
192192
image: ghcr.m.daocloud.io/kubean-io/spray-job:<TAG> # Please replace <TAG> with the specified version, such as v0.4.9
193-
backoffLimit: 0
194193
actionType: playbook
195194
action: scale.yml
196195
extraArgs: --limit=node2
@@ -213,7 +212,6 @@ metadata:
213212
spec:
214213
cluster: cluster-mini
215214
image: ghcr.m.daocloud.io/kubean-io/spray-job:v0.5.2
216-
backoffLimit: 0
217215
actionType: playbook
218216
action: scale.yml
219217
extraArgs: --limit=node2
@@ -248,7 +246,6 @@ metadata:
248246
spec:
249247
cluster: cluster-mini
250248
image: ghcr.m.daocloud.io/kubean-io/spray-job:<TAG> # Please replace <TAG> with the specified version, such as v0.4.9
251-
backoffLimit: 0
252249
actionType: playbook
253250
action: remove-node.yml
254251
extraArgs: -e node=node2
@@ -269,7 +266,6 @@ metadata:
269266
spec:
270267
cluster: cluster-mini
271268
image: ghcr.m.daocloud.io/kubean-io/spray-job:v0.5.2
272-
backoffLimit: 0
273269
actionType: playbook
274270
action: remove-node.yml
275271
extraArgs: -e node=node2

0 commit comments

Comments
 (0)