"vim_accounts", {"name": content["vim_account"]}
)
- # Add optional fields if they exist in the request
-
+ # Add optional fields if they don't exist in the request
if "region_name" not in indata:
region_name = vim_account_details.get("config", {}).get("region_name")
if region_name:
version = "k8s_version" in content
if not version:
- content["k8s_version"] = "1.28"
+ content["k8s_version"] = "1.32"
+ # Additional cluster information, specific for each cluster type
+ content["config"] = indata.get("config", {})
content["node_count"] = indata.get("node_count", 0)
content["ksu_count"] = 0
- self.logger.info(f"cotent is : {content}")
+ self.logger.info(f"content is : {content}")
return content
def check_vim(self, session, name):
"credentials": cls_add_request["credentials"],
"vim_account": cls_add_request["vim_account"],
"bootstrap": cls_add_request["bootstrap"],
+ "openshift": cls_add_request.get("openshift", False),
"infra_controller_profiles": [
self._create_default_profiles(
rollback, session, indata, kwargs, headers, self.infra_contr_topic