flux2
flux2 copied to clipboard
Feature Request - Update old API versions automatically
Describe the bug
Feature Request
I have just used flux
cli to upgrade from v2.2.3
to v2.3.0
. I have noticed that the new API versions (in the CRDs) are not updated along with the flux components.
It will be good if we can update the same, maybe make it optional with a flag to start with?
Steps to reproduce
- Install the old version of flux
- Update to a new version as shown in the documentation.
Expected behavior
N/A
Screenshots and recordings
OS / Distro
MacOS 13.1
Flux version
v2.3.0
Flux check
❯ flux check
► checking prerequisites
✔ Kubernetes 1.28.5 >=1.28.0-0
► checking version in cluster
✔ distribution: flux-v2.2.3
✔ bootstrapped: true
► checking controllers
✔ helm-controller: deployment ready
► ghcr.io/fluxcd/helm-controller:v0.37.4
✔ image-automation-controller: deployment ready
► ghcr.io/fluxcd/image-automation-controller:v0.37.1
✔ image-reflector-controller: deployment ready
► ghcr.io/fluxcd/image-reflector-controller:v0.31.2
✔ kustomize-controller: deployment ready
► ghcr.io/fluxcd/kustomize-controller:v1.2.2
✔ notification-controller: deployment ready
► ghcr.io/fluxcd/notification-controller:v1.2.4
✔ source-controller: deployment ready
► ghcr.io/fluxcd/source-controller:v1.2.4
► checking crds
✔ alerts.notification.toolkit.fluxcd.io/v1beta3
✔ buckets.source.toolkit.fluxcd.io/v1beta2
✔ gitrepositories.source.toolkit.fluxcd.io/v1
✔ helmcharts.source.toolkit.fluxcd.io/v1beta2
✔ helmreleases.helm.toolkit.fluxcd.io/v2beta2
✔ helmrepositories.source.toolkit.fluxcd.io/v1beta2
✔ imagepolicies.image.toolkit.fluxcd.io/v1beta2
✔ imagerepositories.image.toolkit.fluxcd.io/v1beta2
✔ imageupdateautomations.image.toolkit.fluxcd.io/v1beta1
✔ kustomizations.kustomize.toolkit.fluxcd.io/v1
✔ ocirepositories.source.toolkit.fluxcd.io/v1beta2
✔ providers.notification.toolkit.fluxcd.io/v1beta3
✔ receivers.notification.toolkit.fluxcd.io/v1
✔ all checks passed
Git provider
GitHub
Container Registry provider
DockerHub
Additional context
To use the new API versions in the CRDs, I have just updated it manually.
For example, I have updated source.toolkit.fluxcd.io/v1beta2
to source.toolkit.fluxcd.io/v1
Code of Conduct
- [X] I agree to follow this project's Code of Conduct