From 348b1a7271e27eec63ed2bf81e162e948718bf85 Mon Sep 17 00:00:00 2001 From: kid1412621 Date: Thu, 14 Nov 2024 10:22:52 +0800 Subject: [PATCH] fix kubectl cmd in NOTES.txt --- helm/mockserver/templates/NOTES.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/mockserver/templates/NOTES.txt b/helm/mockserver/templates/NOTES.txt index 428af1154..9abd8b6a4 100644 --- a/helm/mockserver/templates/NOTES.txt +++ b/helm/mockserver/templates/NOTES.txt @@ -15,7 +15,7 @@ {{- else if contains "NodePort" .Values.service.type }} export NODE_PORT=$(kubectl --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" get services {{ template "release.name" . }}) - export NODE_IP=$(kubectl --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address} get nodes") + export NODE_IP=$(kubectl --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}" get nodes) export MOCKSERVER_HOST=$NODE_IP:$NODE_PORT echo http://$MOCKSERVER_HOST