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

Remove old autodetection for openshift routes, cleanup #2398

Merged

Conversation

jaronoff97
Copy link
Contributor

@jaronoff97 jaronoff97 commented Nov 28, 2023

Description:
Removes autodetection running on a frequency, removes old route task code. For the future we can also use this autodetection for seeing that someone has the latest CRDs installed.

Link to tracking Issue: closes #2108

Testing: Unit tests were added

Documentation: N/A

@jaronoff97 jaronoff97 marked this pull request as ready for review November 28, 2023 17:20
@jaronoff97 jaronoff97 added this to the v1alpha2 CRD release milestone Nov 28, 2023
controllers/opentelemetrycollector_controller_test.go Outdated Show resolved Hide resolved
internal/config/main.go Outdated Show resolved Hide resolved
@@ -186,6 +186,10 @@ func main() {
config.WithAutoDetect(ad),
config.WithLabelFilters(labelsFilter),
)
err = cfg.AutoDetect()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the future we could autodetect more things like if certain CRDs are available. We honestly should do this for Prometheus too.

Copy link
Contributor

@yuriolisa yuriolisa 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 Author

Choose a reason for hiding this comment

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

I moved the tests to the reconcile_test.go file which was a much better place for it.

)

// Routes reconciles the route(s) required for the instance in the current context.
// TODO: This functionality should be put with the rest of reconciliation logic in the mutate.go
Copy link
Member

Choose a reason for hiding this comment

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

Why did we keep this? The mutate is already handling routes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was because the old task logic would dynamically add this to its jobs. either way, i think it's probably wholly unused.

@jaronoff97 jaronoff97 merged commit 46495fd into open-telemetry:main Nov 29, 2023
27 checks passed
@jaronoff97 jaronoff97 deleted the migrate-route-reconcilation branch November 29, 2023 18:09
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
…y#2398)

* remove old autodetection, cleanup

* remove unused
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.

Migrate OpenShift route reconciliation to use manifests
3 participants