Skip to content

Support for setting user in default executor - #1262

Merged
ssalinas merged 6 commits into
masterfrom
set_user
Sep 2, 2016
Merged

Support for setting user in default executor#1262
ssalinas merged 6 commits into
masterfrom
set_user

Conversation

@ssalinas

@ssalinas ssalinas commented Sep 1, 2016

Copy link
Copy Markdown
Contributor

/fixes #1261

@kchaliki

kchaliki commented Sep 1, 2016

Copy link
Copy Markdown
Contributor

@ssalinas thanks for the addition

@ssalinas ssalinas added the hs_qa label Sep 1, 2016
CommandInfo.Builder commandBldr = CommandInfo.newBuilder();

if (task.getDeploy().getUser().isPresent()) {
commandBldr.setUser(task.getDeploy().getUser().get());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we add this corresponding change to prepareCustomExecutor() too? I can see some utility in being able to control what user the custom executor is launched as.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We already had customExecutorUser for this purpose, but it had been deprecated for a while now. I've officially removed it in favor of the plain user field which will apply to the custom and default executor cases.

@tpetr

tpetr commented Sep 2, 2016

Copy link
Copy Markdown
Contributor

LGTM aside from comment above

@ssalinas
ssalinas merged commit 5cc7f19 into master Sep 2, 2016
@ssalinas
ssalinas deleted the set_user branch September 2, 2016 20:03
@ssalinas ssalinas modified the milestone: 0.11.0 Sep 9, 2016
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.

select user to launch tasks as

3 participants