Skip to content

Commit

Permalink
feat: Add templating of values (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarojasm95 authored Oct 26, 2024
1 parent 6288e28 commit 996687a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 7 additions & 9 deletions aladdin/charts/merger/templates/values.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{{- $overLay := get .Values "aladdin.overlay" }}
{{- $values := unset .Values "aladdin.overlay" }}
{{- if $overLay }}
{{/* Enable the injection of render values into other values */}}
{{- $overLay = tpl (toYaml ($overLay | default "")) (dict "Values" $values) }}
{{- $overLay = fromYaml $overLay }}
{{- toYaml (merge $values $overLay) }}
{{- else }}
{{- toYaml $values }}
{{- $templateValues := dig "aladdin" "templateValues" 0 .Values.AsMap }}
{{- $valuesYaml := toYaml .Values }}
{{- $values := .Values }}
{{- range untilStep 0 (int $templateValues) 1 }}
{{- $valuesYaml = tpl $valuesYaml (dict "Values" $values "Chart" $.Chart) }}
{{- $values = fromYaml $valuesYaml }}
{{- end }}
{{- $valuesYaml }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "aladdin"
version = "1.29.8.4"
version = "1.29.8.5"
description = ""
authors = ["Fivestars <dev@fivestars.com>"]
include = [
Expand Down

0 comments on commit 996687a

Please sign in to comment.