from osm_nbi.validation import (
ValidationError,
validate_input,
- clustercreation_new_schema,
+ cluster_creation_new_schema,
cluster_edit_schema,
cluster_update_schema,
infra_controller_profile_create_new_schema,
infra_config_profile_create_edit_schema,
app_profile_create_edit_schema,
resource_profile_create_edit_schema,
- clusterregistration_new_schema,
+ cluster_registration_new_schema,
attach_dettach_profile_schema,
ksu_schema,
app_instance_schema,
class ClusterTopic(ACMTopic):
topic = "clusters"
topic_msg = "cluster"
- schema_new = clustercreation_new_schema
+ schema_new = cluster_creation_new_schema
schema_edit = attach_dettach_profile_schema
def __init__(self, db, fs, msg, auth):
class ClusterOpsTopic(ACMTopic):
topic = "clusters"
topic_msg = "cluster"
- schema_new = clusterregistration_new_schema
+ schema_new = cluster_registration_new_schema
def __init__(self, db, fs, msg, auth):
super().__init__(db, fs, msg, auth)
"additionalProperties": False,
}
-clustercreation_new_schema = {
+cluster_creation_new_schema = {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "cluster creation operation input schema",
"type": "object",
"additionalProperties": False,
}
-clusterregistration_new_schema = {
+cluster_registration_new_schema = {
"title": "cluster registration input schema",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"credentials": object_schema,
"vim_account": string_schema,
"bootstrap": bool_schema,
+ "openshift": bool_schema,
},
"required": ["name", "credentials", "vim_account"],
"additionalProperties": False,