-
Notifications
You must be signed in to change notification settings - Fork 205
Update dependencies #1805
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
Update dependencies #1805
Conversation
0576287
to
41abf96
Compare
Lots of issues with Helm 3.18 due to the upgrade of ORAS from v1 to v2. Login to container registries is broken:
We'll postpone to upgrade to Helm 3.18 for Flux 2.7 |
Does the error indicate that since the login failed, there is nothing in the creds file (or it wasn't created) causing a EOF. |
Reopening just to test some fixes in CI |
3d5b499
to
e81e6cd
Compare
That change related to the floats may not be required because there was a change similar to that that was reverted for 3.18.1 |
Ideally, you wouldn't need to make these changes with 3.18.1, but I don't yet understand all the problems |
Signed-off-by: Stefan Prodan <[email protected]>
Signed-off-by: Stefan Prodan <[email protected]>
Signed-off-by: Matheus Pimenta <[email protected]>
@@ -112,7 +113,7 @@ func TestLocalBuilder_Build(t *testing.T) { | |||
name: "default values", | |||
reference: LocalReference{Path: "../testdata/charts/helmchart"}, | |||
wantValues: chartutil.Values{ | |||
"replicaCount": float64(1), | |||
"replicaCount": json.Number("1"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be concerned that 3.18.1 will be broken with this change.
Signed-off-by: Matheus Pimenta <[email protected]>
Tests are passing now, but I still prefer not to ship 3.18.0 |
I'll keep this branch around though, it's documenting a few things we need to do:
|
I'd still like to understand the file issue |
It's actually simple: oras v1 was writing to The first thing that oras v2 does with this empty file is try to parse a JSON from it, which obviously fails with The fix for our CI to pass here is just not creating and passing down this empty file to helm/oras anymore. We were never reusing this file anywhere else in the reconciliation code except for deleting it at the end, so I think in our case just removing the code that creates it, passes it down to helm/oras and deletes it at the end is enough. |
I hope ORAS v2 can take the auth data directly without having to write files on disk. If that's not the case, then we should look into replacing ORAS with |
I ran this test step by step on the debugger to investigate: source-controller/internal/controller/helmchart_controller_test.go Lines 2412 to 2434 in 98b2edc
Looks like helm and oras v2 are keeping the username/password entirely in memory with this: So I don't think oras v2 is writing this to disk, @TerryHowe can probably confirm? Maybe we should use |
Updates:
Part of: fluxcd/flux2#5363