From a47df5d5c70180c015f4bcb4c9d06e8fe7ab51db Mon Sep 17 00:00:00 2001 From: Shubham Chaudhary Date: Thu, 9 Feb 2023 16:14:27 +0530 Subject: [PATCH] chore(probe): updating retries to attempt (#443) Signed-off-by: Shubham Chaudhary --- api/litmuschaos/v1alpha1/chaosengine_types.go | 6 +++--- deploy/chaos_crds.yaml | 5 +++-- deploy/crds/chaosengine_crd.yaml | 5 +++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/api/litmuschaos/v1alpha1/chaosengine_types.go b/api/litmuschaos/v1alpha1/chaosengine_types.go index 6f0b59651..2e0aa7ee5 100644 --- a/api/litmuschaos/v1alpha1/chaosengine_types.go +++ b/api/litmuschaos/v1alpha1/chaosengine_types.go @@ -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"` diff --git a/deploy/chaos_crds.yaml b/deploy/chaos_crds.yaml index 85419d766..7b7816479 100644 --- a/deploy/chaos_crds.yaml +++ b/deploy/chaos_crds.yaml @@ -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 diff --git a/deploy/crds/chaosengine_crd.yaml b/deploy/crds/chaosengine_crd.yaml index 512a30191..b0cc2b5db 100644 --- a/deploy/crds/chaosengine_crd.yaml +++ b/deploy/crds/chaosengine_crd.yaml @@ -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