fix(clusterissuer): try to deal with the fact cert-manager contains a dash

This commit is contained in:
Kjeld Schouten 2023-07-19 14:40:43 +02:00
parent b8b4503cb0
commit 9eb6638145
3 changed files with 5 additions and 13 deletions

View File

@ -21,7 +21,7 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/enterprise/clusterissuer
- https://cert-manager.io/
type: application
version: 1.0.12
version: 1.0.13
annotations:
truecharts.org/catagories: |
- core

View File

@ -1,10 +1,6 @@
{{- define "certmanager.clusterissuer.acme" -}}
{{- $namespace := "cert-manager" -}}
{{- if $.Values.operator.certmanager -}}
{{- if $.Values.operator.certmanager.namespace -}}
{{- $namespace = $.Values.operator.certmanager.namespace -}}
{{- end -}}
{{- end -}}
{{- $operator := index $.Values.operator "cert-manager" -}}
{{- $namespace := $operator.namespace | default "cert-manager" -}}
{{- range .Values.clusterIssuer.ACME }}
{{- if not (mustRegexMatch "^[a-z]+(-?[a-z]){0,63}-?[a-z]+$" .name) -}}
{{- fail "ACME - Expected name to be all lowercase with hyphens, but not start or end with a hyphen" -}}

View File

@ -1,10 +1,6 @@
{{- define "certmanager.clusterissuer.ca" -}}
{{- $namespace := "cert-manager" -}}
{{- if $.Values.operator.certmanager -}}
{{- if $.Values.operator.certmanager.namespace -}}
{{- $namespace = $.Values.operator.certmanager.namespace -}}
{{- end -}}
{{- end -}}
{{- $operator := index $.Values.operator "cert-manager" -}}
{{- $namespace := $operator.namespace | default "cert-manager" -}}
{{- range .Values.clusterIssuer.CA }}
{{- if not (mustRegexMatch "^[a-z]+(-?[a-z]){0,63}-?[a-z]+$" .name) -}}