Support carrying values with multiple reconcilers
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 42/100
Research direction
Start in reconciler/incremental.go around line 253 to trace how revision mismatches discard object changes during multiple reconciliations. Review pkg/loadbalancer/frontend.go for the existing Frontend.ID mutation example. Done means a value carried through multiple reconcilers is preserved in the committed object without losing status updates.
Written by the indexing model from the issue text.
Description
The reconciler allows the Update operation to mutate the object passed to it. This is used for example to set the Frontend.ID in pkg/loadbalancer/frontend.go of cilium/cilium for debugging purposes.
This works fine when the objects have a single reconciler, but breaks down with multiple reconcilers as the implementation relies on a monotonously increasing integer in the Status struct to check whether or not to commit the status to the object regardless if it had changed since reconciliation. This leads to the changes made to the object by the later reconciliation being thrown away due to revision mismatch and only committing the change to the status field (https://github.com/cilium/statedb/blob/3c6df79207e1df60b7ca31af0b441fa7a2146881/reconciler/incremental.go#L253).
One way to fix this issue is to remove the permission from the Update operation to mutate the object and instead only allow carrying additional data in the Status struct itself in the form of data any field. Another way is to add a new function to the reconciler config that commits the additional data into the object after succesful reconciliation. There might be other approaches as well.
- Dominant language
- Go
- Stars
- 103
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cilium/statedb
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
google/osv-scanner#3327 ·
Maintainers usually reply within 1 day
-
tld-snapshot
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
awslabs/ferret-scan#1064 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
VictoriaMetrics/VictoriaTraces#335 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 62/100
DaoCloud/DaoCloud-docs#7839 ·
Maintainers usually reply within 1 day