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 }}
{{- end }} {{- end }}
rules: rules:
{{- if .Values.ingress.rules }}
{{ toYaml .Values.ingress.rules | nindent 4 }}
{{- else }}
- host: {{ .Values.ingress.host | quote }} - host: {{ .Values.ingress.host | quote }}
http: http:
paths: paths:
@ -36,4 +39,5 @@ spec:
backend: backend:
serviceName: {{ $fullName }} serviceName: {{ $fullName }}
servicePort: http servicePort: http
{{- end }}
{{- end }} {{- end }}

View file

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