netbox: Fix ingress values to be more correct

This commit is contained in:
Alexander Olofsson 2020-05-07 19:34:02 +02:00
parent e600f836d1
commit 6e3b46059f
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
2 changed files with 13 additions and 3 deletions

View file

@ -29,6 +29,9 @@ spec:
{{- end }}
{{- end }}
rules:
{{- if .Values.ingress.rules }}
{{ toYaml .Values.ingress.rules | nindent 4 }}
{{- else }}
- host: {{ .Values.ingress.host | quote }}
http:
paths:
@ -36,4 +39,5 @@ spec:
backend:
serviceName: {{ $fullName }}
servicePort: http
{{- end }}
{{- end }}

View file

@ -22,9 +22,15 @@ ingress:
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths: []
host: chart-example.local
# Can also be specified by entering rules directly;
# rules:
# - host: chart-example.local
# paths:
# - path: /
# backend:
# serviceName: netbox-example
# servicePort: http
tls: []
# - secretName: chart-example-tls