Skip to content

Commit

Permalink
Replace hub_type for dask_nodes now that there is no daskhub helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgianaElena committed Nov 22, 2024
1 parent b92be1c commit fa08604
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 152 deletions.
2 changes: 1 addition & 1 deletion config/clusters/templates/common/cluster-entry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ hubs:
- name: {{ hub_name }}
display_name: {{ cluster_name }} {{ hub_name }}
domain: {{ hub_name }}.{{ cluster_name }}.2i2c.cloud
helm_chart: {{ hub_type }}
helm_chart: "basehub"
helm_chart_values_files:
- common.values.yaml
- {{ hub_name }}.values.yaml
Expand Down
2 changes: 1 addition & 1 deletion config/clusters/templates/gcp/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ hubs: []
# # Tip: consider changing this to something more human friendly
# display_name: "{{ cluster_name }} - <hub_name>"
# domain: <hub_name>.{{ cluster_name }}.2i2c.cloud
# helm_chart: {{ hub_type }}
# helm_chart: basehub
# helm_chart_values_files:
# - common.values.yaml
# - <hub_name>.values.yaml
Expand Down
1 change: 0 additions & 1 deletion deployer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ for a GCP cluster.
- `cluster_name` - the name of the cluster
- `cluster_region`- the region where the cluster will be deployed
- `project_id` - the project ID of the GCP project
- `hub_type` (basehub/daskhub) - whether the hub deployed there would need dask or not
- `hub_name` - the name of the first hub which will be deployed in the cluster (usually `staging`)

The templates have a set of default features and define some opinionated characteristics for the cluster.
Expand Down
6 changes: 5 additions & 1 deletion deployer/commands/generate/dedicated_cluster/gcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ def gcp(
project_id: str = typer.Option(
..., prompt="Please insert the Project ID of the GCP project"
),
dask_nodes: bool = typer.Option(
False,
prompt='If this cluster needs dask nodes, please type "y", otherwise hit ENTER.',
),
force: bool = typer.Option(
False,
"--force",
Expand All @@ -79,7 +83,7 @@ def gcp(
# Also store the provider, as it's useful for some jinja templates
# to differentiate between them when rendering the configuration
"provider": "gcp",
"hub_type": "basehub",
"dask_nodes": dask_nodes,
"cluster_name": cluster_name,
"cluster_region": cluster_region,
"project_id": project_id,
Expand Down
1 change: 0 additions & 1 deletion deployer/commands/generate/hub_asset/cluster_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ def cluster_entry(
"""

vars = {
"hub_type": "basehub",
"cluster_name": cluster_name,
"hub_name": hub_name,
}
Expand Down
10 changes: 0 additions & 10 deletions eksctl/Udder-Cranberry1-Various

This file was deleted.

136 changes: 0 additions & 136 deletions eksctl/ubc-eoas copy.jsonnet

This file was deleted.

2 changes: 1 addition & 1 deletion terraform/gcp/projects/cluster.tfvars.template
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ notebook_nodes = {
}
}

{% if hub_type == "daskhub" %}
{% if dask_nodes == "daskhub" %}
dask_nodes = {
# A not yet fully established policy is being developed about using a single
# node pool, see https://github.com/2i2c-org/infrastructure/issues/2687.
Expand Down

0 comments on commit fa08604

Please sign in to comment.