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
#118)

 add the name of a cert-manager ClusterIssuer to acquire a certificate for ingress
  • Loading branch information
ihiverlet authored Jan 15, 2024
1 parent a08a927 commit 5b2f6fb
Show file tree
Hide file tree
Showing 2 changed files with 8 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.5.18
type: library
7 changes: 7 additions & 0 deletions charts/library-chart/templates/_ingress.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ Usage:
{{- if .Values.security.allowlist.enabled }}
nginx.ingress.kubernetes.io/whitelist-source-range: {{ .Values.security.allowlist.ip }}
{{- end }}
{{- if .Values.ingress.useCertManager }}
cert-manager.io/cluster-issuer: {{ .Values.ingress.certManagerClusterIssuer }}
acme.cert-manager.io/http01-ingress-class: {{ .Values.ingress.ingressClassName }}
{{- end }}
{{- end }}

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

0 comments on commit 5b2f6fb

Please sign in to comment.