import yaml
+import json
def gather_age_key(cluster):
public_subnet = op_params.get("public_subnet", [])
subnet = private_subnet + public_subnet
self.logger.info(f"Subnets: {subnet}")
- # formatted_subnet = f"{json.dumps(subnet)}"
+ formatted_subnet = f"{json.dumps(subnet)}"
# self.logger.info(f"Formatted Subnet: {formatted_subnet}")
# Create the ConfigMap for the subnets
# TODO: this should be done in a declarative way, not imperative
await self.create_configmap(
configmap_name,
"managed-resources",
- {"subnet": subnet},
+ {"subnet": formatted_subnet},
)
except Exception as e:
self.logger.info(f"Cannot create configmap {configmap_name}: {e}")