mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-19 19:16:17 +00:00
fix(helm): apply traefikAnnotations and gate TLS secret on certManager.enabled (#1864)
Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
{{- $ingressAnnotations := dict }}
|
{{- $ingressAnnotations := dict }}
|
||||||
{{- if eq .Values.ingress.className "nginx" }}
|
{{- if eq .Values.ingress.className "nginx" }}
|
||||||
{{- $ingressAnnotations = .Values.ingress.nginxAnnotations }}
|
{{- $ingressAnnotations = .Values.ingress.nginxAnnotations }}
|
||||||
|
{{- else if eq .Values.ingress.className "traefik" }}
|
||||||
|
{{- $ingressAnnotations = .Values.ingress.traefikAnnotations }}
|
||||||
{{- else if eq .Values.ingress.className "" }}
|
{{- else if eq .Values.ingress.className "" }}
|
||||||
{{- $ingressAnnotations = .Values.ingress.customAnnotations }}
|
{{- $ingressAnnotations = .Values.ingress.customAnnotations }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{{- if .Values.ingress.tls.enabled -}}
|
{{- if and .Values.ingress.tls.enabled (not .Values.ingress.tls.certManager.enabled) -}}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
|
|||||||
Reference in New Issue
Block a user