Skip to content

Commit

Permalink
chore(probe): updating retries to attempt (#443)
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Chaudhary <[email protected]>
  • Loading branch information
ispeakc0de committed Feb 9, 2023
1 parent de7c74a commit a47df5d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions api/litmuschaos/v1alpha1/chaosengine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,10 @@ type PostMethod struct {
type RunProperty struct {
//ProbeTimeout contains timeout for the probe
ProbeTimeout int `json:"probeTimeout,omitempty"`
// Interval contains the inverval for the probe
// Interval contains the interval for the probe
Interval int `json:"interval,omitempty"`
// Retry contains the retry count for the probe
Retry int `json:"retry,omitempty"`
// Attempt contains the total attempt count for the probe
Attempt int `json:"attempt"`
//ProbePollingInterval contains time interval, for which continuous probe should be sleep
// after each iteration
ProbePollingInterval int `json:"probePollingInterval,omitempty"`
Expand Down
5 changes: 3 additions & 2 deletions deploy/chaos_crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2223,16 +2223,17 @@ spec:
type: string
runProperties:
type: object
minProperties: 2
minProperties: 3
required:
- probeTimeout
- interval
- attempt
properties:
probeTimeout:
type: integer
interval:
type: integer
retry:
attempt:
type: integer
probePollingInterval:
type: integer
Expand Down
5 changes: 3 additions & 2 deletions deploy/crds/chaosengine_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2221,16 +2221,17 @@ spec:
type: string
runProperties:
type: object
minProperties: 2
minProperties: 3
required:
- probeTimeout
- interval
- attempt
properties:
probeTimeout:
type: integer
interval:
type: integer
retry:
attempt:
type: integer
probePollingInterval:
type: integer
Expand Down

0 comments on commit a47df5d

Please sign in to comment.