Skip to content

Commit

Permalink
Add option for ingressClassName
Browse files Browse the repository at this point in the history
  • Loading branch information
wrmilling committed Feb 9, 2022
1 parent 1d9b39b commit ff92545
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/code-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.0.1
version: 2.0.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
5 changes: 4 additions & 1 deletion charts/code-server/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.ingressClassName }}
ingressClassName: {{ .Values.ingress.ingressClassName }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
Expand All @@ -40,7 +43,7 @@ spec:
backend:
service:
name: {{ $fullName }}
port:
port:
number: {{ $svcPort }}
{{- end }}
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion charts/code-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ingress:
# - host: code-server.example.loc
# paths:
# - /

#ingressClassName: nginx
#tls:
# - secretName: code-server
# hosts:
Expand Down

0 comments on commit ff92545

Please sign in to comment.