Cluster register new_schema and bootstrap key
Change-Id: I145b0bcb725d01d005ce926df18a55824f5cf5a9
Signed-off-by: rshri <shrinithi.r@tataelxsi.co.in>
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py
index e2923a4..061bafa 100644
--- a/osm_nbi/validation.py
+++ b/osm_nbi/validation.py
@@ -1089,13 +1089,19 @@
"k8s_version": string_schema,
"node_size": string_schema,
"node_count": integer0_schema,
- "description": string_schema,
+ "description": description_schema,
"region_name": string_schema,
"resource_group": string_schema,
"infra_controller_profiles": shortname_schema,
"infra_config_profiles": shortname_schema,
"resource_profiles": shortname_schema,
"app_profiles": shortname_schema,
+ "created": string_schema,
+ "state": string_schema,
+ "operatingState": string_schema,
+ "git_name": string_schema,
+ "resourceState": string_schema,
+ "bootstrap": bool_schema,
},
"required": [
"name",
@@ -1103,10 +1109,25 @@
"k8s_version",
"node_size",
"node_count",
- "description",
],
"additionalProperties": False,
}
+clusterregistration_new_schema = {
+ "title": "cluster registration input schema",
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "schema_version": schema_version,
+ "schema_type": schema_type,
+ "name": name_schema,
+ "description": description_schema,
+ "credentials": object_schema,
+ "vim_account": string_schema,
+ "bootstrap": bool_schema,
+ },
+ "required": ["name", "credentials", "vim_account"],
+ "additionalProperties": False,
+}
infra_controller_profile_create_new_schema = {
"title": "infra profile creation operation input schema",