-
Notifications
You must be signed in to change notification settings - Fork 25
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
feat: Parse HelmRelease with chartRef #709
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #709 +/- ##
==========================================
- Coverage 93.48% 93.26% -0.22%
==========================================
Files 20 20
Lines 2165 2199 +34
==========================================
+ Hits 2024 2051 +27
- Misses 141 148 +7 ☔ View full report in Codecov by Sentry. |
I'll look at the failures in a few hours. |
b51fb03
to
9f4400c
Compare
I'm not sure what the CI failure is. "Resource not accessible by integration"? |
Thank you for this contribution! I think the failure may be a permission issue trying to post the diff to the PR comment thread (likely something already broken before your change). I'd love to see what it would take to get this feature fully working e.g. if its loading the chart from somewhere else, we may be able to make it work similar to how values from references work. Have you thought about what it would take? Either way, will be happy to review in depth. (may take a few days) |
Yeah I hope to follow up with more code to handle dereferencing the |
I'd like to understand more about where this is headed. The reason is because of the change to make the chart option touched a lot of parts of the code. If we're just ignoring them, then I want to find sinpler ways to ignore them until I better understand the plan to add useful functionality for them. So is the goal for now just to make flux local not fail? |
This specific PR is only to allow flux-local to not throw an exception parsing |
This patch adds minimal support for parsing HelmRelease objects with a `chartRef` field instead of a `chart`. There is no support for processing such releases in any way, but at least flux-local won't abort during parsing.
Given that this adds no other functionality, then i'd like to find a way to make minimal code changes to do the filtering only. (essentially do it without changing the types to make the chart optional which is the part that requires many other changes) Adding actual support for this feature might be a heavy lift, and if you don't intend to add full support then i'd rather not have half way support and have the complexity in the code of making the chart optional. Happy to talk about how to design full support for this (which may be similar to substituteFrom, but i'm not sure). |
I think I do want to implement this fully. I only did a rebase to avoid too much upstream drift. I will have some time later in the summer when I take some time off. |
OK, i'm happy to start with filtering then adding full support when ready. |
I would really like to see a solution here, because using one chartRef makes flux-local in the way it is used also for diff in the cluster-template completely unusable. To better show you an example, what I‘m speaking of: |
A solution I would accept is to filter them out with minimal code changes so the rest of the cluster still works, given we don't have a proposal to fully support. |
At the moment I have commented out the full helmrelease part of the flux-diff workflow. A solution, that filters out the helmreleases with chartRef and run the others would be a good progress.👏 |
This is a pre-requisite for adding support for [chartRef](https://fluxcd.io/flux/components/helm/helmreleases/#chart-reference) chart references Related PR: #709
Looking at this closer, I don't think we need to populate a |
Add support for parsing an OCIRepository https://fluxcd.io/flux/components/helm/helmreleases/#chart-reference Obsoletes #709
I think i was able to get full support working in #769 |
Thanks for working on it, I was just about to start looking into this again (finally on vacation!). |
This patch adds minimal support for parsing HelmRelease objects with
a
chartRef
field instead of achart
. There is no support forprocessing such releases in any way, but at least flux-local won't abort
during parsing.