Skip to content

Commit 4fb87f9

Browse files
authored
feature: add ability to attach ports to code server (#6015)
1 parent 36daac3 commit 4fb87f9

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

ci/helm-chart/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 3.4.1
18+
version: 3.5.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

ci/helm-chart/templates/deployment.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ spec:
114114
- name: http
115115
containerPort: 8080
116116
protocol: TCP
117+
{{- range .Values.extraPorts }}
118+
- name: {{ .name }}
119+
containerPort: {{ .port }}
120+
protocol: {{ .protocol }}
121+
{{- end }}
117122
livenessProbe:
118123
httpGet:
119124
path: /

ci/helm-chart/templates/service.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ spec:
1414
targetPort: http
1515
protocol: TCP
1616
name: http
17+
{{- range .Values.extraPorts }}
18+
- port: {{ .port }}
19+
targetPort: {{ .port }}
20+
protocol: {{ .protocol }}
21+
name: {{ .name }}
22+
{{- end }}
1723
selector:
1824
app.kubernetes.io/name: {{ include "code-server.name" . }}
1925
app.kubernetes.io/instance: {{ .Release.Name }}

ci/helm-chart/values.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,8 @@ extraConfigmapMounts: []
196196
# subPath: certificates.crt # (optional)
197197
# configMap: certs-configmap
198198
# readOnly: true
199+
200+
extraPorts: []
201+
# - name: minecraft
202+
# port: 25565
203+
# protocol: tcp

0 commit comments

Comments
 (0)