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

Add TargetAllocator CR webhook #3101

Merged

Conversation

swiatekm
Copy link
Contributor

@swiatekm swiatekm commented Jul 3, 2024

Description:
Implement the TargetAllocator webhook. I've moved some functions to seperate modules to be able to reuse them between the added webhook and the existing collector webhook. Maybe we can have a common validator for OpenTelemetryCommonFields in general?

The webhook is not yet enabled in the manifests, so this change has no user-facing effect.

Link to tracking Issue(s): #2516

@swiatekm swiatekm added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jul 3, 2024
@swiatekm swiatekm requested a review from a team as a code owner July 3, 2024 13:43
Copy link

linux-foundation-easycla bot commented Jul 3, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: swiatekm / name: Mikołaj Świątek (b183458)

@swiatekm swiatekm force-pushed the feat/add-targetallocator-webhook branch from a4f6fe0 to 63d2840 Compare July 3, 2024 13:45
@swiatekm swiatekm force-pushed the feat/add-targetallocator-webhook branch from 63d2840 to b183458 Compare July 3, 2024 16:18
targetAllocatorCRPolicyRules = []*rbacv1.PolicyRule{
{
APIGroups: []string{"monitoring.coreos.com"},
Resources: []string{"servicemonitors", "podmonitors"},
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm adding here the Probe/ScrapeConfig support. I believe you can add both resources on CRPolicyRules.

@swiatekm swiatekm merged commit b806c27 into open-telemetry:main Jul 9, 2024
33 checks passed
@swiatekm swiatekm deleted the feat/add-targetallocator-webhook branch July 9, 2024 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants