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

Fix icon URL for some (not all) charts #1051

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

adamkpickering
Copy link
Collaborator

In rancher/partner-charts-ci#22 I modified the download-icons subcommand of partner-charts-ci (and also renamed it to ensure-icons). It now does more. This PR is the result of running partner-charts-ci ensure-icons on this repo - it downloads icons for more charts than we could get before.

If you're curious as to why we couldn't get these icons before, the answer is technical debt. There was a function called populatePackages() that was the only way to list packages. But this function did more than that: it also checked whether there were any new upstream versions for a package. For some packages (i.e. the ones for which icons are added in this PR), there were errors when running populatePackages(), so they were skipped.

The reason I am able to add icons for them here is because I have split populatePackages() by function: listPackageWrappers() now lists packages, and PackageWrapper.Populate() checks upstream for new versions. partner-charts-ci ensure-icons only needs to call listPackageWrappers(), so we can avoid the errors on PackageWrapper.Populate() for these packages.

@recena
Copy link
Collaborator

recena commented Jul 12, 2024

What about the new ones like this?

@adamkpickering
Copy link
Collaborator Author

After PRs that add new packages are merged, running partner-charts-ci auto will ensure the icons are there in addition to the other things that it does.

diogoasouza
diogoasouza previously approved these changes Jul 12, 2024
@recena
Copy link
Collaborator

recena commented Jul 13, 2024

assets/icons/cf-runtime.jpg looks a wrong file.

@adamkpickering
Copy link
Collaborator Author

Good catch @recena. It should be fixed now.

@adamkpickering adamkpickering merged commit 7cce40a into rancher:main-source Jul 16, 2024
1 check passed
@adamkpickering adamkpickering deleted the fix-some-icons branch July 16, 2024 17:33
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.

None yet

3 participants