From d9ae18335d7095a288931f463243639938f92398 Mon Sep 17 00:00:00 2001 From: Jose Rojas <39174181+jarojasm95@users.noreply.github.com> Date: Wed, 4 Sep 2024 12:56:19 -0600 Subject: [PATCH] feat: Add support for value overlays (#175) --- aladdin/charts/merger/templates/values.yaml | 11 ++++++++++- aladdin/lib/publish_rules.py | 1 - pyproject.toml | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/aladdin/charts/merger/templates/values.yaml b/aladdin/charts/merger/templates/values.yaml index 55d8de5..4e6bdae 100644 --- a/aladdin/charts/merger/templates/values.yaml +++ b/aladdin/charts/merger/templates/values.yaml @@ -1 +1,10 @@ -{{- toYaml .Values -}} +{{- $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 }} +{{- end }} diff --git a/aladdin/lib/publish_rules.py b/aladdin/lib/publish_rules.py index eed9afe..e4df9de 100644 --- a/aladdin/lib/publish_rules.py +++ b/aladdin/lib/publish_rules.py @@ -9,5 +9,4 @@ class PublishRules: def __init__(self): publish_configs = load_publish_configs() boto = boto3.Session(profile_name=publish_configs["aws_profile"]) - self.docker_registry = publish_configs["docker_ecr_repo"] self.ecr = boto.client("ecr") diff --git a/pyproject.toml b/pyproject.toml index 547d404..2847ad0 100755 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "aladdin" -version = "1.29.8.0" +version = "1.29.8.1" description = "" authors = ["Fivestars "] include = [