-
Notifications
You must be signed in to change notification settings - Fork 28
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
Fix Helm chart OCI registry handling #356
Conversation
@@ -197,6 +197,10 @@ func TestDownloadChart_FailedRegistryLogin(t *testing.T) { | |||
helmChart := &image.HelmChart{} | |||
helmRepo := &image.HelmRepository{ | |||
URL: "oci://registry-1.docker.io/bitnamicharts/apache", | |||
Authentication: image.HelmAuthentication{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a test case without credentials?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say this is covered in TestDownloadChart as it uses an OCI repository with no credentials while all of the other failure cases of downloadChart are covered.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really. In fact we need to split up the cases where we:
- return
nil
if there are credentials for successful operation - return error if there are credentials for failed operation
- panic if there aren't credentials since the function should then never be called
* fix handling for oci registries * update release notes and test * add valid registry login case
Closes #355 .