-
Notifications
You must be signed in to change notification settings - Fork 634
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Unable to work with HelmRelease with v2.2.1 #4490
Comments
The HelmRelease API Version changed in 2.2, it looks like there is a mismatch between your Flux version (cli) and your flux version (distribution in the cluster):
Did you upgrade Flux on the cluster with |
So does that mean CLI v2.2 is a backward incompatible version from v2.0 or v2.1? |
Yes, the CLI ensures backwards compatibility only for GA APIs, for beta versions you need a CLI that matches the cluster version. |
how does one go about re-installing the
|
@0xStarcat, you will have to do |
@stefanprodan, by "GA APIs", do you mean I am, by no means, saying it is impossible to work around this issue. I have downloaded v2.1.2 CLI, and that version works. I am, however, trying to point out that this is a poor user experience. I updated a CLI, trusting the semantic versioning, and now I am faced with a backward incompatible issue, which is exactly the problem that the semantic versioning is trying to fix. |
Flux v1 was https://github.com/fluxcd/flux, before Flux v2 we used to have a We actively advertise instability for a range of commands in their $ flux get helmrelease --help
The get helmreleases command prints the statuses of the resources.
⚠️ Please note that this command is in preview and under development.
While we try our best to not introduce breaking changes, they may occur when
we adapt to new features and/or find better ways to facilitate what it does.
... |
Going to chime in here about the "user-experience" If i am upgrading Flux across multiple environments say from version To add to this, I would not expect |
Encountered the same issue with Flux 2.0.0, but successfully resolved it by upgrading to 2.2.3. The latest patch addresses the Helm breaking change and I think we can now consider closing this issue and related ones. |
I've just encountered this issue.
But I get an error when attempting to get HelmReleases:
Did a I want to upgrade the Flux version in my cluster, is there anything I need to worry about when doing this? Other than blocking other members of my team from interacting with Flux until they update their CLI version. |
@Mo0rBy this is usually a connection issue. You should check you |
@souleb I double checked the context I was using and it was the correct one. As I said, I downgraded my Flux CLI version to 2.1.2 and then my command worked as expected. |
Flux v2.2 comes with HelmRelease API v2beta2, you need upgrade your clusters to be able to use v2.2 CLI. |
@stefanprodan Is that just running the bootstrap command to upgrade the version used in the cluster? |
I think the upgrade process depends on how it was initially created. That means you should use the CLI if you used it to initialize Flux, instead of Terraform or plain manifests. And yes, re-running the boostrap command would upgrade Flux on the server-side. With that said, the upgrade process of the HelmReleases is manual AFAIK, and for a good reason, some of the behavior of how the helm-controller changed, and thus, features like drift detection are now configurable on a resource level. I would advise following gradual changes by manually replacing the apiVersion of less important resources and then upgrade the remaining resources fully. |
Awesome, thanks @gruberdev, something I'll try later, other important things to do for now. |
Describe the bug
Starting with v2.2.0 and continuing in v2.2.1, I am not able to interact with HelmReleases.
Steps to reproduce
$ flux get hr -A ✗ failed to get API group resources: unable to retrieve the complete list of server APIs: helm.toolkit.fluxcd.io/v2beta2: the server could not find the requested resource
Expected behavior
Same behaviour as v2.1.2
Screenshots and recordings
No response
OS / Distro
macOS 14.1.2
Flux version
v2.2.1
Flux check
► checking prerequisites
✗ Kubernetes version v1.24.17-eks-8cb36c9 does not match >=1.26.0-0
► checking version in cluster
✔ distribution: flux-v2.0.1
✔ bootstrapped: true
► checking controllers
✔ helm-controller: deployment ready
► ghcr.io/fluxcd/helm-controller:v0.35.0
✔ kustomize-controller: deployment ready
► ghcr.io/fluxcd/kustomize-controller:v1.0.1
✔ notification-controller: deployment ready
► ghcr.io/fluxcd/notification-controller:v1.0.0
✔ source-controller: deployment ready
► ghcr.io/fluxcd/source-controller:v1.0.1
► checking crds
✔ alerts.notification.toolkit.fluxcd.io/v1beta2
✔ buckets.source.toolkit.fluxcd.io/v1beta2
✔ gitrepositories.source.toolkit.fluxcd.io/v1
✔ helmcharts.source.toolkit.fluxcd.io/v1beta2
✔ helmreleases.helm.toolkit.fluxcd.io/v2beta1
✔ helmrepositories.source.toolkit.fluxcd.io/v1beta2
✔ kustomizations.kustomize.toolkit.fluxcd.io/v1
✔ ocirepositories.source.toolkit.fluxcd.io/v1beta2
✔ providers.notification.toolkit.fluxcd.io/v1beta2
✔ receivers.notification.toolkit.fluxcd.io/v1
✗ check failed
Git provider
No response
Container Registry provider
No response
Additional context
This is similar to Issue 4474.
Code of Conduct
The text was updated successfully, but these errors were encountered: