Skip to content

Commit

Permalink
update dependencies and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dcmcand committed Sep 5, 2024
1 parent 72541ff commit 3a7766d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ dependencies = [
"bcrypt==4.0.1",
"boto3==1.34.63",
"cloudflare==2.11.7",
"jinja2",
"kubernetes==27.2.0",
"pluggy==1.3.0",
"prompt-toolkit==3.0.36",
Expand All @@ -83,7 +84,6 @@ dev = [
"diagrams",
"escapism",
"importlib-metadata<5.0",
"jinja2",
"mypy==1.6.1",
"paramiko",
"pre-commit",
Expand Down
8 changes: 5 additions & 3 deletions src/_nebari/stages/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
from _nebari.stages.tf_objects import NebariTerraformState
from nebari.hookspecs import NebariStage

KUSTOMIZATION_TEMPLATE = "kustomization.yaml.tmpl"


class NebariKustomizeStage(NebariStage):
@property
Expand Down Expand Up @@ -76,12 +78,12 @@ def render(self) -> Dict[pathlib.Path, str]:
env = Environment(loader=FileSystemLoader(self.template_directory))

contents = {}
if not (self.template_directory / "kustomization.yaml.tmpl").exists():
if not (self.template_directory / KUSTOMIZATION_TEMPLATE).exists():
raise FileNotFoundError(
f"ERROR: After stage={self.name} "
"kustomization.yaml.tmpl template file not found in template directory"
f"{KUSTOMIZATION_TEMPLATE} template file not found in template directory"
)
kustomize_template = env.get_template("kustomization.yaml.tmpl")
kustomize_template = env.get_template(KUSTOMIZATION_TEMPLATE)
rendered_kustomization = kustomize_template.render(**self.kustomize_vars)
with open(self.template_directory / "kustomization.yaml", "w") as f:
f.write(rendered_kustomization)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ helmCharts:
repo: https://kuberhealthy.github.io/kuberhealthy/helm-repos
releaseName: kuberhealthy
namespace: {{ namespace }}
version: "{{ kuberhealthy_version }}" # v.2.7.1
version: "{{ kuberhealthy_helm_version }}"
valuesFile: values.yaml
valuesInline:
prometheus:
Expand Down

0 comments on commit 3a7766d

Please sign in to comment.