-
Notifications
You must be signed in to change notification settings - Fork 362
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: skip render the subcharts for sealer build. #1690
Conversation
Signed-off-by: tgfree <[email protected]>
@tgfree7 @kakaZhou719 The render for subcharts should be skipped? I think I need more information. |
Render subcharts may list unwanted images, like this: app1:
Registry: release.com
image: app1:v1_2022 and values.yaml for subcharts Registry: test.com
image: app1:v1_2022 In the case, render the subchart And render subcharts may cause the tpl error, if |
@tgfree7 If i'm not mistaken, subcharts has their own values? And of course the parent values could be passed to the subcharts. But what will happen if the user need the "test/com/app1:v1_2022" |
Yes, subcharts has their own values.yaml. |
Okay, I understand what you mean. But in this case, we need to know that the (registry. images) for |
If user assign the |
Codecov ReportBase: 18.06% // Head: 18.41% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1690 +/- ##
==========================================
+ Coverage 18.06% 18.41% +0.35%
==========================================
Files 66 66
Lines 5354 5354
==========================================
+ Hits 967 986 +19
+ Misses 4265 4242 -23
- Partials 122 126 +4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Yes, helm will render, but the render logic in sealer will do the same thing? Could you help confirm this? Write a test for this part will be perfect. |
Yes, i confirm that RenderHelmChart will render in the same way,and i will write a test for the RenderHelmChart. |
@tgfree7 Thanks for your work. I think you can create test samples(subchart included and excluded). And call the function of sealer, check the expected content. |
In the test case, where the chart should i store? in the sealer's path |
@tgfree7 You can create a |
test case added. |
2e7e155
to
c0c14fe
Compare
There is license problem. |
Signed-off-by: tgfree <[email protected]> test: add TestGetImageList unit test. Signed-off-by: tgfree <[email protected]> test: add TestGetImageList unit test. Signed-off-by: tgfree <[email protected]>
c0c14fe
to
3631c4c
Compare
ok, license added. |
LGTM |
Signed-off-by: tgfree [email protected]
Describe what this PR does / why we need it
Skip render the subcharts.
Does this pull request fix one issue?
Try to fix #1689