Merge pull request #17 from laszlocph/nodeport-support
nodePort support
This commit is contained in:
@@ -12,5 +12,8 @@ spec:
|
|||||||
targetPort: http
|
targetPort: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: http
|
name: http
|
||||||
|
{{- if .Values.nodePort }}
|
||||||
|
nodePort: {{ .Values.nodePort }}
|
||||||
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
{{- include "helm-chart.selectorLabels" . | nindent 4 }}
|
{{- include "helm-chart.selectorLabels" . | nindent 4 }}
|
||||||
|
|||||||
@@ -17,3 +17,11 @@ tests:
|
|||||||
- equal:
|
- equal:
|
||||||
path: spec.ports[0].port
|
path: spec.ports[0].port
|
||||||
value: 22222
|
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