[bitnami/nats] Fix monitoring ingress endpoint (#6167)

This commit is contained in:
Ben Who
2021-04-21 15:30:35 +08:00
committed by GitHub
parent c7b389f161
commit 52b5afd958
2 changed files with 6 additions and 4 deletions

View File

@@ -24,4 +24,4 @@ name: nats
sources:
- https://github.com/bitnami/bitnami-docker-nats
- https://nats.io/
version: 6.2.5
version: 6.2.6

View File

@@ -1,8 +1,10 @@
{{- if .Values.ingress.enabled }}
{{- $fullName := include "common.names.fullname" . -}}
{{- $ingressName := printf "%s-monitoring" $fullName -}}
apiVersion: {{ include "common.capabilities.ingress.apiVersion" . }}
kind: Ingress
metadata:
name: {{ printf "%s-monitoring" (include "common.names.fullname" .) }}
name: {{ $ingressName }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
@@ -32,7 +34,7 @@ spec:
{{- if eq "true" (include "common.ingress.supportsPathType" .) }}
pathType: {{ .Values.ingress.pathType }}
{{- end }}
backend: {{- include "common.ingress.backend" (dict "serviceName" (include "common.names.fullname" .) "servicePort" "tcp-monitoring" "context" $) | nindent 14 }}
backend: {{- include "common.ingress.backend" (dict "serviceName" $ingressName "servicePort" "tcp-monitoring" "context" $) | nindent 14 }}
{{- end }}
{{- range .Values.ingress.extraHosts }}
- host: {{ .name | quote }}
@@ -42,7 +44,7 @@ spec:
{{- if eq "true" (include "common.ingress.supportsPathType" $) }}
pathType: {{ default "ImplementationSpecific" .pathType }}
{{- end }}
backend: {{- include "common.ingress.backend" (dict "serviceName" (include "common.names.fullname" $) "servicePort" "tcp-monitoring" "context" $) | nindent 14 }}
backend: {{- include "common.ingress.backend" (dict "serviceName" $ingressName "servicePort" "tcp-monitoring" "context" $) | nindent 14 }}
{{- end }}
{{- if or .Values.ingress.tls .Values.ingress.extraTls }}
tls: