Skip to content

Commit

Permalink
Add spec.ingressClassName in Ingress object templates
Browse files Browse the repository at this point in the history
  • Loading branch information
koslib committed Aug 17, 2023
1 parent 59e177b commit 6f1fa2d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v2
name: servicetpl
description: A Helm chart for services running on Kubernetes

version: 0.15.1
version: 0.16.0
4 changes: 4 additions & 0 deletions templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ 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 Down
4 changes: 4 additions & 0 deletions templates/ingress_private.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress_private.ingressClassName -}}
ingressClassName: {{ .Values.ingress_private.ingressClassName }}
{{- end }}

{{- if .Values.ingress_private.tls }}
tls:
{{- range .Values.ingress_private.tls }}
Expand Down

0 comments on commit 6f1fa2d

Please sign in to comment.