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 some names to avoid confusion between OCI repositories and Helm repositories. #6680

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

absoludity
Copy link
Contributor

@absoludity absoludity commented Aug 23, 2023

Description of the change

The code currently talks about OCI repositories and Helm repositories and Helm repositories that are OCI registries. This PR is just splitting out some renaming to avoid the confusion, so instead we have:

  • Repo model -> AppRepository which correspond to our AppRepository custom resource which can represent a Helm repository or an OCI registry (or a namespace within an OCI registry) which contains many oci repositories.
  • Repo interace -> ChartCatalog interface, as this is implemented by both Helm and OCI versions

It contains another small refactor pulling out a ocicatalog_client.NewClient helper.

Leaving as draft for now in case I come across any other straight renames/refactors in the current work.

Applicable issues

Additional information

@netlify
Copy link

netlify bot commented Aug 23, 2023

Deploy Preview for kubeapps-dev ready!

Name Link
🔨 Latest commit 2dc3d19
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/64e6aadac627a30008a67843
😎 Deploy Preview https://deploy-preview-6680--kubeapps-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@absoludity absoludity marked this pull request as draft August 23, 2023 02:02
@absoludity absoludity marked this pull request as ready for review August 24, 2023 01:21
@absoludity absoludity merged commit 547ec28 into main Aug 24, 2023
40 checks passed
@absoludity absoludity deleted the 6363-sync-via-oci-catalog branch August 24, 2023 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants