diff --git a/template/chartName/templates/NOTES.txt b/template/chartName/templates/NOTES.txt index ae1d37d4..650ac592 100644 --- a/template/chartName/templates/NOTES.txt +++ b/template/chartName/templates/NOTES.txt @@ -25,7 +25,7 @@ Please run the following command(s) to obtain the right address to the service: {{- else if eq $type "NodePort" }} {{- $serviceAddress = "$(echo http://${NODE_IP}:${NODE_PORT})" | toString }} export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - export NODE_PORT=$(kubectl get service --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" {{ $serviceName }}) + export NODE_PORT=$(kubectl get service --namespace {{ .Release.Namespace }} {{ $serviceName }} -o jsonpath="{.spec.ports[0].nodePort}") {{- end }} ```