Skip to content

Commit

Permalink
chore: rename comment on replicas
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Oct 16, 2024
1 parent 887ad11 commit 156b099
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
9 changes: 3 additions & 6 deletions api/v1/canary_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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[:]))
}

Expand Down
7 changes: 1 addition & 6 deletions config/deploy/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 1 addition & 6 deletions config/deploy/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 156b099

Please sign in to comment.