-
Notifications
You must be signed in to change notification settings - Fork 707
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for OCI tarball url (#8184)
### Description of the change This PR aims to fix #8153 by resolving this error: ``` E1219 15:25:15.632218 1 utils.go:1024] Failed to import files, ID=bitnami/nginx, version=17.3.3: Get "oci://registry-1.docker.io/bitnamicharts/nginx:17.3.3": unsupported protocol scheme "oci" ``` ### Benefits Currently, the kubeapps-asset-syncer is unable to fetch the information when the chart URL is stored in OCI. In this PR, the chart tarballUrl is transformed when the oci schema is detected and replaced by its OCI blob URL, so the asset syncer will be able to fetch the chart tarball the same way as it does for non-OCI charts. ### Possible drawbacks None known. ### Applicable issues <!-- Enter any applicable Issues here (You can reference an issue using #) --> - fixes #8153 --------- Signed-off-by: Miguel Ruiz <miguel.ruiz@broadcom.com> Co-authored-by: Beltran Rueda <beltranrueda@vmware.com>
- Loading branch information
1 parent
3fb5e43
commit c0fabfb
Showing
5 changed files
with
45 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters