-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request 'feat: Add cert-manager templates for wildcard-cer…
…tificate' (#312) from wildcard-certificate into master Reviewed-on: https://gitea.obmondo.com/EnableIT/KubeAid/pulls/312
- Loading branch information
Showing
4 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
{{/* | ||
Simplified name of the secret name for issuing wildcard certificate. | ||
*/}} | ||
{{- define "cert-manager.namefix" -}} | ||
{{ printf "%s" . | trimPrefix "*" | trimPrefix "." | replace "." "-" }} | ||
{{- end -}} |
19 changes: 19 additions & 0 deletions
19
argocd-helm-charts/cert-manager/templates/certificate.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{{- if .Values.wildcardCertificates.enabled -}} | ||
{{- range .Values.wildcardCertificates.domains }} | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: {{ include "cert-manager.namefix" . }} | ||
spec: | ||
secretName: {{ include "cert-manager.namefix" . }} | ||
issuerRef: | ||
group: cert-manager.io | ||
kind: ClusterIssuer | ||
name: {{ $.Values.issuer.name | quote }} | ||
commonName: "{{ . }}" | ||
dnsNames: | ||
- "{{ . }}" | ||
|
||
--- | ||
{{- end -}} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters