Skip to content

Commit

Permalink
Fix cache service annotations indentation (#77)
Browse files Browse the repository at this point in the history
Also add the same test in front of it as other services

Signed-off-by: Victor Noel <[email protected]>
  • Loading branch information
victornoel authored Mar 31, 2020
1 parent d42bc0e commit 6c77557
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion charts/pomerium/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: pomerium
version: 7.0.0
version: 7.0.1
appVersion: 0.6.2
home: http://www.pomerium.io/
icon: https://www.pomerium.io/logo-long.svg
Expand Down
20 changes: 11 additions & 9 deletions charts/pomerium/templates/cache-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@ metadata:
{{- if .Values.service.labels }}
{{ toYaml .Values.service.labels | indent 4 }}
{{- end }}
annotations:
{{- if .Values.cache.service.annotations }}
{{- range $key, $value := .Values.cache.service.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- else if .Values.service.annotations }}
{{- range $key, $value := .Values.service.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- if or .Values.authenticate.service.annotations .Values.service.annotations }}
annotations:
{{- if .Values.cache.service.annotations }}
{{- range $key, $value := .Values.cache.service.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- else if .Values.service.annotations }}
{{- range $key, $value := .Values.service.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- end }}
spec:
{{- if .Values.service.cache.headless }}
Expand Down

0 comments on commit 6c77557

Please sign in to comment.