Skip to content

Commit

Permalink
add the name of a cert-manager ClusterIssuer to acquire a certificate…
Browse files Browse the repository at this point in the history
… for ingress
  • Loading branch information
ihiverlet committed Jan 5, 2024
1 parent a08a927 commit 29b39ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/library-chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v2
name: library-chart
version: 1.5.17
version: 1.6.0
type: library
6 changes: 6 additions & 0 deletions charts/library-chart/templates/_ingress.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ Usage:
{{- if .Values.security.allowlist.enabled }}
nginx.ingress.kubernetes.io/whitelist-source-range: {{ .Values.security.allowlist.ip }}
{{- end }}
{{- if not .Values.ingress.useDefaultCertificate }}
cert-manager.io/cluster-issuer: {{ .Values.ingress.certManagerClusterIssuer }}
{{- end }}
{{- end }}

{{/* Ingress hostname */}}
Expand Down Expand Up @@ -53,6 +56,9 @@ spec:
tls:
- hosts:
- {{ .Values.ingress.hostname | quote }}
{{- if not .Values.ingress.useDefaultCertificate }}
secretName: tls-cert-{{ include "library-chart.fullname" . }}
{{- end }}
{{- end }}
rules:
- host: {{ .Values.ingress.hostname | quote }}
Expand Down

0 comments on commit 29b39ee

Please sign in to comment.