Files
cozystack/packages/apps/opensearch/templates/_versions.tpl
T
MatthieuandClaude Opus 4.5 25ff583f34 [apps] Add managed OpenSearch service
Add OpenSearch application with operator and resource definition:
- App chart with multi-version support (v1/v2/v3), TLS, auth, dashboards
- OpenSearch operator wrapper (opster v2.8.0) with sysctl daemonset
- ApplicationDefinition for Cozystack platform integration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Matthieu <matthieu@hidora.com>
2026-02-16 22:54:41 +01:00

14 lines
504 B
Smarty

{{/*
Version mapping helper
Loads version mapping from files/versions.yaml and returns the full version for a given major version
*/}}
{{- define "opensearch.versionMap" -}}
{{- $versions := .Files.Get "files/versions.yaml" | fromYaml -}}
{{- $version := .Values.version | default "v2" -}}
{{- if hasKey $versions $version -}}
{{- index $versions $version -}}
{{- else -}}
{{- fail (printf "Invalid version '%s'. Available versions: %s" $version (keys $versions | join ", ")) -}}
{{- end -}}
{{- end -}}