From: Gabriel Cuba Date: Tue, 22 Mar 2022 19:01:26 +0000 (-0500) Subject: Feature 10904: Make all deployment methods optional for K8s cluster X-Git-Tag: v12.0.0rc1~10 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=commitdiff_plain;h=50e815b31413684b26655c481b84da6099c49da2 Feature 10904: Make all deployment methods optional for K8s cluster Change-Id: Ie299c87b647a25d838e698da841cc27e5bb478e2 Signed-off-by: Gabriel Cuba --- 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, },