[bitnami/logstash] Fix headless service does not include extra ports (#33055)

* [bitnami/logstash] Fix headless service does not include ports from `.service.extraPorts`

Signed-off-by: Christian Raoulis <Christian.Raoulis@telekom.de>

* Update CHANGELOG.md

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>

* [bitnami/logstash] Fix networkpolicy uses the whole extraContainerPorts entry instead of the `.containerPort` value of the entry

Signed-off-by: Christian Raoulis <Christian.Raoulis@telekom.de>

---------

Signed-off-by: Christian Raoulis <Christian.Raoulis@telekom.de>
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
Co-authored-by: Christian Raoulis <Christian.Raoulis@telekom.de>
Co-authored-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
Chris
2025-04-23 08:57:32 +02:00
committed by GitHub
parent 13b7f1f862
commit e511f5d92c
4 changed files with 13 additions and 4 deletions

View File

@@ -1,8 +1,12 @@
# Changelog
## 6.4.7 (2025-04-15)
## 6.4.8 (2025-04-17)
* [bitnami/logstash] Release 6.4.7 ([#33013](https://github.com/bitnami/charts/pull/33013))
* [bitnami/logstash] Fix headless service does not include extra ports ([#33055](https://github.com/bitnami/charts/pull/33055))
## <small>6.4.7 (2025-04-15)</small>
* [bitnami/logstash] Release 6.4.7 (#33013) ([aee7e22](https://github.com/bitnami/charts/commit/aee7e221de53c9dd8cb455527b4c37b8bda53af2)), closes [#33013](https://github.com/bitnami/charts/issues/33013)
## <small>6.4.6 (2025-03-25)</small>

View File

@@ -31,4 +31,4 @@ maintainers:
name: logstash
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/logstash
version: 6.4.7
version: 6.4.8

View File

@@ -20,5 +20,10 @@ spec:
{{- range $port := .Values.service.ports }}
- {{- omit (include "common.tplvalues.render" ( dict "value" $port "context" $ ) | fromYaml) "nodePort" | toYaml | nindent 6 }}
{{- end }}
{{- if .Values.service.extraPorts }}
{{- range $port := .Values.service.extraPorts }}
- {{- omit (include "common.tplvalues.render" ( dict "value" $port "context" $ ) | fromYaml) "nodePort" | toYaml | nindent 6 }}
{{- end }}
{{- 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 }}

View File

@@ -59,7 +59,7 @@ spec:
protocol: {{ default "TCP" .protocol }}
{{- end }}
{{- range .Values.extraContainerPorts }}
- port: {{ . }}
- port: {{ .containerPort }}
protocol: {{ default "TCP" .protocol }}
{{- end }}
{{- if .Values.enableMonitoringAPI }}