Skip to content

Commit 1f26ee5

Browse files
authored
Merge branch 'main' into enh/instance-list
2 parents 7f86e33 + db6214d commit 1f26ee5

File tree

7 files changed

+42
-24
lines changed

7 files changed

+42
-24
lines changed

.cirun.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runners:
77
# Instance Type has 8 vcpu, 32 GiB memory, Up to 5 Gbps Network Performance
88
instance_type: t3a.2xlarge
99
# Custom Ubuntu 24.04 AMI with docker/hub pre-installed
10-
machine_image: ami-01b494943951b97c7
10+
machine_image: ami-028b291f28c6529f7
1111
# Region: Oregon
1212
region: us-west-2
1313
# Use Spot Instances for cost savings

src/_nebari/stages/infrastructure/template/local/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ resource "kind_cluster" "default" {
4848

4949
node {
5050
role = "general"
51-
image = "kindest/node:v1.29.2"
51+
image = "kindest/node:v1.32.0"
5252
}
5353
}
5454
}

src/_nebari/stages/kubernetes_initialize/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ def input_vars(self, stage_outputs: Dict[str, Dict[str, Any]]):
8989
for node_group in self.config.amazon_web_services.node_groups.values()
9090
)
9191
input_vars.gpu_node_group_names = [
92-
group for group in self.config.amazon_web_services.node_groups.keys()
92+
group
93+
for group in self.config.amazon_web_services.node_groups.keys()
94+
if self.config.amazon_web_services.node_groups[group].gpu
9395
]
9496
input_vars.aws_region = self.config.amazon_web_services.region
9597

src/_nebari/stages/kubernetes_initialize/template/modules/nvidia-installer/aws-nvidia-installer.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ resource "kubernetes_daemonset" "aws_nvidia_installer" {
6868
operator = "Exists"
6969
effect = "NoSchedule"
7070
}
71+
72+
toleration {
73+
key = "dedicated"
74+
operator = "Equal"
75+
value = "nebari"
76+
effect = "NoSchedule"
77+
}
7178
}
7279
}
7380

src/_nebari/subcommands/deploy.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ def deploy(
2323
"-c",
2424
help="nebari configuration yaml file path",
2525
),
26-
output_directory: pathlib.Path = typer.Option(
27-
"./",
28-
"-o",
29-
"--output",
30-
help="output directory",
31-
),
26+
# TODO: Remove -o/--output argument until it is safe to use
27+
# See: https://github.com/nebari-dev/nebari/issues/1716
28+
# output_directory: pathlib.Path = typer.Option(
29+
# "./",
30+
# "-o",
31+
# "--output",
32+
# help="output directory",
33+
# ),
3234
dns_provider: Optional[str] = typer.Option(
3335
None,
3436
"--dns-provider",
@@ -76,7 +78,8 @@ def deploy(
7678
config = read_configuration(config_filename, config_schema=config_schema)
7779

7880
if not disable_render:
79-
render_template(output_directory, config, stages)
81+
# Use hardcoded "./" since output_directory parameter was removed
82+
render_template("./", config, stages)
8083

8184
if skip_remote_state_provision:
8285
for stage in stages:

src/_nebari/subcommands/destroy.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ def destroy(
1616
config_filename: pathlib.Path = typer.Option(
1717
..., "-c", "--config", help="nebari configuration file path"
1818
),
19-
output_directory: pathlib.Path = typer.Option(
20-
"./",
21-
"-o",
22-
"--output",
23-
help="output directory",
24-
),
19+
# TODO: Remove -o/--output argument until it is safe to use
20+
# See: https://github.com/nebari-dev/nebari/issues/1716
21+
# output_directory: pathlib.Path = typer.Option(
22+
# "./",
23+
# "-o",
24+
# "--output",
25+
# help="output directory",
26+
# ),
2527
disable_render: bool = typer.Option(
2628
False,
2729
"--disable-render",
@@ -47,7 +49,8 @@ def _run_destroy(
4749
config = read_configuration(config_filename, config_schema=config_schema)
4850

4951
if not disable_render:
50-
render_template(output_directory, config, stages)
52+
# Use hardcoded "./" since output_directory parameter was removed
53+
render_template("./", config, stages)
5154

5255
destroy_configuration(config, stages)
5356

src/_nebari/subcommands/render.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ def nebari_subcommand(cli: typer.Typer):
1212
@cli.command(rich_help_panel="Additional Commands")
1313
def render(
1414
ctx: typer.Context,
15-
output_directory: pathlib.Path = typer.Option(
16-
"./",
17-
"-o",
18-
"--output",
19-
help="output directory",
20-
),
15+
# TODO: Remove -o/--output argument until it is safe to use
16+
# See: https://github.com/nebari-dev/nebari/issues/1716
17+
# output_directory: pathlib.Path = typer.Option(
18+
# "./",
19+
# "-o",
20+
# "--output",
21+
# help="output directory",
22+
# ),
2123
config_filename: pathlib.Path = typer.Option(
2224
...,
2325
"-c",
@@ -39,4 +41,5 @@ def render(
3941
config_schema = nebari_plugin_manager.config_schema
4042

4143
config = read_configuration(config_filename, config_schema=config_schema)
42-
render_template(output_directory, config, stages, dry_run=dry_run)
44+
# Use hardcoded "./" since output_directory parameter was removed
45+
render_template("./", config, stages, dry_run=dry_run)

0 commit comments

Comments
 (0)