Skip to content

Commit

Permalink
allow setting the ingress class via spec.ingressClassName (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
mproffitt committed Apr 24, 2024
1 parent 5694631 commit 0281fb4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions charts/localstack/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ metadata:
{{- tpl (toYaml .) $ | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.ingressClassName }}
ingressClassName: {{ .Values.ingress.ingressClassName | quote }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
Expand Down
6 changes: 3 additions & 3 deletions charts/localstack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ service:
ingress:
enabled: false
annotations: {}
# Adjust the ingress class when not using nginx as incress controller
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
## @param ingress.ingressClassName Set the name of the class to use
##
ingressClassName: ""
hosts:
- host: chart-example.local
paths:
Expand Down

0 comments on commit 0281fb4

Please sign in to comment.