From e28a9d3742f7f82d83d834ab9c00be7eb8d857cd Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Tue, 15 Nov 2022 20:07:49 +0200 Subject: [PATCH] render service only when not in hostnet --- test/wg-easy/1.0.0/templates/service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/wg-easy/1.0.0/templates/service.yaml b/test/wg-easy/1.0.0/templates/service.yaml index 0c61f4c572..4a8eb2d089 100644 --- a/test/wg-easy/1.0.0/templates/service.yaml +++ b/test/wg-easy/1.0.0/templates/service.yaml @@ -1,4 +1,3 @@ -{{- 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,5 +7,6 @@ {{ $params := . }} {{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} {{ $_1 := set .Values "extraSelectorLabels" $selectors }} +{{- if not .Values.hostNetwork }} {{ include "common.classes.service" $params }} {{- end }}