NAME: name of the K8s cluster
"""
logger.debug("")
- # kwargs = {k: v for k, v in kwargs.items() if v is not None}
cluster = {}
cluster["name"] = name
with open(creds, "r") as cf:
cluster["credentials"] = yaml.safe_load(cf.read())
- # cluster["k8s_version"] = version
cluster["vim_account"] = vim_account
- # cluster["nets"] = yaml.safe_load(k8s_nets)
- # if not (init_jujubundle and init_helm3):
- # cluster["deployment_methods"] = {
- # "juju-bundle": init_jujubundle,
- # "helm-chart-v3": init_helm3,
- # }
if description:
cluster["description"] = description
- # if namespace:
- # cluster["namespace"] = namespace
- # if cni:
- # cluster["cni"] = yaml.safe_load(cni)
cluster["bootstrap"] = bootstrap
ctx.obj.cluster.register(name, cluster)