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

Refactor cmd/timoni and extract reconciler logic to dedicated package #366

Merged
merged 10 commits into from
Jun 11, 2024

Conversation

errordeveloper
Copy link
Contributor

@errordeveloper errordeveloper commented Mar 12, 2024

Towards: #10

@errordeveloper errordeveloper changed the title Factor out errors.Decribe and runtimebuild.BuildFiles from cmd/timoni [CI] refactorcmd/timoni Mar 12, 2024
@errordeveloper errordeveloper force-pushed the cmd-timoni-refactor branch 4 times, most recently from 987f974 to ffa58de Compare March 12, 2024 16:28
@errordeveloper errordeveloper changed the title [CI] refactorcmd/timoni [RFC] refactorcmd/timoni Mar 12, 2024
@errordeveloper errordeveloper force-pushed the cmd-timoni-refactor branch 2 times, most recently from b191e4c to 16617a1 Compare March 14, 2024 09:38
@errordeveloper errordeveloper force-pushed the cmd-timoni-refactor branch 3 times, most recently from de904bc to 0b9f5d7 Compare April 9, 2024 09:56
@errordeveloper
Copy link
Contributor Author

@stefanprodan I've rebased and made it green, there is still some work, but maybe woth a quick review whenever you have a chance?

@errordeveloper errordeveloper force-pushed the cmd-timoni-refactor branch 15 times, most recently from d4e85da to 8e2703d Compare April 24, 2024 10:57
cmd/timoni/main.go Outdated Show resolved Hide resolved
internal/runtime/build/build.go Outdated Show resolved Hide resolved
@stefanprodan
Copy link
Owner

@errordeveloper looks great so far. Will you be adding deletion to the reconciler package?

@errordeveloper
Copy link
Contributor Author

I can add deletion methods in this PR or leave for another one, what would you prefer?

@stefanprodan stefanprodan added enhancement New feature or request area/cli CLI related issues and pull requests labels May 24, 2024
@stefanprodan
Copy link
Owner

I can add deletion methods in this PR or leave for another one, what would you prefer?

I would leave it for another PR, this has lots of good things already, thank you!

@stefanprodan stefanprodan changed the title [RFC] refactorcmd/timoni Refactor cmd/timoni and extract reconciler logic to dedicated package May 24, 2024
@errordeveloper
Copy link
Contributor Author

I would leave it for another PR, this has lots of good things already, thank you!

Ok, I have cleaned up most of the commits, just the last two need some attention. I can resolve sometime soon, but feel free to do it if you would like to merge.
The revert commit needs to be drop with its original commit and the empty TODO commit would need to be dropped.

@errordeveloper
Copy link
Contributor Author

...just the last two need some attention.

all done now!

@errordeveloper errordeveloper marked this pull request as ready for review June 10, 2024 18:59
Provide an interactive and non-interactive version that have different
logging, ensure reasonanble level of reuse within each implementation

Signed-off-by: Ilya Dmitrichenko <[email protected]>
- rename `apply.InstanceApplier` to `reconciler.Reconciler`
- use separate files inside the package
- move interactive functions to dedicated `reconciler.InteractiveReconciler` type

Signed-off-by: Ilya Dmitrichenko <[email protected]>
It turns out that a bare function is not treated the same way as
a struct when it comes to matching it to an interface

Signed-off-by: Ilya Dmitrichenko <[email protected]>
@errordeveloper
Copy link
Contributor Author

@stefanprodan should be good to merge now!

Copy link
Owner

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @errordeveloper 🥇

@stefanprodan stefanprodan merged commit 770e822 into stefanprodan:main Jun 11, 2024
5 checks passed
@errordeveloper errordeveloper deleted the cmd-timoni-refactor branch June 11, 2024 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli CLI related issues and pull requests enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants