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

Make the controller main skinny #947

Merged
merged 3 commits into from
Sep 9, 2022

Conversation

josvazg
Copy link
Collaborator

@josvazg josvazg commented Sep 7, 2022

Description of the change

The Controller has way too much code within the main package.

  • Things in main cannot be referred to or used from other code.
  • Refactors and code separation are harder when busines logic is in the main package.

The first step to allow easy modularity is to move most code outside of main, where we can further slice it and separate it.

Benefits

Code moves to a package where it is easier to further refactor.

Copy link
Collaborator

@alvneiayu alvneiayu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@agarcia-oss agarcia-oss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great refactor, @josvazg !

@josvazg josvazg merged commit 59fe471 into bitnami-labs:main Sep 9, 2022
This was referenced Sep 22, 2022
@josvazg josvazg deleted the make-controller-main-skinny branch October 11, 2022 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants