Skip to content

Commit 177f0ed

Browse files
authored
feat: support ingressClassName in Helm Chart (#4844)
Allow configuring the ingress class via a value.
1 parent 25b1340 commit 177f0ed

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
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: 2.0.1
18+
version: 2.1.0
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/ingress.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ metadata:
1818
{{- toYaml . | nindent 4 }}
1919
{{- end }}
2020
spec:
21+
{{- if .Values.ingress.ingressClassName }}
22+
ingressClassName: {{ .Values.ingress.ingressClassName }}
23+
{{- end }}
2124
{{- if .Values.ingress.tls }}
2225
tls:
2326
{{- range .Values.ingress.tls }}

ci/helm-chart/values.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,12 @@ service:
3535
ingress:
3636
enabled: false
3737
#annotations:
38-
# kubernetes.io/ingress.class: nginx
3938
# kubernetes.io/tls-acme: "true"
4039
#hosts:
4140
# - host: code-server.example.loc
4241
# paths:
4342
# - /
44-
43+
ingressClassName: ""
4544
#tls:
4645
# - secretName: code-server
4746
# hosts:

0 commit comments

Comments
 (0)