default=None,
help="resource group in VIM account where the cluster will be created",
)
+@click.option(
+ "--bootstrap/--no-bootstrap",
+ required=False,
+ default=True,
+ help="bootstrap the cluster with Flux (prepare for GitOps) (default=True)",
+)
@click.pass_context
def cluster_create(
ctx,
description,
region_name,
resource_group,
+ bootstrap,
**kwargs
):
"""creates a K8s cluster
cluster["region_name"] = region_name
if resource_group:
cluster["resource_group"] = resource_group
+ cluster["bootstrap"] = bootstrap
ctx.obj.cluster.create(name, content_dict=cluster)
"--creds", prompt=True, help="credentials file, i.e. a valid `.kube/config` file"
)
@click.option("--description", default="", help="human readable description")
+@click.option(
+ "--bootstrap/--no-bootstrap",
+ required=False,
+ default=True,
+ help="bootstrap the cluster with Flux (prepare for GitOps) (default=True)",
+)
@click.pass_context
def cluster_register(
ctx,
vim_account,
creds,
description,
+ bootstrap,
):
"""registers a K8s cluster to OSM
# cluster["namespace"] = namespace
# if cni:
# cluster["cni"] = yaml.safe_load(cni)
+ cluster["bootstrap"] = bootstrap
ctx.obj.cluster.register(name, cluster)