Skip to content

Commit

Permalink
make target port customisable for unleash helm chart (#141)
Browse files Browse the repository at this point in the history
---------
  • Loading branch information
martinrw authored May 16, 2024
1 parent 5b5c7f2 commit 79df314
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/unleash/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ icon: https://docs.getunleash.io/img/logo.svg

type: application

version: 4.2.0
version: 4.2.1

appVersion: "5.12.2"

Expand Down
2 changes: 1 addition & 1 deletion charts/unleash/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
targetPort: {{ .Values.service.targetPort | default .Values.service.port }}
{{- if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.nodePort)) }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions charts/unleash/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ service:
# Supported types: ClusterIP, NodePort, LoadBalancer
type: ClusterIP
port: 4242
# target port will be set to port if not set
targetPort: ""
# nodePort is optional and only used when service.type is NodePort or LoadBalancer
nodePort: ""
annotations: {}
Expand Down

0 comments on commit 79df314

Please sign in to comment.