ARO-28189: remove cluster version GET/LIST enrichment - #4986
Conversation
|
Skipping CI for Draft Pull Request. |
There was a problem hiding this comment.
Pull request overview
Removes the live OpenShift cluster version overlay from the cluster GET/LIST enrichment path by unregistering (and deleting) the clusterVersion enricher implementation, while keeping the existing ingress visibility enrichment behavior intact.
Changes:
- Unregister
clusterVersionfromNewParallelEnricherand remove config client initialization tied to that enricher. - Delete the
clusterVersionEnricherimplementation and its unit tests. - Add a regression test ensuring the cluster version enricher is not registered.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pkg/util/clusterdata/clusterdata.go | Removes clusterVersion enricher registration and drops config client setup that was only needed for the removed overlay. |
| pkg/util/clusterdata/clusterdata_test.go | Adds a regression test asserting clusterVersion is not registered in NewParallelEnricher. |
| pkg/util/clusterdata/cluster_version.go | Deletes the version overlay enricher implementation. |
| pkg/util/clusterdata/cluster_version_test.go | Deletes tests for the removed version overlay enricher. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Does the cluster version actually get updated anywhere else? |
|
The other references I've found were all validators or getters (with the exception of disableUpdates) If we would still like to have one updater I'd rather move it to a dedicated backend action like syncClusterVersion(ctx) in |
|
Putting this on hold as we have to think about enrichers a little more. |
|
(oops, meant to be 'comment', not 'close with comment', sorry) |
Summary
clusterVersionenricherValidation
make fmtmake lint-gomake unit-test-goAlternatives discarded
Notes
ARO-28189lives in a separate draft PR.