Skip to content

Commit

Permalink
fix: configure nodePort when defined (#81)
Browse files Browse the repository at this point in the history
Allows the chart to configure the nodePort value if defined.
  • Loading branch information
kameshsampath authored Jul 18, 2022
1 parent d560d93 commit f058f76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions charts/drone/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ spec:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
{{- if .Values.service.nodePort }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
name: http
selector:
{{- include "drone.selectorLabels" . | nindent 4 }}
3 changes: 2 additions & 1 deletion charts/drone/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ updateStrategy: {}

service:
type: ClusterIP
port: 80
port: 8080
annotations: {}
nodePort:

## If you'd like to create an ingress in front of the Drone server, you can enable it
## here. Please refer to your service provider's documenatation for any configuration
Expand Down

0 comments on commit f058f76

Please sign in to comment.