mirror of
https://github.com/truenas/charts.git
synced 2026-11-06 16:32:14 +00:00
render service only when hostNet is false
This commit is contained in:
1 file changed
+2
@@ -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 }}
|
||||
Reference in new issue
Block a user