Skip to content

Commit

Permalink
make templating not the default behaviour, only use it in case values…
Browse files Browse the repository at this point in the history
….yaml.j2 is in use
  • Loading branch information
s4ke committed Jul 16, 2024
1 parent 08f7a79 commit 4014628
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# no default variables here
replica_count: 2
outside_port: 8899
home_dir: "{{ nothelm.env.HOME }}"
home_dir: "{{ nothelm.env.HOME }}/hi"
2 changes: 2 additions & 0 deletions nothelm/lib/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ def template_project(

if os.path.exists(f'{project_dir}/values.yaml'):
default_values = load_values(f'{project_dir}/values.yaml')
elif os.path.exists(f'{project_dir}/values.yaml.j2'):
default_values = load_values(f'{project_dir}/values.yaml.j2')
else:
default_values = dict()

Expand Down

0 comments on commit 4014628

Please sign in to comment.