From b719427337ed33c83b08c687c0a3d3b2afe2f196 Mon Sep 17 00:00:00 2001 From: Aufar Gilbran Date: Wed, 11 Sep 2024 14:42:44 +0800 Subject: [PATCH] Add validation for primaryScalerReplicas counts Signed-off-by: Aufar Gilbran --- artifacts/flagger/crd.yaml | 6 ++++-- charts/flagger/crds/crd.yaml | 6 ++++-- kustomize/base/flagger/crd.yaml | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/artifacts/flagger/crd.yaml b/artifacts/flagger/crd.yaml index 99940df06..d7184dc24 100644 --- a/artifacts/flagger/crd.yaml +++ b/artifacts/flagger/crd.yaml @@ -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 diff --git a/charts/flagger/crds/crd.yaml b/charts/flagger/crds/crd.yaml index 99940df06..d7184dc24 100644 --- a/charts/flagger/crds/crd.yaml +++ b/charts/flagger/crds/crd.yaml @@ -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 diff --git a/kustomize/base/flagger/crd.yaml b/kustomize/base/flagger/crd.yaml index 99940df06..d7184dc24 100644 --- a/kustomize/base/flagger/crd.yaml +++ b/kustomize/base/flagger/crd.yaml @@ -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