rustfs#1916 Allow existing secrets to be used for tls certs in ingress (#1918)

Signed-off-by: mkrueger92 <7305571+mkrueger92@users.noreply.github.com>
Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
mkrueger92
2026-02-24 13:34:08 +01:00
committed by GitHub
parent c692777ead
commit 3b024a9dc5
3 changed files with 20 additions and 4 deletions
+4
View File
@@ -31,7 +31,11 @@ spec:
{{- range .Values.ingress.hosts }}
- {{ .host | quote }}
{{- end }}
{{- if .Values.ingress.tls.existingSecret.enabled }}
secretName: {{ required "ingress.tls.existingSecret.name must be set when ingress.tls.existingSecret.enabled is true" .Values.ingress.tls.existingSecret.name }}
{{- else }}
secretName: {{ include "rustfs.fullname" $ }}-tls
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
+3 -3
View File
@@ -1,4 +1,4 @@
{{- if and .Values.ingress.tls.enabled (not .Values.ingress.tls.certManager.enabled) -}}
{{- if and .Values.ingress.tls.enabled (not .Values.ingress.tls.certManager.enabled) (not .Values.ingress.tls.existingSecret.enabled) -}}
apiVersion: v1
kind: Secret
metadata:
@@ -8,6 +8,6 @@ metadata:
{{- toYaml .Values.commonLabels | nindent 4 }}
type: kubernetes.io/tls
data:
tls.crt : {{ .Values.ingress.tls.crt | b64enc | quote }}
tls.key : {{ .Values.ingress.tls.key | b64enc | quote }}
tls.crt: {{ .Values.ingress.tls.crt | b64enc | quote }}
tls.key: {{ .Values.ingress.tls.key | b64enc | quote }}
{{- end }}