Skip to content

Commit

Permalink
feat(reana_dev): prevent helm values string wrapping by pyyaml (#827)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlemesh committed Oct 7, 2024
1 parent 92d00fc commit 2942902
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 @@ -367,7 +367,8 @@ def job_mounts_to_config(job_mounts):
"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 2942902

Please sign in to comment.