Skip to content

Conversation

@bschaatsbergen
Copy link
Contributor

@bschaatsbergen bschaatsbergen commented Nov 24, 2025

Relates #827
Relates #822

@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 24, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: bschaatsbergen
Once this PR has been reviewed and has the lgtm label, please assign cheftako for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 24, 2025
@k8s-ci-robot
Copy link
Contributor

Hi @bschaatsbergen. Thanks for your PR.

I'm waiting for a github.com member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 24, 2025
@bschaatsbergen bschaatsbergen force-pushed the kep-level-based-sorting branch 3 times, most recently from ad49290 to 69a3da4 Compare November 24, 2025 20:21
@bschaatsbergen bschaatsbergen changed the title KEP-003: Level-based Topological Sorting for ResourceGraphDefinitions KREP-003: Level-based Topological Sorting for ResourceGraphDefinitions Nov 24, 2025
@bschaatsbergen bschaatsbergen force-pushed the kep-level-based-sorting branch from 69a3da4 to 5e0add3 Compare November 24, 2025 20:22
@bschaatsbergen bschaatsbergen force-pushed the kep-level-based-sorting branch from 5e0add3 to e1843ad Compare November 24, 2025 21:08
@ellistarn
Copy link
Contributor

Just as a heads up, KREP-003 and KREP-004 are already open, which makes this one 005.

- [Proposal](#proposal)
- [Design details](#design-details)
- [1. Level-based topological sorting using Kahn's algorithm](#1-level-based-topological-sorting-using-kahns-algorithm)
- [2. Parallelization within levels](#2-parallelization-within-levels)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check out #861, which discusses a mechanism to mitigate the risks of making many changes in parallel.

concurrently
3. **Sequential level progression** — Only advance to the next level after all
resources in the current level are ready
4. **State synchronization between levels** — Synchronize runtime state after
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* Error handling uses WaitGroup instead of errgroup to avoid early
cancellation

### 3. Reverse-order deletion
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does deletion happen after all of the creation has happened in the DAG?

Does the DAG ever pivot if the inputs to the graph change?

@a-hilaly a-hilaly changed the title KREP-003: Level-based Topological Sorting for ResourceGraphDefinitions KREP-005: Level-based Topological Sorting for ResourceGraphDefinitions Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants