Skip to content

Commit a47df5d

Browse files
authored
chore(probe): updating retries to attempt (#443)
Signed-off-by: Shubham Chaudhary <[email protected]>
1 parent de7c74a commit a47df5d

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

api/litmuschaos/v1alpha1/chaosengine_types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,10 @@ type PostMethod struct {
377377
type RunProperty struct {
378378
//ProbeTimeout contains timeout for the probe
379379
ProbeTimeout int `json:"probeTimeout,omitempty"`
380-
// Interval contains the inverval for the probe
380+
// Interval contains the interval for the probe
381381
Interval int `json:"interval,omitempty"`
382-
// Retry contains the retry count for the probe
383-
Retry int `json:"retry,omitempty"`
382+
// Attempt contains the total attempt count for the probe
383+
Attempt int `json:"attempt"`
384384
//ProbePollingInterval contains time interval, for which continuous probe should be sleep
385385
// after each iteration
386386
ProbePollingInterval int `json:"probePollingInterval,omitempty"`

deploy/chaos_crds.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2223,16 +2223,17 @@ spec:
22232223
type: string
22242224
runProperties:
22252225
type: object
2226-
minProperties: 2
2226+
minProperties: 3
22272227
required:
22282228
- probeTimeout
22292229
- interval
2230+
- attempt
22302231
properties:
22312232
probeTimeout:
22322233
type: integer
22332234
interval:
22342235
type: integer
2235-
retry:
2236+
attempt:
22362237
type: integer
22372238
probePollingInterval:
22382239
type: integer

deploy/crds/chaosengine_crd.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2221,16 +2221,17 @@ spec:
22212221
type: string
22222222
runProperties:
22232223
type: object
2224-
minProperties: 2
2224+
minProperties: 3
22252225
required:
22262226
- probeTimeout
22272227
- interval
2228+
- attempt
22282229
properties:
22292230
probeTimeout:
22302231
type: integer
22312232
interval:
22322233
type: integer
2233-
retry:
2234+
attempt:
22342235
type: integer
22352236
probePollingInterval:
22362237
type: integer

0 commit comments

Comments
 (0)