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

Restructure by feature #92

Merged
merged 1 commit into from
Oct 11, 2021
Merged

Conversation

adrianludwin
Copy link
Contributor

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.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 11, 2021
@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Oct 11, 2021
@adrianludwin adrianludwin marked this pull request as draft October 11, 2021 20:41
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 11, 2021
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.
@adrianludwin adrianludwin marked this pull request as ready for review October 11, 2021 23:49
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 11, 2021
@adrianludwin
Copy link
Contributor Author

/assign @rjbez17

Ryan, wdyt of this?

@rjbez17
Copy link
Contributor

rjbez17 commented Oct 11, 2021

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

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 11, 2021
@k8s-ci-robot k8s-ci-robot merged commit bfe42e2 into kubernetes-sigs:master Oct 11, 2021
@adrianludwin adrianludwin added this to the release-v0.9 milestone Oct 13, 2021
@adrianludwin adrianludwin deleted the reorg branch March 24, 2022 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants