-
Notifications
You must be signed in to change notification settings - Fork 706
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 fluxcd catalog #7132
fix fluxcd catalog #7132
Conversation
✅ Deploy Preview for kubeapps-dev ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
@kvaps, we have received your signed contributor license agreement. The review is usually completed within a week, but may take longer under certain circumstances. Another comment will be added to the pull request to notify you when the merge can proceed. |
Thanks @kvaps for jumping in and looking for a solution!
[...] That's interesting! Actually, checking, I don't think it was introduced by #4506 as, at the time the v1beta2 API was released, it was still using Now in our CI, it's clear that we haven't been able to prioritise work on the fluxcd support for some time, with the version being used in CI still at v0.37.0 (of fluxcd, not source-controller) and that release still uses v0.32.1 of source-controller, well before the I say all that only to show why it might require a little more work than just changing the lines over to use At a minimum:
We can then let your PR here run against the CI tests. It could be that it passes as is, but more likely:
So for now, if you can update Cheers |
@kvaps, VMware has approved your signed contributor license agreement. |
22d354e
to
658b688
Compare
@absoludity thank you for feedback PR rebased |
Thanks @kvaps . So
in the above test_go in the CI runs, there's an error:
We'll need to update the versions in the go.mod too, so the code is using the newer fluxcd versions. |
Fluxcd's HelmRepository v1beta2 has no status.artifact.checksum field, it uses status.artifact.digest instead. Bump fluxcd version in e2e test to cover this case. Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
c3d3137
to
d2dbd5e
Compare
Thanks @kvaps . I'll run CI with those changes, but I see you had to (?) update the k8s libraries, which unfortunately won't work yet, I don't think (we'd been holding off the k8s client-go (and friends) 0.26->0.28 upgrade because it needs some manual work. So we may need to pause this PR until that work is done. Let's see when I run. |
Yup, because:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I've been putting together some upgrades (mainly for triggering CI and checking it effectively works) at #7219. I'd like to upgrade the CI first and perform a IRL check everything works as expected first. Let's see if after holidays we can finally merge it and get flux our flux plugin up to date again. |
#7219) ### Description of the change This PR is bumping up some dependencies together, as they are somehow coupled. Besides, it performs some changes on the Flux resources (including the changes performed in #7132 from @kvaps; thank you for the PR!) to make it compatible with their v2.0.0 release onwards. As pointed out in #7132 (comment), some additional changes were required, namely: - Effectively use latest Flux version in CI, for identifying the issue. - Replace `PollInfinite` with `PollUntilContextCancel` bc of a k8s deprecation. - Rename fluxcd imports to `sourcev1beta2` to clearly identify which version we are using. - Add TODOs for using `CertSecretRef` in the future (upcoming deprecation, but it will be addressed in a separate PR). - Minor change in method signature because of the kapp-ctrl upgrade. ### Benefits We'll be able again to get dependabot's upgrades in these dependencies and, more importantly, Kubeapps will work again with latest FluxCD releases. ### Possible drawbacks Conversely, Kubeapps will likely fail with Flux2 version prior to 2.0.0. See more information and migration guide at: https://github.com/fluxcd/flux2/releases/tag/v2.0.0 ### Applicable issues - fixes #6863 ### Additional information N/A --------- Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Hi @kvaps, thank you for reporting the issue and sending the fix. As it turned out to be a more complex change, involving several deps, CI changes, etc. I ended up addressing everything together at #7219. There's still some pending work (like migrating to Let me close the PR, but please feel free to contribute again. Thanks again! |
Description of the change
Fluxcd's HelmRepository
v1beta2
has nostatus.artifact.checksum
fieldBenefits
Possible drawbacks
Applicable issues
fixes #6863
regression introduced by #4506
Additional information