mirror of
https://github.com/truenas/charts.git
synced 2026-04-13 17:52:13 +08:00
Not needed to verify on nodeport services, they are not even shows when hostNet is enabled
This commit is contained in:
@@ -426,6 +426,7 @@ questions:
|
||||
schema:
|
||||
type: int
|
||||
required: true
|
||||
min: 9000
|
||||
max: 65535
|
||||
- variable: protocol
|
||||
label: "Protocol"
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{{- if and (.Values.portForwardingList) (eq (include "hostNetworkingConfiguration" .) "false") }}
|
||||
{{- $hostNet := .Values.hostNetwork }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
@@ -10,9 +9,6 @@ spec:
|
||||
type: NodePort
|
||||
ports:
|
||||
{{- range $index, $config := .Values.portForwardingList }}
|
||||
{{- if and (not $hostNet) (lt (int $config.nodePort) 9000) }}
|
||||
{{- fail (printf "Port (%s) is too low. Minimum allowed port is 9000." ($config.nodePort | toString)) }}
|
||||
{{- end }}
|
||||
- port: {{ $config.containerPort }}
|
||||
targetPort: {{ $config.containerPort }}
|
||||
protocol: {{ $config.protocol }}
|
||||
|
||||
@@ -77,6 +77,7 @@ questions:
|
||||
description: "Specify port to be used for Portal access"
|
||||
schema:
|
||||
type: int
|
||||
min: 9000
|
||||
max: 65535
|
||||
default: 15000
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{{- if and (.Values.portForwardingList) (eq (include "hostNetworkingConfiguration" .) "false") }}
|
||||
{{- $hostNet := .Values.hostNetwork }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
@@ -10,9 +9,6 @@ spec:
|
||||
type: NodePort
|
||||
ports:
|
||||
{{- range $index, $config := .Values.portForwardingList }}
|
||||
{{- if and (not $hostNet) (lt (int $config.nodePort) 9000) }}
|
||||
{{- fail (printf "Port (%s) is too low. Minimum allowed port is 9000." ($config.nodePort | toString)) }}
|
||||
{{- end }}
|
||||
- port: {{ $config.containerPort }}
|
||||
targetPort: {{ $config.containerPort }}
|
||||
protocol: {{ $config.protocol }}
|
||||
|
||||
Reference in New Issue
Block a user