From ca8679a33a80044c4a83613bbace21eb3b77b39e Mon Sep 17 00:00:00 2001 From: Trayan Azarov Date: Fri, 27 Dec 2024 09:44:13 +0200 Subject: [PATCH] chore: adding if around nodePort for a bit safer Signed-off-by: Trayan Azarov --- charts/chromadb-chart/templates/service.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/charts/chromadb-chart/templates/service.yaml b/charts/chromadb-chart/templates/service.yaml index 69295cd..6da1eb6 100644 --- a/charts/chromadb-chart/templates/service.yaml +++ b/charts/chromadb-chart/templates/service.yaml @@ -11,6 +11,8 @@ spec: targetPort: {{ .Values.chromadb.serverHttpPort }} protocol: TCP name: http + {{- if .Values.service.nodePort }} nodePort: {{ .Values.service.nodePort }} + {{- end }} selector: {{- include "chart.selectorLabels" . | nindent 4 }}