Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
[testing] Ensure that the 'namespace' is specified in Helm command (#715
Browse files Browse the repository at this point in the history
)

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`
  • Loading branch information
Gavin Williams committed Jul 8, 2020
1 parent 22805b4 commit 6b5b3bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down

0 comments on commit 6b5b3bb

Please sign in to comment.