Skip to content

Commit

Permalink
fix ingress host default value and template (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomklapka authored Jun 30, 2023
1 parent d252c38 commit f6e0743
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/influxdb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: influxdb
version: 4.12.3
version: 4.12.4
appVersion: 1.8.10
description: Scalable datastore for metrics, events, and real-time analytics.
keywords:
Expand Down
4 changes: 4 additions & 0 deletions charts/influxdb/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ spec:
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
rules:
{{- if .Values.ingress.hostname }}
- host: {{ .Values.ingress.hostname | quote }}
http:
{{- else }}
- http:
{{- end }}
paths:
- path: {{ .Values.ingress.path }}
pathType: Prefix
Expand Down
2 changes: 1 addition & 1 deletion charts/influxdb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ ingress:
enabled: false
tls: false
# secretName: my-tls-cert # only needed if tls above is true
hostname: "*"
hostname:
className: nginx
annotations: {}
# nginx.ingress.kubernetes.io/rewrite-target: $1
Expand Down

0 comments on commit f6e0743

Please sign in to comment.