-
Notifications
You must be signed in to change notification settings - Fork 110
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
diff internals: Introducing a DiffResource(s) struct #635
Comments
This seems reasonable to me, but I am not sure if it qualifies as a "Factory". |
True, its not a factory just because it hss a complex constructor... ^^ |
I am totally for scoping these to a struct. I am wondering if a single struct (just like DiffResourcesFactory) which has functions returning appropriate values would suffice. Especially since most of these are called at most twice. I do not have a lot of context regarding the Kustomise suffix PR at the moment, but I am definitely for scoping and grouping related functions. If you think this change will benefit the ongoing PR, I am definitely for this! |
I am yet to go through the other PR, but I am assigning this to you for the time being 🚀 |
There are some methods in
changeset_with_versioned_rs.go
that could qualify for a dedicated type/struct:Originally posted by @100mik in #571 (comment)
The changes introduced in #571 actually introduced a conflict with "far-reaching" consequences to my #517 PR.
(71 and 17, what a coincidence!)
I thought about the following there, what do you think about it?
I would try to implement that in a dedicated PR.
Note that My PR also introduces an abstraction for
VersionedResource
, but i never was quite happy with that name, maybe that could be lifted up into aDiffResource
, extracting it from my PR into the new/dedicated PR?The text was updated successfully, but these errors were encountered: