Files
chart/library/ix-dev/charts/ix-chart/templates/_networking.tpl
Stavros Kois 768be33a96 move ix-chart to ix-dev (#1054)
* switch to the newly released official repo

* remove --helm3 flag as it does not exist anymore

* move ix-chart

* create values.yaml and remove old test hook

* update version scheme
2023-04-11 18:36:44 +03:00

31 lines
758 B
Smarty

{{/*
DNS Configuration
*/}}
{{- define "dnsConfiguration" }}
dnsPolicy: {{ .Values.dnsPolicy }}
{{- if .Values.dnsConfig }}
dnsConfig:
{{- toYaml .Values.dnsConfig | nindent 2 }}
{{- end }}
{{- end }}
{{/*
Get configuration for host network
*/}}
{{- define "hostNetworkingConfiguration" -}}
{{- $host := default false .Values.hostNetwork -}}
{{- if or .Values.externalInterfaces (eq $host false) -}}
{{- print "false" -}}
{{- else -}}
{{- print "true" -}}
{{- end -}}
{{- end -}}
{{/* Validate portal port */}}
{{- if .Values.enableUIPortal }}
{{- if and (not .Values.hostNetwork) (lt .Values.portalDetails.port 9000) }}
{{- fail (printf "Port (%d) is too low. Minimum allowed port is 9000." .Values.portalDetails.port) }}
{{- end }}
{{- end }}