1
0
mirror of synced 2026-02-13 13:06:56 +00:00

Update HelmRelease to v2beta2

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan
2023-12-12 11:07:01 +02:00
parent bed6efa671
commit 437a943677
25 changed files with 73 additions and 70 deletions

View File

@@ -31,7 +31,7 @@ import (
"k8s.io/client-go/util/retry"
"sigs.k8s.io/controller-runtime/pkg/client"
helmv2 "github.com/fluxcd/helm-controller/api/v2beta1"
helmv2 "github.com/fluxcd/helm-controller/api/v2beta2"
"github.com/fluxcd/pkg/apis/meta"
"github.com/fluxcd/flux2/v2/internal/utils"
@@ -179,10 +179,10 @@ func requestReconciliation(ctx context.Context, kubeClient client.Client,
// HelmRelease specific annotations to force or reset a release.
if gvk.Kind == helmv2.HelmReleaseKind {
if rhrArgs.syncForce {
annotations["reconcile.fluxcd.io/forceAt"] = ts
annotations[helmv2.ForceRequestAnnotation] = ts
}
if rhrArgs.syncReset {
annotations["reconcile.fluxcd.io/resetAt"] = ts
annotations[helmv2.ResetRequestAnnotation] = ts
}
}