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

[target-allocator] create new target package #1214

Conversation

moh-osman3
Copy link
Contributor

Resolves #1213

@moh-osman3 moh-osman3 requested a review from a team November 1, 2022 00:52
Copy link
Contributor

@VineethReddy02 VineethReddy02 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@jaronoff97 jaronoff97 left a comment

Choose a reason for hiding this comment

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

Just one small change to use the constructor, otherwise, looks great!

TargetURL: target.TargetURL,
Label: target.Label,
colOwner := c.consistentHasher.LocateKey([]byte(tg.Hash()))
targetItem := &target.Item{
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: can we use a target constructor to make this target.New

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the review! This is a good point, changed!

Link: LinkJSON{Link: fmt.Sprintf("/jobs/%s/targets", url.QueryEscape(target.JobName))},
TargetURL: target.TargetURL,
Label: target.Label,
targetItem := &target.Item{
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: use constructor here too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed!

@moh-osman3 moh-osman3 force-pushed the mohosman/issue-1213/create-new-target-package branch from a306d06 to ce039a9 Compare November 1, 2022 18:09
@moh-osman3 moh-osman3 force-pushed the mohosman/issue-1213/create-new-target-package branch from ce039a9 to 578a3c9 Compare November 1, 2022 18:43
Copy link
Contributor

@jaronoff97 jaronoff97 left a comment

Choose a reason for hiding this comment

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

Thank you!

@pavolloffay pavolloffay merged commit 556deec into open-telemetry:main Nov 2, 2022
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
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.

[target-allocator] create new target package
7 participants