From 50e815b31413684b26655c481b84da6099c49da2 Mon Sep 17 00:00:00 2001 From: Gabriel Cuba Date: Tue, 22 Mar 2022 14:01:26 -0500 Subject: [PATCH] Feature 10904: Make all deployment methods optional for K8s cluster Change-Id: Ie299c87b647a25d838e698da841cc27e5bb478e2 Signed-off-by: Gabriel Cuba --- osm_nbi/validation.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index 3fec364..ae9644c 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -718,6 +718,18 @@ sdn_external_port_schema = { } # K8s Clusters +k8scluster_deploy_method_schema = { + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "Deployment methods for K8s cluster", + "type": "object", + "properties": { + "helm-chart": {"type": "boolean"}, + "juju-bundle": {"type": "boolean"}, + "helm-chart-v3": {"type": "boolean"}, + }, + "additionalProperties": False, + "minProperties": 3, +} k8scluster_nets_schema = { "title": "k8scluster nets input schema", "$schema": "http://json-schema.org/draft-04/schema#", @@ -740,6 +752,7 @@ k8scluster_new_schema = { "vca_id": id_schema, "k8s_version": string_schema, "nets": k8scluster_nets_schema, + "deployment_methods": k8scluster_deploy_method_schema, "namespace": name_schema, "cni": nameshort_list_schema, }, -- 2.25.1