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