Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion helm/aws-load-balancer-controller/templates/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ spec:
- {{ template "aws-load-balancer-controller.webhookService" . }}.{{ .Release.Namespace }}.svc.{{ .Values.cluster.dnsDomain }}
issuerRef:
kind: Issuer
name: {{ template "aws-load-balancer-controller.namePrefix" . }}-selfsigned-issuer
name: {{ default (printf "%s-selfsigned-issuer" (include "aws-load-balancer-controller.namePrefix" .)) .Values.certManager.existingIssuerName }}
secretName: {{ template "aws-load-balancer-controller.webhookCertSecret" . }}
{{- with .Values.certManager -}}
{{ if .duration }}
Expand All @@ -249,6 +249,7 @@ spec:
{{- end }}
{{- end }}
---
{{- if not $.Values.certManager.existingIssuerName }}
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
Expand All @@ -259,3 +260,4 @@ metadata:
spec:
selfSigned: {}
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions helm/aws-load-balancer-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ certManager:
duration:
renewBefore:
revisionHistoryLimit:
# name of the existing issuer to use for certificate requests
# when set, the controller will not create a self-signed issuer
existingIssuerName:

# The name of the Kubernetes cluster. A non-empty value is required
clusterName:
Expand Down