Skip to content

Commit cae81f3

Browse files
authored
Merge pull request #377 from concourse/ibrahimparvez2/master
Enable Port Name overrides on web-api-service - Ibrahimparvez2/master
2 parents 55004bd + 1c4b7de commit cae81f3

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ The following table lists the configurable parameters of the Concourse chart and
232232
| `web.service.api.loadBalancerSourceRanges` | Concourse Web API Service Load Balancer Source IP ranges | `nil` |
233233
| `web.service.api.tlsNodePort` | Sets the nodePort for api tls when using `NodePort` | `nil` |
234234
| `web.service.api.type` | Concourse Web API service type | `ClusterIP` |
235+
| `web.service.api.port.name` | Sets the port name for web service with `targetPort` `atc` | `atc` |
236+
| `web.service.api.tlsPort.name` | Sets the port name for web service with `targetPort` `atc-tls` | `atc-tls` |
235237
| `web.service.workerGateway.annotations` | Concourse Web workerGateway Service annotations | `nil` |
236238
| `web.service.workerGateway.labels` | Additional concourse web workerGateway service labels | `nil` |
237239
| `web.service.workerGateway.loadBalancerIP` | The IP to use when web.service.workerGateway.type is LoadBalancer | `nil` |

templates/web-api-svc.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ spec:
3333
loadBalancerIP: {{ .Values.web.service.api.loadBalancerIP }}
3434
{{- end }}
3535
ports:
36-
- name: atc
36+
- name: {{ .Values.web.service.api.port.name }}
3737
port: {{ .Values.concourse.web.bindPort }}
3838
targetPort: atc
3939
{{- if and (eq "NodePort" .Values.web.service.api.type) .Values.web.service.api.NodePort }}
4040
nodePort: {{ .Values.web.service.api.NodePort}}
4141
{{- end }}
4242
{{- if .Values.concourse.web.tls.enabled }}
43-
- name: atc-tls
43+
- name: {{ .Values.web.service.api.tlsPort.name }}
4444
port: {{ .Values.concourse.web.tls.bindPort }}
4545
targetPort: atc-tls
4646
{{- if and (eq "NodePort" .Values.web.service.api.type) .Values.web.service.api.tlsNodePort }}

values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2305,6 +2305,15 @@ web:
23052305
##
23062306
tlsNodePort:
23072307

2308+
## When using thirdy party service mesh providers such as istio, port
2309+
## name ovverrides can be set to meet the default `http` naming convention
2310+
##
2311+
port:
2312+
name: atc
2313+
2314+
tlsPort:
2315+
name: atc-tls
2316+
23082317
workerGateway:
23092318
## For minikube, set this to ClusterIP, elsewhere use LoadBalancer or NodePort
23102319
## Ref: https://kubernetes.io/docs/user-guide/services/#publishing-services---service-types

0 commit comments

Comments
 (0)