You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both concepts are actually quite tied together because usually, if you cannot use the generic matching behavior, this means that you also cannot update the associated resources. This usually means that you need to implement ResourceUpdatePreProcessor if you implement Matcher, for example, if your dependent needs to update the metadata, it probably also need to check whether the actual resource matches the desired one by examining the metadata. However, if you only implement Matcher, your dependent will use the default updating logic, which will only consider the spec part. To fix that problem, you must also implement ResourceUpdatePreProcessor. However, this makes things awkward because we now have a matches method on that interface. We therefore need to unify both Matcher and Updater interfaces by recognising that both are linked and specific behavior in one usually requires specific behavior in the other. This work was started in #1786 but needs to be cleaned-up further.
The text was updated successfully, but these errors were encountered:
Note that the current implementation is flawed because custom
ResourceUpdatePreProcessor should be registered to be found when
attempting to use custom matching logic. See also #1914 for more
details.
* fix: clean-up unneeded matcher field
* fix: restore backwards compatibility
Note that the current implementation is flawed because custom
ResourceUpdatePreProcessor should be registered to be found when
attempting to use custom matching logic. See also #1914 for more
details.
Both concepts are actually quite tied together because usually, if you cannot use the generic matching behavior, this means that you also cannot update the associated resources. This usually means that you need to implement
ResourceUpdatePreProcessor
if you implementMatcher
, for example, if your dependent needs to update the metadata, it probably also need to check whether the actual resource matches the desired one by examining the metadata. However, if you only implementMatcher
, your dependent will use the default updating logic, which will only consider thespec
part. To fix that problem, you must also implementResourceUpdatePreProcessor
. However, this makes things awkward because we now have amatches
method on that interface. We therefore need to unify bothMatcher
andUpdater
interfaces by recognising that both are linked and specific behavior in one usually requires specific behavior in the other. This work was started in #1786 but needs to be cleaned-up further.The text was updated successfully, but these errors were encountered: