Skip to content

Commit

Permalink
[stable/2023.1] fix: fix ingress annotations format (#1443)
Browse files Browse the repository at this point in the history
Co-authored-by: Rico Lin <[email protected]>
  • Loading branch information
mnaser and ricolin authored Jun 25, 2024
1 parent 53faffa commit 4425641
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/ingress/templates/ingress.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ metadata:
namespace: {{ ingress_namespace | default('default') }}
annotations:
cert-manager.io/common-name: {{ ingress_host }}
{% if (ingress_annotations|length) > 0 or (ingress_global_annotations|length) > 0 %}
{{ ingress_annotations | combine(ingress_global_annotations, recursive=True) | to_nice_yaml | indent(4) }}
{% endif %}
spec:
ingressClassName: {{ ingress_class_name }}
rules:
Expand Down

0 comments on commit 4425641

Please sign in to comment.