Skip to content

Commit

Permalink
Merge pull request #1702 from aufarg/add-autoscaler-ref-validation
Browse files Browse the repository at this point in the history
Add validation for `primaryScalerReplicas` field in the CRD
  • Loading branch information
stefanprodan authored Nov 23, 2024
2 parents 2ba00a3 + b719427 commit 92daf51
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions artifacts/flagger/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,11 @@ spec:
type: object
properties:
minReplicas:
type: number
type: integer
minimum: 1
maxReplicas:
type: number
type: integer
minimum: 1
ingressRef:
description: Ingress selector
type: object
Expand Down
6 changes: 4 additions & 2 deletions charts/flagger/crds/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,11 @@ spec:
type: object
properties:
minReplicas:
type: number
type: integer
minimum: 1
maxReplicas:
type: number
type: integer
minimum: 1
ingressRef:
description: Ingress selector
type: object
Expand Down
6 changes: 4 additions & 2 deletions kustomize/base/flagger/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,11 @@ spec:
type: object
properties:
minReplicas:
type: number
type: integer
minimum: 1
maxReplicas:
type: number
type: integer
minimum: 1
ingressRef:
description: Ingress selector
type: object
Expand Down

0 comments on commit 92daf51

Please sign in to comment.