mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-06 07:03:45 +09:00
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>
14 lines
504 B
Smarty
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 -}}
|