Skip to content

Conversation

smira
Copy link
Member

@smira smira commented Aug 29, 2025

This also fixes a generic consistency issue: and item in the queue and in the dedup process should always handle uniqueness by (namespace, type, id) triple.

Allow additional non-deduplicated "last" data to be attached to the queue items, so that reconcile/map steps can access more input data.

smira added a commit to smira/os-runtime that referenced this pull request Sep 1, 2025
This is extracted from cosi-project#633 as a separate fix.

The idea is that if we merge/deduplicate watch events, we should do this
by immutable attributes of the resource: namespace, type, id.

The previous implementation might split two events on e.g. finalizers
being empty, so two events which report finalizers empty/finalizers
non-empty might be delivered in the wrong order: first empty, next
non-empty.

It might not trigger a real bug due to the way controllers work, but
still is not consistent and correct.

Signed-off-by: Andrey Smirnov <[email protected]>
@smira smira force-pushed the feat/refactor-qruntime branch 3 times, most recently from 6a8a754 to 8c85028 Compare September 2, 2025 16:54
@smira smira marked this pull request as ready for review September 2, 2025 16:54
@github-project-automation github-project-automation bot moved this to To Do in Planning Sep 2, 2025
@talos-bot talos-bot moved this from To Do to In Review in Planning Sep 2, 2025
@github-project-automation github-project-automation bot moved this from In Review to Approved in Planning Sep 3, 2025
smira added a commit to smira/omni that referenced this pull request Sep 3, 2025
smira added a commit to smira/omni that referenced this pull request Sep 3, 2025
This also fixes a generic consistency issue: and item in the queue and
in the dedup process should always handle uniqueness by (namespace,
type, id) triple.

Allow additional non-deduplicated "last" data to be attached to the
queue items, so that reconcile/map steps can access more input data.

Signed-off-by: Andrey Smirnov <[email protected]>
@smira smira force-pushed the feat/refactor-qruntime branch from 8c85028 to d76b6e3 Compare September 3, 2025 10:51
smira added a commit to smira/omni that referenced this pull request Sep 3, 2025
@smira
Copy link
Member Author

smira commented Sep 3, 2025

/m

@talos-bot talos-bot merged commit d76b6e3 into cosi-project:main Sep 3, 2025
14 checks passed
@github-project-automation github-project-automation bot moved this from Approved to Done in Planning Sep 3, 2025
smira added a commit to smira/omni that referenced this pull request Sep 3, 2025
smira added a commit to smira/omni that referenced this pull request Sep 3, 2025
smira added a commit to smira/omni that referenced this pull request Sep 4, 2025
Simplify controllers, add migrations to clear finalizers which are no
longer needed.

See cosi-project/runtime#633

Signed-off-by: Andrey Smirnov <[email protected]>
smira added a commit to smira/omni that referenced this pull request Sep 4, 2025
Simplify controllers, add migrations to clear finalizers which are no
longer needed.

See cosi-project/runtime#633

Signed-off-by: Andrey Smirnov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants