[bitnami/logstash] fix: support NodePorts in bitnami logstash chart (#18476)

This commit is contained in:
Carl B
2023-11-14 23:29:37 -08:00
committed by GitHub
parent 5e6e40e5e4
commit 20163af9c4
2 changed files with 4 additions and 2 deletions

View File

@@ -17,6 +17,8 @@ spec:
type: ClusterIP
clusterIP: None
ports:
{{- include "common.tplvalues.render" (dict "value" .Values.service.ports "context" $) | nindent 4 }}
{{- range $port := .Values.service.ports }}
- {{- omit (include "common.tplvalues.render" ( dict "value" $port "context" $ ) | fromYaml) "nodePort" | toYaml | nindent 6 }}
{{- end }}
{{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.podLabels .Values.commonLabels ) "context" . ) }}
selector: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 4 }}