helm: seaweedfs admin should not allow setting multiple admin servers

This commit is contained in:
Chris Lu
2026-01-24 13:43:08 -08:00
parent d3f79d4c38
commit b40551f960

View File

@@ -1,4 +1,7 @@
{{- if .Values.admin.enabled }}
{{- if gt (.Values.admin.replicas | int) 1 }}
{{- fail "admin.replicas must be 0 or 1" -}}
{{- end }}
{{- if and (not .Values.admin.masters) (not .Values.global.masterServer) (not .Values.master.enabled) }}
{{- fail "admin.masters or global.masterServer must be set if master.enabled is false" -}}
{{- end }}