Skip to content

Commit

Permalink
Fix error when enabling certificate (#302)
Browse files Browse the repository at this point in the history
Signed-off-by: Erwin Steffens <[email protected]>
  • Loading branch information
ErwinSteffens committed Dec 18, 2023
1 parent 00fcfa4 commit 7d51192
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/node-red/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ icon: https://nodered.org/about/resources/media/node-red-icon-2.png

type: application

version: 0.28.1
version: 0.28.2
appVersion: 3.0.2

keywords:
Expand Down
3 changes: 2 additions & 1 deletion charts/node-red/templates/certificates.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{{$name := include "node-red.certificateName" . }}
{{$namespace := .Release.Namespace }}
{{- range $index, $value := .Values.ingress.tls }}
{{- if $value.certificate.enabled }}
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: {{ $value.certificate.name | default (printf "%s-%d" $name $index) | trunc 63 | trimSuffix "-" }}
namespace: {{ .Release.Namespace | quote }}
namespace: {{ $namespace | quote }}
spec:
commonName: {{ index $value.hosts 0 }}
dnsNames:
Expand Down

0 comments on commit 7d51192

Please sign in to comment.