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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Ankit152
Copy link

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
return nil, err
}

ports, err := params.OtelCol.Spec.Config.GetExtensionPorts(params.Log)
Copy link
Contributor

Choose a reason for hiding this comment

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

If there are no ports... maybe we can just not create the service

Copy link
Member

Choose a reason for hiding this comment

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

+1

Copy link
Author

@Ankit152 Ankit152 Oct 31, 2024

Choose a reason for hiding this comment

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

Do you mean something similar to this?

if len(ports) == 0 {
    return nil, nil
}

Also, if there are ports, will it be a good idea to add HA proxy for them similar to this?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes. That's what I meant.

I'm not sure about the HA. Do we need GRPC for this?

Copy link
Author

Choose a reason for hiding this comment

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

Yes. That's what I meant.

I have already implemented that and written proper unit tests for the same.
Although, I have a suggestion/doubt. Won't it be a good idea to add labels in the extension service similar to these?

Copy link
Author

Choose a reason for hiding this comment

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

Do we need GRPC for this?

@yurishkuro can you answer this?

Copy link
Member

Choose a reason for hiding this comment

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

Jaeger extension exposes both http and grpc endpoints.

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

return nil, err
}

ports, err := params.OtelCol.Spec.Config.GetExtensionPorts(params.Log)
Copy link
Member

Choose a reason for hiding this comment

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

+1

Signed-off-by: Ankit152 <ankitkurmi152@gmail.com>
Signed-off-by: Ankit152 <ankitkurmi152@gmail.com>
@Ankit152 Ankit152 marked this pull request as ready for review November 7, 2024 08:13
Signed-off-by: Ankit152 <ankitkurmi152@gmail.com>
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.

4 participants