mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-22 20:53:52 +09:00
Add MongoDB managed service based on Percona Operator for MongoDB with: - Replica set mode (default) and sharded cluster mode - Configurable replicas, storage, and resource presets - Custom users with role-based access control - S3-compatible backup with PITR support - Bootstrap/restore from backup - External access support - WorkloadMonitor integration for dashboard - Comprehensive helm-unittest test coverage (91 tests) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Aleksei Sviridkin <f@lex.la>
13 lines
408 B
Smarty
13 lines
408 B
Smarty
{{/*
|
|
MongoDB version mapping
|
|
*/}}
|
|
{{- define "mongodb.versionMap" -}}
|
|
{{- $versions := .Files.Get "files/versions.yaml" | fromYaml -}}
|
|
{{- $version := .Values.version -}}
|
|
{{- if hasKey $versions $version -}}
|
|
{{- index $versions $version -}}
|
|
{{- else -}}
|
|
{{- fail (printf "Unsupported MongoDB version: %s. Supported versions: %s" $version (keys $versions | sortAlpha | join ", ")) -}}
|
|
{{- end -}}
|
|
{{- end -}}
|