sylva-units-operator may take a time to upgrade operators

Summary

This issue was observed in this job where operator is upgraded from 1.1.2 to 1.1.4 with an upgrade OCIrepositories to source.toolkit.fluxcd.io/v1 in the operator.

Since the operator has to create the source twice, it took time to upgrade the controllers, but we can see in the dump that the sources are finally reconciled:

https://gitlab.com/sylva-projects/sylva-core/-/jobs/12454981189/artifacts/external_file/management-cluster-dump/OCIRepositories.summary.txt

And the sylva-units-release has PreUpgradeUnitsUpToDate and HelmReleaseUpToDate conditions set to True.

https://gitlab.com/sylva-projects/sylva-core/-/jobs/12454981189/artifacts/file/management-cluster-dump/SylvaUnitsReleases.yaml

We should add an extra delay in reconcile_sylva_units to wait for PreUpgradeUnitsUpToDate before waiting for HelmReleaseUpToDate condition.

Assignee Loading
Time tracking Loading