-
Notifications
You must be signed in to change notification settings - Fork 326
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
NET-6722 Rename MeshConfigController to ConsulResourceController #3283
Conversation
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 looks really good!! thanks for taking care of it so quick. i left a few comments inline.
control-plane/config-entries/controllersv2/gateway_class_config_controller.go
Outdated
Show resolved
Hide resolved
looks like there are some linter errors that need cleaning up.. based on the cursory look, it seems fairly straightforward. let me know if you need hellp with those |
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
Yeah, it looks like an update to the retry linter caught some lingering issues. The EDIT: I'm going to fix this in another PR then rebase this PR. EDIT 2: In the meantime, I loosened the restriction so others are unblocked. |
* Refactor MeshConfigController to ConsulResouceController * Rename controller file * Rename MeshConfig to ConsulResource * Rename Controller to ResourceController * Update some references to meshConfig * Fixup some comments * Change MeshConfigController to ConsulResourceController in all implementations * Change MeshConfigController to ConsulResourceController in instances * Fix references to MeshConfigController in some tests * Rename mockMeshConfig to mockConsulResource * Rename meshConfigReconciler to consulResourceReconciler * Rename ConsulResourceController to Controller * Fix calls to validate * Use "Controller" instead of "Reconciler" * Empty commit to retrigger tests
The names
MeshConfigController
andMeshConfig
were initially chosen to represent the generic Consul Resource mapping from Kubernetes into Consul.Previously, these resources were referred to as "config-entries". With the upcoming implementation of Mesh Gateways V2, there was a name conflict with that implementation's
MeshConfiguration
resource andMeshConfigurationController
.It was decided that the existing generic
MeshConfig
usage be replaced withConsulResource
. This PR adopts that naming scheme.This change is not user-facing.
Changes proposed in this PR:
How I've tested this PR:
How I expect reviewers to test this PR:
Checklist: