Browse Source

render service only when not in hostnet

Stavros kois 2 years ago
parent
commit
e28a9d3742
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/wg-easy/1.0.0/templates/service.yaml

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