From 19b575e1cad107955489194fa9f772253cb8f95f Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Tue, 15 Nov 2022 19:39:16 +0200 Subject: [PATCH] render service only when hostNet is false --- test/wg-easy/1.0.0/templates/service.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/wg-easy/1.0.0/templates/service.yaml b/test/wg-easy/1.0.0/templates/service.yaml index 5f1bfef9e6..0c61f4c572 100644 --- a/test/wg-easy/1.0.0/templates/service.yaml +++ b/test/wg-easy/1.0.0/templates/service.yaml @@ -1,3 +1,4 @@ +{{- if not .Values.hostNetwork }} {{ $selectors := list }} {{ $selectors = mustAppend $selectors (dict "key" "app" "value" (include "common.names.name" .) ) }} {{ $selectors = mustAppend $selectors (dict "key" "release" "value" .Release.Name ) }} @@ -8,3 +9,4 @@ {{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} {{ $_1 := set .Values "extraSelectorLabels" $selectors }} {{ include "common.classes.service" $params }} +{{- end }}