To add reconciliation time stamps
📑 Description
Updated the setStatus function in the ModuleReconciler to include the FinishedAt timestamp in the reconciliation status. The FinishedAt field now uses the current time, formatted as a string in RFC3339 format. Updated the custom JSON marshaler and unmarshaler for ReconciliationStatus to handle this timestamp field correctly. Fixes #430
- Added
FinishedAtfield of typestringtoReconciliationStatus. - Updated
setStatusfunction to setFinishedAtto the current time in RFC3339 format. - Implemented custom JSON marshaler and unmarshaler for converting
FinishedAtbetweentime.Timeandstring.
✅ Checks
- [x] I have tested my code:
- [x] I have performed a self-review of my code:
- Ensured
setStatusfunction updates theFinishedAttimestamp correctly. - Verified that the custom JSON marshaler and unmarshaler handle the
FinishedAtfield as expected.
- Ensured
ℹ Additional context
- Related Code Changes:
- Updated the
ReconciliationStatusstruct to include aFinishedAtfield. - Modified the
setStatusfunction in theModuleReconcilerto set theFinishedAtfield to the current time. - Implemented JSON marshaler and unmarshaler for proper handling of the
FinishedAttimestamp.
- Updated the
@Abiji-2020 check the CI. Its failing on unused import
Updates
There is a time package which was planned to use initally and then i have'nt used it so now i had removed it.
How can i check for this checking as again tests in CI is failing?
The code was updated and the formatting was cleared
Hey @Abiji-2020, I tried running Cyclops from your branch one more time and found that Modules kept reconciling endlessly. The issue is that on each reconciliation, finishedAt is updated with a different timestamp, which then triggers a new reconciliation.
We need to change our reconciliation policy in order to include this PR and not trigger unnecessary reconciliations
Hey @Abiji-2020, I tried running Cyclops from your branch one more time and found that Modules kept reconciling endlessly. The issue is that on each reconciliation,
finishedAtis updated with a different timestamp, which then triggers a new reconciliation.We need to change our reconciliation policy in order to include this PR and not trigger unnecessary reconciliations
so What can we do now. Like modifications.?
@Abiji-2020 yeah, I will make a PR that will introduce event filter so reconciliation is not triggered on every module update. Will update here when that PR is merged and merge yours as well :)
@petar-cvit any updates on this?