Skip to content

Commit

Permalink
fix: ♻️ improve customization for ingress annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
tikis2023 authored and this-is-tobi committed Oct 28, 2024
1 parent ed36a06 commit d15fc30
Show file tree
Hide file tree
Showing 4 changed files with 9 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.ingressAnnotations | default([]))).items() %}
{{ key }}: {{ val }}
{% endfor %}
labels:
Expand Down
5 changes: 5 additions & 0 deletions roles/socle-config/files/crd-conf-dso.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,11 @@ spec:
imageTag:
description: Nexus version based on image tag (e.g., "3.56.0").
type: string
ingressAnnotations:
description: |
You can put here custom annotations for nexus ingress, they will be pushed into the nexus ingress rule combined to `dsc.ingress.annotations`
type: object
x-kubernetes-preserve-unknown-fields: true
type: object
prometheus:
description: Minimal configuration for prometheus CRDs
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{% if dsc.vault['values'].server.ha.enabled | default(true) %}-active{% endif +%}
port:
number: 8200

0 comments on commit d15fc30

Please sign in to comment.