From 6b5b3bb9e88912b27db7393ac4e5795380cc2a60 Mon Sep 17 00:00:00 2001 From: Gavin Williams Date: Wed, 8 Jul 2020 09:44:47 +0100 Subject: [PATCH] [testing] Ensure that the 'namespace' is specified in Helm command (#715) If the `--namespace` flag isn't provided to Helm, then it will use whatever the local configured namespace is, which could be different. This can lead to tests failing that expect the `.Release.Namespace` to resolve to `default` --- helpers/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/helpers.py b/helpers/helpers.py index 19349b1f9..9af447a94 100644 --- a/helpers/helpers.py +++ b/helpers/helpers.py @@ -9,7 +9,7 @@ def helm_template(config): with tempfile.NamedTemporaryFile() as temp: with open(temp.name, "w") as values: values.write(config) - helm_cmd = "helm template -f {0} ./".format(temp.name) + helm_cmd = "helm template -f {0} --namespace default ./".format(temp.name) result = yaml.load_all(check_output(helm_cmd.split())) results = {}