Skip to content

Commit

Permalink
Added nginx support for ingress.protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianeicher committed Jan 19, 2022
1 parent bfab4cb commit d83c873
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions charts/generic-service/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ metadata:
name: {{ include "generic-service.fullname" . }}
labels: {{ include "generic-service.default-labels" . | nindent 4 }}
annotations:
{{- if .Values.ingress.class }}
{{- if .Values.ingress.class }}
kubernetes.io/ingress.class: {{ .Values.ingress.class }}
{{- end }}
{{- end }}
{{- if eq .Values.ingress.class "nginx" }}
nginx.ingress.kubernetes.io/backend-protocol: {{ .Values.ingress.protocol | upper }}
{{- end }}
{{- range $key, $value := .Values.ingress.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
Expand Down

0 comments on commit d83c873

Please sign in to comment.