Skip to content

Commit

Permalink
add quotes to annotation values from the chart template
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioan Damian committed Jan 23, 2021
1 parent e8ba33d commit 4c7485f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion charts/mobile-api/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: mobile-api
description: Helm chart for mobile-api app
type: application
version: 0.0.6
version: 0.0.7
appVersion: "0.0.31"
keywords:
- mobile-api
Expand Down
6 changes: 4 additions & 2 deletions charts/mobile-api/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ metadata:
name: {{ $fullName }}
labels:
{{- include "mobile-api.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
{{- if .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- range $key, $val := .Values.ingress.annotations }}
{{ $key }}: {{ $val | quote }}
{{- end }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
Expand Down
2 changes: 1 addition & 1 deletion charts/routing/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: routing
description: Helm chart for routing app
type: application
version: 0.0.6
version: 0.0.7
appVersion: "1.11.1"
keywords:
- routing
Expand Down
6 changes: 4 additions & 2 deletions charts/routing/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ metadata:
name: {{ $fullName }}
labels:
{{- include "routing.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
{{- if .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- range $key, $val := .Values.ingress.annotations }}
{{ $key }}: {{ $val | quote }}
{{- end }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
Expand Down

0 comments on commit 4c7485f

Please sign in to comment.