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

Create service for extensions #3403

Merged
merged 4 commits into from
Nov 27, 2024

Conversation

Ankit152
Copy link
Contributor

@Ankit152 Ankit152 commented Oct 28, 2024

Description:

The Otel Operator doesn't creates a service for extensions. This will help the operator to create Service for extensions which will be consumed by an Ingress so that users can interact with it directly. This is related to deployment of Jaeger V2 in k8s.

Link to tracking Issue(s):

Testing:

Documentation:

@Ankit152 Ankit152 requested a review from a team as a code owner October 28, 2024 14:13
@Ankit152 Ankit152 marked this pull request as draft October 28, 2024 14:15
Copy link
Member

@pavolloffay pavolloffay left a comment

Choose a reason for hiding this comment

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

great progress,

Please add unit tests and e2e test

internal/manifests/collector/service.go Show resolved Hide resolved
@Ankit152 Ankit152 force-pushed the service-extension branch 2 times, most recently from d742325 to eb14bf7 Compare November 7, 2024 08:13
@Ankit152 Ankit152 marked this pull request as ready for review November 7, 2024 08:13
Copy link
Contributor

@swiatekm swiatekm left a comment

Choose a reason for hiding this comment

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

This looks good to me overall, left a few comments and questions.

apis/v1beta1/config.go Show resolved Hide resolved
tests/e2e/extension/00-install.yaml Outdated Show resolved Hide resolved
tests/e2e/extension/00-assert.yaml Show resolved Hide resolved
internal/manifests/collector/service.go Outdated Show resolved Hide resolved
.chloggen/service-extension.yaml Outdated Show resolved Hide resolved
Copy link
Contributor

@swiatekm swiatekm left a comment

Choose a reason for hiding this comment

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

I wanted to be clearer about how I'd like the e2e test you added to look like. I'm including some suggestions to help demonstrate that. Fundamentally, the manifests we assert against should only contain attributes that are relevant to this specific test.

The rest of this PR looks good to me, nicely done. 👍

tests/e2e/extension/00-assert.yaml Outdated Show resolved Hide resolved
tests/e2e/extension/00-assert.yaml Outdated Show resolved Hide resolved
tests/e2e/extension/00-assert.yaml Outdated Show resolved Hide resolved
tests/e2e/extension/00-assert.yaml Outdated Show resolved Hide resolved
tests/e2e/extension/00-assert.yaml Outdated Show resolved Hide resolved
tests/e2e/extension/00-assert.yaml Outdated Show resolved Hide resolved
tests/e2e/extension/00-assert.yaml Outdated Show resolved Hide resolved
tests/e2e/extension/00-assert.yaml Outdated Show resolved Hide resolved
tests/e2e/extension/00-assert.yaml Outdated Show resolved Hide resolved
tests/e2e/extension/00-assert.yaml Outdated Show resolved Hide resolved
@Ankit152 Ankit152 force-pushed the service-extension branch 2 times, most recently from c5d4b40 to effe1d9 Compare November 21, 2024 16:05
@Ankit152 Ankit152 force-pushed the service-extension branch 2 times, most recently from d25d89a to 0091576 Compare November 22, 2024 09:11
Copy link
Contributor

@swiatekm swiatekm left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for the contribution!

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.

one minor comment, otherwise this looks good!

"endpoint": "0.0.0.0:16686",
},
"grpc": map[string]interface{}{
"endpoint": "0.0.0.0:16686",
Copy link
Contributor

Choose a reason for hiding this comment

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

wouldnt we expect grpc and http to not share an endpoint?

Copy link
Member

Choose a reason for hiding this comment

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

yes, in most cases, but Jaeger does allow sharing the port between http/grpc.

Copy link
Member

Choose a reason for hiding this comment

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

don't know if that was intentional in the test though.

Copy link
Contributor Author

@Ankit152 Ankit152 Nov 27, 2024

Choose a reason for hiding this comment

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

Actually, jaeger-query won't be using GRPC endpoint in OTEL Operator. I have intentionally kept that to see if it is throwing an error or not.

Copy link
Contributor

Choose a reason for hiding this comment

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

got it, @yurishkuro would you mind reviewing this and then i can merge it in?

Copy link
Member

Choose a reason for hiding this comment

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

@jaronoff97 you should not block on my review - I know nothing about how operators are implemented internally, and this change is about that, not about any Jaeger knowledge, so my review would be completely superficial.

Copy link
Contributor

Choose a reason for hiding this comment

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

i mostly wanted the jaeger knowledge and the superficial ✔️ just to close out the comments you left from before. but no problem, thanks for letting me know :)

@jaronoff97 jaronoff97 merged commit 6ae647a into open-telemetry:main Nov 27, 2024
38 checks passed
@jaronoff97
Copy link
Contributor

@Ankit152 thank you for your contribution!! 🙇

@Ankit152 Ankit152 deleted the service-extension branch November 27, 2024 17:16
@Ankit152
Copy link
Contributor Author

Thank you very much everyone for the kind feedback and reviews! 🙇🏼

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.

[Collector] Create a service for extensions which can be exposed to a port
6 participants