From 6288e280608d37b5ebbf72d3a3b45d2faec63e78 Mon Sep 17 00:00:00 2001 From: Jose Rojas <39174181+jarojasm95@users.noreply.github.com> Date: Fri, 18 Oct 2024 15:46:21 -0600 Subject: [PATCH] feat(helm-values): Add "all" flags to query params (#178) --- aladdin/commands/helm_values.py | 8 ++++++-- pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/aladdin/commands/helm_values.py b/aladdin/commands/helm_values.py index 2f1739f..ba8c189 100644 --- a/aladdin/commands/helm_values.py +++ b/aladdin/commands/helm_values.py @@ -20,7 +20,7 @@ from aladdin.lib.helm_rules import HelmRules from aladdin.lib.k8s.helm import Helm from aladdin.lib.project_conf import ProjectConf -from aladdin.lib.utils import working_directory +from aladdin.lib.utils import working_directory, strtobool def parse_args(sub_parser): @@ -63,7 +63,7 @@ def helm_values( output: str = None, ): uri = urlparse(uri) - params = dict(parse_qsl(uri.query)) + params = dict(parse_qsl(uri.query, keep_blank_values=True)) os.environ["CLUSTER_CODE"] = uri.netloc repo_name = uri.path.lstrip("/") ClusterRules(namespace=namespace) @@ -72,6 +72,10 @@ def helm_values( git_ref or params.get("git-ref") or Git.get_full_hash(), f"git@github.com:{git_account}/{repo_name}.git" if repo_name else None ) + if "all" in params: + if params.get("all") == "": + params["all"] = "true" + all_values = strtobool(params.get("all")) with clone_and_checkout(git_ref, repo_name, debug=HelmRules.debug) as repo_dir: current_chart_name = get_current_chart_name() diff --git a/pyproject.toml b/pyproject.toml index 77808be..b387968 100755 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "aladdin" -version = "1.29.8.3" +version = "1.29.8.4" description = "" authors = ["Fivestars "] include = [