[bitnami/logstash] fix: add namespace under the kubectl port-forward logstash chart (#18990)

Signed-off-by: Calvine Otieno <nyarangaotieno@gmail.com>
This commit is contained in:
Calvine Otieno
2023-09-04 13:42:43 +02:00
committed by GitHub
parent 351cb28f94
commit e1bb0e2b76
2 changed files with 2 additions and 2 deletions

View File

@@ -30,4 +30,4 @@ maintainers:
name: logstash
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/logstash
version: 5.5.0
version: 5.5.1

View File

@@ -53,7 +53,7 @@ To access Logstash from outside the cluster execute the following commands:
{{- else if contains "ClusterIP" .Values.service.type }}
export SERVICE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].port}" services {{ include "common.names.fullname" . }})
kubectl port-forward svc/{{ include "common.names.fullname" . }} ${SERVICE_PORT}:${SERVICE_PORT} &
kubectl --namespace {{ .Release.Namespace }} port-forward svc/{{ include "common.names.fullname" . }} ${SERVICE_PORT}:${SERVICE_PORT} &
echo "http://127.0.0.1:${SERVICE_PORT}"
{{- end }}