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

Introduce DiffResources struct #665

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

criztovyl
Copy link

What this PR does / why we need it:

See #635

Which issue(s) this PR fixes:

Fixes #635

Does this PR introduce a user-facing change?

NONE

Additional Notes for your reviewer:

Review Checklist:
  • Follows the developer guidelines
  • Relevant tests are added or updated
  • Relevant docs in this repo added or updated
  • Relevant carvel.dev docs added or updated in a separate PR and there's
    a link to that PR
  • Code is at least as readable and maintainable as it was before this
    change

Additional documentation e.g., Proposal, usage docs, etc.:


@criztovyl
Copy link
Author

This is a first take, I'll try to integrate this into my PR to demonstrate that it actually helps :)

@100mik
Copy link
Contributor

100mik commented Jan 2, 2023

Thanks for the PR! Will take a closer look at this.

ExistingResources, NewResources versionedResources
ExistingResourcesGrouped map[string][]ctlres.Resource

newRs []ctlres.Resource
Copy link
Author

Choose a reason for hiding this comment

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

saving newRs is only a workaround for RenewableResources, I would prefer a different approach, but did not want to spend to much time here for the moment :)

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.

diff internals: Introducing a DiffResource(s) struct
2 participants