mirror of
https://github.com/outbackdingo/cozystack.git
synced 2026-01-27 10:18:39 +00:00
[review] compact _versions.tpl
Signed-off-by: IvanHunters <xorokhotnikov@gmail.com>
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
{{- define "kubernetes.versionMap" }}
|
||||
|
||||
{{- $versionMap := .Files.Get "files/versions.yaml" | fromYaml }}
|
||||
{{- if not (hasKey $versionMap .Values.version) }}
|
||||
{{- printf `Kubernetes version %s is not supported, allowed versions are %s` $.Values.version (keys $versionMap) | fail }}
|
||||
{{- end }}
|
||||
|
||||
{{- index $versionMap .Values.version }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user