From 189cfcee84874755fcfa41e5145c578a8f64803b Mon Sep 17 00:00:00 2001 From: hemanthnakkina <104809969+hemanthnakkina@users.noreply.github.com> Date: Wed, 17 Apr 2024 15:13:47 +0530 Subject: [PATCH] Update loadbalancer ip pool schema to support ip range (#336) Commit 6eb114f1dceac20af3863b30dca8de96e210d274 add support for ip ranges in k8sd config settings. However the helm chart ck-loadbalancer schema validation is not updated. Update ck-loadbalancer schema validation to validate ippool against cidr or start/stop or both. --- .../charts/ck-loadbalancer/values.schema.json | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/k8s/components/charts/ck-loadbalancer/values.schema.json b/k8s/components/charts/ck-loadbalancer/values.schema.json index 6a793b079..c8275d965 100644 --- a/k8s/components/charts/ck-loadbalancer/values.schema.json +++ b/k8s/components/charts/ck-loadbalancer/values.schema.json @@ -29,12 +29,25 @@ "properties": { "cidr": { "type": "string" + }, + "start": { + "type": "string" + }, + "stop": { + "type": "string" } - }, - "required": ["cidr"] - } - ] - } + }, + "anyOf": [ + { + "required": ["cidr"] + }, + { + "required": ["start", "stop"] + } + ] + } + ] + } }, "required": ["cidrs"] },