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 }}