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

secrets: pass reana user id to workflow engines #212

Merged
merged 1 commit into from
Jul 2, 2019

Conversation

okraskaj
Copy link
Member

@okraskaj okraskaj self-assigned this Jun 18, 2019
@okraskaj okraskaj added this to In progress in Condor-Slurm-Demo via automation Jun 18, 2019
@okraskaj okraskaj force-pushed the secrets branch 3 times, most recently from 81806ec to c232f52 Compare July 1, 2019 16:15
job_controller_container.volume_mounts = [
{
'name': 'default-shared-volume',
'mountPath': SHARED_FS_MAPPING['MOUNT_DEST_PATH'],
},
{
'name': owner_id,
'mountPath': "/etc/reana/secrets",
Copy link
Member

Choose a reason for hiding this comment

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

We should extract this to configuration, also in https://github.com/reanahub/reana-job-controller/pull/158/files#diff-669c9f342cac1a455e5c652c40abf085R130.

Package configuration for now, once we merge we create an issue to move it to REANA-Commons.

@@ -358,12 +365,42 @@ def _create_job_spec(self, name, command=None, image=None,
if os.getenv('FLASK_ENV') == 'development':
job_controller_env_vars.extend(
current_app.config['DEBUG_ENV_VARS'])
job_controller_env_vars.extend([{
Copy link
Member

Choose a reason for hiding this comment

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

The code here and here https://github.com/reanahub/reana-job-controller/pull/158/files#diff-669c9f342cac1a455e5c652c40abf085R103 is very similar, we should create a refactor issue pointing to this code once merged.

@okraskaj okraskaj moved this from In progress to Review in progress in Condor-Slurm-Demo Jul 2, 2019
Condor-Slurm-Demo automation moved this from Review in progress to Reviewer approved Jul 2, 2019
@diegodelemos diegodelemos merged commit 28ed95d into reanahub:master Jul 2, 2019
Condor-Slurm-Demo automation moved this from Reviewer approved to Done Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants