Skip to content

Commit

Permalink
feat(reana_dev): prevent helm values string wrapping by pyyaml (reana…
Browse files Browse the repository at this point in the history
  • Loading branch information
jlemesh committed Aug 30, 2024
1 parent 1aaf393 commit 657e739
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reana/reana_dev/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ def job_mounts_to_config(job_mounts):
if "reana-ui" in standard_named_exclude_components:
values_dict["components"]["reana_ui"]["enabled"] = False

values_yaml = yaml.dump(values_dict) if values_dict else ""
# set arbitrary big value for `width` to prevent PyYAML from wrapping long lines
values_yaml = yaml.dump(values_dict, width=100000) if values_dict else ""
helm_install = f"cat <<EOF | helm install {instance_name} helm/reana -n {namespace} --create-namespace --wait -f -\n{values_yaml}\nEOF"

cmds = []
Expand Down

0 comments on commit 657e739

Please sign in to comment.