From 3ae05b072a1bc606e31e88e0411c1a5a40116d98 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 27 Nov 2025 14:03:30 -0800 Subject: [PATCH] use .Values.global.certificates instead --- k8s/charts/seaweedfs/templates/cert/ca-cert.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/k8s/charts/seaweedfs/templates/cert/ca-cert.yaml b/k8s/charts/seaweedfs/templates/cert/ca-cert.yaml index 0fd6615e1..7c53be23e 100644 --- a/k8s/charts/seaweedfs/templates/cert/ca-cert.yaml +++ b/k8s/charts/seaweedfs/templates/cert/ca-cert.yaml @@ -13,6 +13,12 @@ spec: secretName: {{ template "seaweedfs.name" . }}-ca-cert commonName: "{{ template "seaweedfs.name" . }}-root-ca" isCA: true + {{- if .Values.global.certificates.duration }} + duration: {{ .Values.global.certificates.duration }} + {{- end }} + {{- if .Values.global.certificates.renewBefore }} + renewBefore: {{ .Values.global.certificates.renewBefore }} + {{- end }} issuerRef: name: {{ template "seaweedfs.name" . }}-issuer kind: Issuer