Perform incremental upgrades for specific releases. #2731
-
Hi guys! On a test environment, I test how to upgrade a release of the harbor project chart (https://artifacthub.io/packages/helm/harbor/harbor). If I use fluxcd for the upgrade, and I specify no
So far, so good. But: Harbor has a known (and very annoying) bug, that if you skip a version, an error is logged in a component named To avoid this, you need are not allowed to skip a version. If you take a look at the released versions of the chart (they are 1.7.5, 1.8.0, 1.8.1, 1.8.2, 1.9.0). I would like to instruct flux to perform this when upgrading (e.g. apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: harbor
namespace: harbor
spec:
interval: 1m0s
upgrade:
incremental: true #run in incremental mode -> no version is skipped
chart:
spec:
version: 1.9.*
chart: harbor
sourceRef:
kind: HelmRepository
name: helm-repo The Helm-Controller should perform the upgrade to each version incrementally, resulting in the following history:
So I have the following questions:
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You could write some CI job or GH Action that figures out which version comes next and patches the HelmRelease YAML in Git using We are currently working on OCI support for Helm and after that we have a huge backlog of things to do for Flux v2 GA. Implementing incremental upgrades would require substantial changes to the source controller reconcilers (HelmRepo, OCIRepo, HelmChart), such a major change can't happen this year. |
Beta Was this translation helpful? Give feedback.
You could write some CI job or GH Action that figures out which version comes next and patches the HelmRelease YAML in Git using
yq
.We are currently working on OCI support for Helm and after that we have a huge backlog of things to do for Flux v2 GA. Implementing incremental upgrades would require substantial changes to the source controller reconcilers (HelmRepo, OCIRepo, HelmChart), such a major change can't happen this year.