Closed max-allan-cgr closed 7 months ago
It seems that the new crd is not available. Can you try kubectl api-resources --api-group=helm.toolkit.fluxcd.io
kubectl api-resources --api-group=helm.toolkit.fluxcd.io
NAME SHORTNAMES APIVERSION NAMESPACED KIND
helmreleases hr helm.toolkit.fluxcd.io/v2beta1 true HelmRelease
As I would expect from deploying v2beta1
The error is about the new controller installation failing because it cannot find the right crd. You can install the crd with version v1beta2
by running make install
from this repo.
can we close this issue @max-allan-cgr ?
If you think "controller will continue to reconcile HelmRelease resources of the v2beta1 API without requiring any changes" is the same as "install make, download code from github, run make to create the new version of the API" then sure, why not?
Maybe I'm misunderstanding something. Put simply: I was running code at v1 and upgraded code to v2 and v2 claims to be backwardly compatible with v1 objects. But it doesn't work without v2 objects, so isn't compatible.
Kubernetes objects (aka custom resources) require a schema (aka custom resource definitions), compatibility in Kubernetes is between object versions only when the schema contains all versions. You can't update a Kubernetes controller without updating the CRDs.
Hi,
If I deploy Flux version 2beta1 and try to use the latest helm-controller, I get an error about v2beta2, which suggests to me the backward compatibility is not quite right. It could be something completely different though!
Replace the image with
fluxcd/helm-controller:v0.37.4-helm3140
and check the logs of the new pod:This could be a bug with the helm chart, but the charts work well with all components at the same API version. And I experience a similar error with
cgr.dev/chainguard/flux-helm-controller:latest
(Obviously not your image, but looks to be implemented slightly differently and getting very nearly the same error.)
In the release notes: https://github.com/fluxcd/helm-controller/blob/v0.37.0/CHANGELOG.md
It says:
We're only about 3.5 months from 12/12/23.