Skip to content

Commit

Permalink
Fix ingress service values
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwatson484 committed Apr 1, 2021
1 parent 535fbbf commit ad7f0b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion helm-library/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v2
name: helm-library
description: A Helm library chart
type: library
version: 2.4.0
version: 2.4.1
12 changes: 8 additions & 4 deletions helm-library/templates/_ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,20 @@ spec:
paths:
- path: /
backend:
serviceName: {{ required (printf $requiredMsg "name") .Values.name | quote }}
servicePort: {{ required (printf $requiredMsg "service.port") .Values.service.port }}
service:
name: {{ required (printf $requiredMsg "name") .Values.name | quote }}
port:
number: {{ required (printf $requiredMsg "service.port") .Values.service.port }}
{{- if .Values.ingress.host }}
- host: www.{{ .Values.ingress.host }}
http:
paths:
- path: /
backend:
serviceName: {{ required (printf $requiredMsg "name") .Values.name | quote }}
servicePort: {{ required (printf $requiredMsg "service.port") .Values.service.port }}
service:
name: {{ required (printf $requiredMsg "name") .Values.name | quote }}
port:
number: {{ required (printf $requiredMsg "service.port") .Values.service.port }}
{{- end }}
{{- end }}
{{- define "helm-library.ingress" -}}
Expand Down

0 comments on commit ad7f0b2

Please sign in to comment.