diff --git a/api/v1/canary_types.go b/api/v1/canary_types.go index f0a40b7b9..7b4e5a8fe 100644 --- a/api/v1/canary_types.go +++ b/api/v1/canary_types.go @@ -40,11 +40,8 @@ const ( // CanarySpec defines the desired state of Canary type CanarySpec struct { //+kubebuilder:default=1 - // Replicas to scale down the canary. - // - // This is a pointer to distinguish between explicit - // zero and not specified. Defaults to 1. - // +optional + //+optional + // Replicas pauses the canary if = 0. Replicas *int `yaml:"replicas,omitempty" json:"replicas,omitempty"` Env map[string]VarSource `yaml:"env,omitempty" json:"env,omitempty"` @@ -358,7 +355,7 @@ func (c Canary) GetKey(check external.Check) string { if err != nil { logger.Debugf("error marshalling the check") } - var hash = md5.Sum(data) + hash := md5.Sum(data) return fmt.Sprintf("%s/%s:%s/%s:%s", c.ID(), check.GetType(), check.GetName(), c.GetDescription(check), hex.EncodeToString(hash[:])) } diff --git a/config/deploy/crd.yaml b/config/deploy/crd.yaml index 923d13f7d..248bf77a6 100644 --- a/config/deploy/crd.yaml +++ b/config/deploy/crd.yaml @@ -11906,12 +11906,7 @@ spec: type: array replicas: default: 1 - description: |- - Replicas to scale down the canary. - - - This is a pointer to distinguish between explicit - zero and not specified. Defaults to 1. + description: Replicas pauses the canary if = 0. type: integer restic: items: diff --git a/config/deploy/manifests.yaml b/config/deploy/manifests.yaml index 6f6c305ca..168a28cbd 100644 --- a/config/deploy/manifests.yaml +++ b/config/deploy/manifests.yaml @@ -11905,12 +11905,7 @@ spec: type: array replicas: default: 1 - description: |- - Replicas to scale down the canary. - - - This is a pointer to distinguish between explicit - zero and not specified. Defaults to 1. + description: Replicas pauses the canary if = 0. type: integer restic: items: