Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helm: expose optional workspace paths while deploying the cluster #533

Merged
merged 2 commits into from
Sep 14, 2021

Conversation

marcdiazsan
Copy link
Contributor

Closes #532

@marcdiazsan marcdiazsan requested a review from tiborsimko August 24, 2021 17:10
@marcdiazsan marcdiazsan self-assigned this Aug 24, 2021
@codecov-commenter
Copy link

codecov-commenter commented Aug 24, 2021

Codecov Report

Merging #533 (1231394) into master (65439c0) will increase coverage by 0.07%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #533      +/-   ##
==========================================
+ Coverage   14.96%   15.04%   +0.07%     
==========================================
  Files          17       17              
  Lines        1530     1529       -1     
==========================================
+ Hits          229      230       +1     
+ Misses       1301     1299       -2     
Impacted Files Coverage Δ
reana/reana_dev/cluster.py 0.00% <ø> (ø)
reana/reana_dev/python.py 47.61% <0.00%> (-1.10%) ⬇️

Copy link
Member

@audrium audrium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works nicely, just left couple of minor comments

helm/reana/README.md Outdated Show resolved Hide resolved
helm/reana/templates/reana-workflow-controller.yaml Outdated Show resolved Hide resolved
@@ -236,7 +236,7 @@ def cluster_build(
"--workspace-mounts",
multiple=True,
help="Which directories from the Kubernetes nodes to mount inside the cluster pods? "
"cluster_node_path:job_pod_mountpath, e.g /var/reana/mydata:/mydata",
"cluster_node_path:cluster_pod_mountpath, e.g /var/reana/mydata:/mydata",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain why this was needed? /mydata is job_pod_mountpath

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But this paths are mounted not only for the jobs, but also for cluster pods r-w-controller and reana-server. I thought that job_pod_mountpath was not completely correct (but cluster_pod_mountpath might also not be correct, as is not for all cluster pods.....).

helm/reana/templates/reana-server.yaml Outdated Show resolved Hide resolved
helm/reana/templates/reana-workflow-controller.yaml Outdated Show resolved Hide resolved
helm/reana/values.yaml Outdated Show resolved Hide resolved
Copy link
Member

@audrium audrium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works nicely!

Edit:
Rebase is missing. Can you also squash some of the commits?

I guess a list of cluster paths is not enough for all the cases, since for example /eos host path is /var/eos in Kubernetes nodes. We need a way to specify cluster_node_path:job_pod_mountpath pairs for a workspace path list, similarly to what was done here. Probably could be fixed in another PR?

@audrium audrium merged commit 50c3d22 into reanahub:master Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

helm: administrators to choose allowed workspace options
3 participants