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
apiVersion: zalando.org/v1kind: KopfExamplemetadata:
name: kopf-example-1spec:
field: value
Caused by the diff detection and reduction algorithms:
The addition of the whole spec field is detected, so that the diff equals to [('add', ('spec',), None, {'field': 'value'})].
The reduction algorithm for spec.field scans the whole diff for all records starting with field-prefix ('spec', 'field'), and finds nothing — ('spec',) does not start with ('spec', 'field').
The handler is not selected for execution.
In addition to the fix, the types of diff structures were clarified and restricted, so that later the diffs can be extended with diff-specific DSL (e.g. diff-slicing, etc).
Types of Changes
Bug fix (non-breaking change which fixes an issue)
Refactoring (types).
Review
List of tasks the reviewer must do to review the PR
Tests
Documentation
The text was updated successfully, but these errors were encountered:
Fix the issue with no calling the field-handlers if the change is too big/generic.
Description
Example original object (note the absence of
spec
!):Changed object:
Caused by the diff detection and reduction algorithms:
spec
field is detected, so that the diff equals to[('add', ('spec',), None, {'field': 'value'})]
.spec.field
scans the whole diff for all records starting with field-prefix('spec', 'field')
, and finds nothing —('spec',)
does not start with('spec', 'field')
.In addition to the fix, the types of diff structures were clarified and restricted, so that later the diffs can be extended with diff-specific DSL (e.g. diff-slicing, etc).
Types of Changes
Review
List of tasks the reviewer must do to review the PR
The text was updated successfully, but these errors were encountered: