Skip to content

Commit 054c3e2

Browse files
authored
adding backend compatibility to probe retry (#446)
Signed-off-by: Shubham Chaudhary <[email protected]>
1 parent 66266db commit 054c3e2

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

api/litmuschaos/v1alpha1/chaosengine_types.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,10 @@ type RunProperty struct {
379379
ProbeTimeout int `json:"probeTimeout,omitempty"`
380380
// 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"`
382384
// Attempt contains the total attempt count for the probe
383-
Attempt int `json:"attempt"`
385+
Attempt int `json:"attempt,omitempty"`
384386
//ProbePollingInterval contains time interval, for which continuous probe should be sleep
385387
// after each iteration
386388
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: 3
2226+
minProperties: 2
22272227
required:
22282228
- probeTimeout
22292229
- interval
2230-
- attempt
22312230
properties:
22322231
probeTimeout:
22332232
type: integer
22342233
interval:
22352234
type: integer
2235+
retry:
2236+
type: integer
22362237
attempt:
22372238
type: integer
22382239
probePollingInterval:

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: 3
2224+
minProperties: 2
22252225
required:
22262226
- probeTimeout
22272227
- interval
2228-
- attempt
22292228
properties:
22302229
probeTimeout:
22312230
type: integer
22322231
interval:
22332232
type: integer
2233+
retry:
2234+
type: integer
22342235
attempt:
22352236
type: integer
22362237
probePollingInterval:

0 commit comments

Comments
 (0)