X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Fvalidation.py;h=ae9644c44b458d0146b9ef0a43548511f6fcd7ce;hp=3fec364edf9b665fe11e07e2ef0a7b348e58e876;hb=50e815b31413684b26655c481b84da6099c49da2;hpb=8bf978ed8d25bfdc9fe91033b57555946fef8e36 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, },