-
Notifications
You must be signed in to change notification settings - Fork 471
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
Remove old autodetection for openshift routes, cleanup #2398
Conversation
@@ -186,6 +186,10 @@ func main() { | |||
config.WithAutoDetect(ad), | |||
config.WithLabelFilters(labelsFilter), | |||
) | |||
err = cfg.AutoDetect() |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…or into migrate-route-reconcilation
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
…y#2398) * remove old autodetection, cleanup * remove unused
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