Merge pull request #17 from laszlocph/nodeport-support

nodePort support
This commit is contained in:
Laszlo Fogas
2021-04-28 10:11:42 +02:00
committed by GitHub
2 changed files with 11 additions and 0 deletions
+3
View File
@@ -12,5 +12,8 @@ spec:
targetPort: http
protocol: TCP
name: http
{{- if .Values.nodePort }}
nodePort: {{ .Values.nodePort }}
{{- end }}
selector:
{{- include "helm-chart.selectorLabels" . | nindent 4 }}
@@ -17,3 +17,11 @@ tests:
- equal:
path: spec.ports[0].port
value: 22222
- it: Should set nodePort if it is defined
set:
containerPort: 11111
nodePort: 33333
asserts:
- equal:
path: spec.ports[0].nodePort
value: 33333