[ModuleCatalog] Adapt Watch Mechanism to Monitor ModuleReleaseMeta
CR Changes
#1850
Closed
6 tasks done
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
Description:
The current watch mechanism for
ModuleTemplate
in the Kyma lifecycle manager needs to be adapted to track changes in theModuleReleaseMeta
Custom Resource (CR). This will enable the detection of new versions, channel switches, and other updates related to modules. The existingModuleTemplate
watch mechanism can be found here.Detailed decision ticket: #1815
Requirements:
The new watch mechanism must observe the
ModuleReleaseMeta
CR for changes, including:Kyma Requeue Logic:
ModuleReleaseMeta
.Change in Implementation:
EnqueueRequestsFromMapFunc
insetup.go
to watch changes, which does not allow for the comparison of old and new states of theModuleReleaseMeta
CR.handler.Funcs{...}
. This will allow access to both the old and new states in theUpdate
function for proper reconciliation.Example Code to get the diff in the Watch mechanism:
Acceptance Criteria:
ModuleReleaseMeta
CRs.ModuleTemplate
watch mechanism and replace it completely with a new one.ModuleTemplates
that have a channel assignedModuleReleaseMeta
CR is created, updated, or deleted.The text was updated successfully, but these errors were encountered: