Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon committed Jul 28, 2023
1 parent 09d33c5 commit ef08e72
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: nginx
some: annotation
kontinuous/chartPath: project.fabrique.contrib.metabase
kontinuous/source: project/charts/fabrique/charts/contrib/charts/metabase/templates/ingress.yaml
kontinuous/deployment: test-ingress-annotations-feature-branch-1-ffac537e6cb-2rmdjfgo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: nginx
some: annotation
kontinuous/chartPath: project.fabrique.contrib.metabase
kontinuous/source: project/charts/fabrique/charts/contrib/charts/metabase/templates/ingress.yaml
kontinuous/deployment: test-ingress-custom-annotations-feature-branch-1-ffac-361bby73
Expand Down
7 changes: 6 additions & 1 deletion plugins/contrib/charts/metabase/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ metadata:
annotations:
kubernetes.io/ingress.class: nginx
{{ if .Values.global.ingress.annotations }}
{{ range $key, $val := (merge dict .Values.global.ingress.annotations .Values.ingress.annotations) }}
{{ range $key, $val := (merge dict .Values.global.ingress.annotations) }}
"{{ $key }}": {{ $val | quote }}
{{ end }}
{{ end }}
{{ if .Values.ingress.annotations }}
{{ range $key, $val := (merge dict .Values.ingress.annotations) }}
"{{ $key }}": {{ $val | quote }}
{{ end }}
{{ end }}
Expand Down

0 comments on commit ef08e72

Please sign in to comment.