6290322f1b
- VM stack 10 charts: victoria-metrics-cluster/auth, victoria-logs-cluster, victoria-metrics-agent/alert, opentelemetry-collector, kube-state-metrics, prometheus-node-exporter, alertmanager, perses (JWT/OIDC, Infisical-ready) - ArgoCD ApplicationSet (syncWave) + per-chart dip-values overlays - doc/victoria-metrics-architecture.md, define-chart-resources updates - includes pending working-tree changes (mlflow, kubeflow, apisix, CLAUDE.md) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
32 lines
1.9 KiB
Plaintext
32 lines
1.9 KiB
Plaintext
{{- if and .Values.config.database.file .Values.config.database.sql }}
|
|
{{ fail "[ERROR] 'config.database' must be set as file or SQL, and those options are mutually exclusive." }}
|
|
{{ end }}
|
|
|
|
{{- if and .Values.persistence.enabled (eq .Values.persistence.storageClass "") }}
|
|
{{ fail "[ERROR] 'persistencen.storageClass' must be set." }}
|
|
{{ end }}
|
|
|
|
{{- define "perses.validateDatabaseConfig" -}}
|
|
{{- if and .Values.config.database.file .Values.config.database.sql }}
|
|
{{- fail "[ERROR] Both 'config.database.file' and 'config.database.sql' cannot be set at the same time. Please configure only one of them." }}
|
|
{{- end }}
|
|
{{- $sqlConfig := .Values.config.database.sql }}
|
|
{{- if $sqlConfig }}
|
|
{{- $tlsConfig := $sqlConfig.tls_config }}
|
|
{{- if and $tlsConfig (kindIs "map" $tlsConfig) }}
|
|
{{- if or (hasKey $tlsConfig "ca_file") (hasKey $tlsConfig "cert_file") (hasKey $tlsConfig "key_file") (hasKey $tlsConfig "server_name") (hasKey $tlsConfig "insecure_skip_verify") (hasKey $tlsConfig "min_version") (hasKey $tlsConfig "max_version") }}
|
|
{{- fail "[ERROR] Legacy SQL TLS keys detected under 'config.database.sql.tls_config'. Use camelCase keys: ca_file->caFile, cert_file->certFile, key_file->keyFile, server_name->serverName, insecure_skip_verify->insecureSkipVerify, min_version->minVersion, max_version->maxVersion." }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{- if .Values.datasources }}
|
|
#################################################################################
|
|
###### WARNING: The 'datasources' configuration field is deprecated #####
|
|
###### and will be removed in the future version. #####
|
|
###### Please migrate to using the 'sidecar' configuration #####
|
|
###### for provisioning datasources. #####
|
|
#################################################################################
|
|
{{- end }}
|