Merge pull request #17 from laszlocph/nodeport-support
nodePort support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user