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

Implemented interpolation of Job, Task group and Task Names in Service Name #509

Merged
merged 8 commits into from
Nov 27, 2015

Conversation

diptanu
Copy link
Contributor

@diptanu diptanu commented Nov 27, 2015

Fixes #499

This PR disables addition of the prefix ${job-name}-${task-group}-${task} to every Service Name. Users can add ${JOB}, ${TASKGROUP}, ${TASK} and ${BASE} to the service name and Nomad interpolates their appropriate values.

@@ -28,6 +28,9 @@ func (j *Job) Register(args *structs.JobRegisterRequest, reply *structs.JobRegis
if err := args.Job.Validate(); err != nil {
return err
}

args.Job.ExpandAllServiceNames()
Copy link
Contributor

Choose a reason for hiding this comment

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

I would put a comment on this

@dadgar
Copy link
Contributor

dadgar commented Nov 27, 2015

LGTM

Might be worth updating the nomad init output to the new name specification so people can see it

diptanu added a commit that referenced this pull request Nov 27, 2015
Implemented interpolation of Job, Task group and Task Names in Service Name
@diptanu diptanu merged commit 6786367 into master Nov 27, 2015
@diptanu diptanu deleted the f-service-name branch November 27, 2015 07:28
@github-actions
Copy link

github-actions bot commented May 2, 2023

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Specifying consul service names without job/group/task names
2 participants