-
Notifications
You must be signed in to change notification settings - Fork 189
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
Support for setting user in default executor #1262
Conversation
@ssalinas thanks for the addition |
@@ -381,6 +381,10 @@ private void prepareCustomExecutor(final TaskInfo.Builder bldr, final Singularit | |||
private void prepareCommand(final TaskInfo.Builder bldr, final SingularityTaskId taskId, final SingularityTaskRequest task, final Protos.Offer offer, final Optional<long[]> ports) { | |||
CommandInfo.Builder commandBldr = CommandInfo.newBuilder(); | |||
|
|||
if (task.getDeploy().getUser().isPresent()) { | |||
commandBldr.setUser(task.getDeploy().getUser().get()); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
LGTM aside from comment above |
/fixes #1261