mirror of
https://github.com/truenas/charts.git
synced 2026-04-14 02:30:53 +08:00
render service only when not in hostnet
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user