fluxcd / helm-controller

The GitOps Toolkit Helm reconciler, for declarative Helming
https://fluxcd.io
Apache License 2.0
407 stars 160 forks source link

Prevent snapshot drift when upgrading to API v2 #975

Closed stefanprodan closed 4 months ago

stefanprodan commented 4 months ago

Mark Observation.OCIDigest as omitempty to avoid a snapshot drift when upgrading to API v2.

Before this fix, when updating the controller & CRDs from v0.x to v1.0 all releases were upgraded due to:

release not managed by controller: release not observed to be made for object

Whit this fix, the history snapshot remains unchanged, as the OCI digest empty string is no longer included in the calculation of the config digest.

Followup: https://github.com/fluxcd/helm-controller/pull/905

fluxcdbot commented 4 months ago

Successfully created backport PR for release/v1.0.x: