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

Adds implementation of Helm OCI refererrs endpoint. #7131

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

absoludity
Copy link
Contributor

Description of the change

After a small refactor to re-use an existing test function, this PR adds the implementation for fetching the referrers of an OCI chart.

This includes using the annotations in the referrers for the name/description returned (for better UX) as well as an http fake for handling the OCI requests in tests.

Applicable issues

Additional information

Copy link

netlify bot commented Nov 24, 2023

Deploy Preview for kubeapps-dev canceled.

Name Link
🔨 Latest commit d69030b
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/6563f290e45fc7000814436a

Comment on lines -271 to +275
func newServerWithSecretsAndRepos(t *testing.T, secrets []k8sruntime.Object, unstructuredObjs []k8sruntime.Object, repos []*v1alpha1.AppRepository) *Server {
func newServerWithSecretsAndRepos(t *testing.T, secrets []k8sruntime.Object, repos []*v1alpha1.AppRepository) *Server {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I needed something similar to this function, which was created for the updated repository tests, but noticed that every call-site was simply creating the unstructured objects from the repos that were also passed in. So I refactored so call-sites don't need to create and pass the unstructured objects at all.

Including title and description annotations, with tests.

Signed-off-by: Michael Nelson <minelson@vmware.com>
Signed-off-by: Michael Nelson <minelson@vmware.com>
@absoludity absoludity merged commit 8e706ac into main Nov 27, 2023
39 checks passed
@absoludity absoludity deleted the 7038-helm-implementation-2 branch November 27, 2023 02:03
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.

None yet

2 participants