Skip to content

Commit

Permalink
argocd, nexus and vault ingress annotations combined to the global in…
Browse files Browse the repository at this point in the history
…gress rules
  • Loading branch information
ttikis-dgfip committed Oct 21, 2024
1 parent bf029de commit 3418c19
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion roles/argocd/templates/ingress.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: argo-ingress
namespace: {{ dsc.argocd.namespace }}
annotations:
{% for key, val in dsc.ingress.annotations.items() %}
{% for key, val in (dsc.ingress.annotations | combine(dsc.argocd['values'].server.ingress.annotations | default([]))).items() %}
{{ key }}: {{ val }}
{% endfor %}
labels:
Expand Down
2 changes: 1 addition & 1 deletion roles/nexus/templates/ingress.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: nexus-alternative
namespace: {{ dsc.nexus.namespace }}
annotations:
{% for key, val in dsc.ingress.annotations.items() %}
{% for key, val in (dsc.ingress.annotations | combine(dsc.nexus['values'].server.ingress.annotations | default([]))).items() %}
{{ key }}: {{ val }}
{% endfor %}
labels:
Expand Down
4 changes: 2 additions & 2 deletions roles/vault/templates/ingress.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: vault-ingress
namespace: {{ dsc.vault.namespace }}
annotations:
{% for key, val in dsc.ingress.annotations.items() %}
{% for key, val in (dsc.ingress.annotations | combine(dsc.vault['values'].server.ingress.annotations | default([]))).items() %}
{{ key }}: {{ val }}
{% endfor %}
labels:
Expand Down Expand Up @@ -32,6 +32,6 @@ spec:
pathType: Prefix
backend:
service:
name: {{ dsc_name }}-vault-active
name: {{ dsc_name }}-vault
port:
number: 8200

0 comments on commit 3418c19

Please sign in to comment.