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

client: refactor common service registration objects from Consul. #12272

Merged
merged 1 commit into from
Mar 15, 2022

Conversation

jrasell
Copy link
Member

@jrasell jrasell commented Mar 14, 2022

This commit performs refactoring to pull out common service
registration objects into a new client/serviceregistration
package. This new package will form the base point for all
client specific service registration functionality.

The Consul specific implementation is not moved as it also
includes non-service registration implementations; this reduces
the blast radius of the changes as well.

I wasn't really able to split this into commits, my apologies. Also
tagged Seth for review as I know he has experience in this area.
If you want to walk over it via sync-call let me know!

related to https://github.com/hashicorp/team-nomad/issues/266

@jrasell jrasell added this to the 1.3.0 milestone Mar 14, 2022
@jrasell jrasell self-assigned this Mar 14, 2022
Copy link
Member

@shoenig shoenig left a comment

Choose a reason for hiding this comment

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

LGTM; feel free to ignore nitpicks.

Wouldn't be opposed to shortening serviceregistration to servicereg or something like that

client/serviceregistration/mock/mock.go Show resolved Hide resolved
client/serviceregistration/workload.go Outdated Show resolved Hide resolved
This commit performs refactoring to pull out common service
registration objects into a new `client/serviceregistration`
package. This new package will form the base point for all
client specific service registration functionality.

The Consul specific implementation is not moved as it also
includes non-service registration implementations; this reduces
the blast radius of the changes as well.
@github-actions
Copy link

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 Oct 25, 2022
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.

None yet

2 participants