-
Notifications
You must be signed in to change notification settings - Fork 103
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
Restructure by feature #92
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: adrianludwin The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
e9f97ce
to
66710e4
Compare
HNC has always been divided into three main packages (all inside internal/): reconcilers, validators and mutators. This meant that any one feature (like subnamespace anchors) were split across multiple packages, with their internals exposed to other packages. It also ensured that all tests ran serially. This change refactors those three packages into five major ones (anchor, namespace, hierarchyconfig, hncconfig, and objects), as well as a few minor ones to cover code that's now shared across them (such as integtest). Tested: all integ and smoke tests pass.
/assign @rjbez17 Ryan, wdyt of this? |
Look at it earlier and was just waiting for you to fix the tests. I think it's a good idea. Thanks for taking this on! /lgtm |
HNC has always been divided into three main packages (all inside
internal/): reconcilers, validators and mutators. This meant that any
one feature (like subnamespace anchors) were split across multiple
packages, with their internals exposed to other packages. It also
ensured that all tests ran serially.
This change refactors those three packages into five major ones
(anchor, namespace, hierarchyconfig, hncconfig, and objects), as well as
a few minor ones to cover code that's now shared across them (such as
integtest).
Tested: all integ and smoke tests pass.