You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Update README version badge to 0.17.48
- Add port range validation for autoAssignNodePort: fail if port/tlsPort
is outside 30000-32767 when autoAssignNodePort is true
Copy file name to clipboardExpand all lines: charts/api7/templates/dp-manager-service.yaml
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,14 @@ metadata:
11
11
{{- end }}
12
12
spec:
13
13
type: {{ .Values.dp_manager_service.type }}
14
+
{{- if and (eq .Values.dp_manager_service.type "NodePort") .Values.dp_manager_service.autoAssignNodePort }}
15
+
{{- if or (lt (int .Values.dp_manager_service.port) 30000) (gt (int .Values.dp_manager_service.port) 32767) }}
16
+
{{- fail (printf "dp_manager_service.port (%d) must be between 30000 and 32767 when autoAssignNodePort is true" (int .Values.dp_manager_service.port)) }}
17
+
{{- end }}
18
+
{{- if or (lt (int .Values.dp_manager_service.tlsPort) 30000) (gt (int .Values.dp_manager_service.tlsPort) 32767) }}
19
+
{{- fail (printf "dp_manager_service.tlsPort (%d) must be between 30000 and 32767 when autoAssignNodePort is true" (int .Values.dp_manager_service.tlsPort)) }}
20
+
{{- end }}
21
+
{{- end }}
14
22
{{- if .Values.dp_manager_service.loadBalancerClass }}
0 commit comments