Skip to content

Commit 01a8e23

Browse files
committed
fix: check HelmReleaseReadyCondition when status is up-to-date
Only checking for HelmReleaseReadyCondition may not be enough, especially during cluster upgrades where the values in the HCP have changed.
1 parent 3f0ad84 commit 01a8e23

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/handlers/generic/lifecycle/addons/helmaddon.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,10 @@ func waitToBeReady(
227227
Reader: client,
228228
Target: hcp.DeepCopy(),
229229
Check: func(_ context.Context, obj *caaphv1.HelmChartProxy) (bool, error) {
230-
return conditions.IsTrue(obj, caaphv1.HelmReleaseProxiesReadyCondition), nil
230+
if obj.ObjectMeta.Generation != obj.Status.ObservedGeneration {
231+
return false, nil
232+
}
233+
return conditions.IsTrue(obj, caaphv1.HelmReleaseReadyCondition), nil
231234
},
232235
Interval: 5 * time.Second,
233236
Timeout: 30 * time.Second,

0 commit comments

Comments
 (0)