-
Notifications
You must be signed in to change notification settings - Fork 85
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: Fix issue preventing from detecting images from a Helm Chart with an aliased sub-chart #1038
base: main
Are you sure you want to change the base?
Conversation
… the Chart Otherwise, the error is hidden and it gets hard to figure out what's wrong.
This way, the aliased subcharts are processed correctly. This is how `helm template` seems to handle subcharts.
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: rm3l The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
And
Any clue why the tests are failing? I couldn't determine if the failures are related to the changes in this PR. /retest |
/test okd-scos-e2e-aws-ovn |
@rm3l: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
@rm3l We appreciate the contribution. At the moment we are super busy with GA tasks but we'll review the PR as soon as we can. |
Description
This PR fixes the issue reported in #1037, where
oc-mirror
might not be able to detect the images from a Helm Chart that has an aliased sub-chart. See #1037 for more context.This PR mimics what
helm template
does, by processing the dependencies prior to rendering the values. This ensures that the aliases are properly resolved.Since this is my very first contribution to this repo, please do let me know if I've missed anything.
Thanks.
Github / Jira issue:
Fixes #1037
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
A new test case with a sample chart archive has been provided. The test would fail without the changes in
pkg/cli/mirror/helm.go
.Expected Outcome
Tests should pass.