Skip to content

Commit 0778628

Browse files
MK8S-25: Pass archives variable to nginx configuration template
The nginx.conf.j2 template uses the archives variable to generate location directives for each saltenv, but the variable wasn't being passed in the template context. This caused Salt unit tests to fail. Fix by adding archives to the defaults context in configured.sls.
1 parent ba95fce commit 0778628

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

salt/metalk8s/repo/configured.sls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Generate repositories nginx configuration:
1515
- defaults:
1616
listening_address: {{ grains.metalk8s.control_plane_ip }}
1717
listening_port: {{ repo.port }}
18+
archives: {{ archives }}
1819
1920
Deploy common container registry nginx configuration:
2021
file.managed:

0 commit comments

Comments
 (0)