Skip to content

Conversation

@olekzabl
Copy link
Contributor

@olekzabl olekzabl commented Dec 8, 2025

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

It's a bag of fixes for small issues which I randomly spotted while reading the KEP.
Specifically:

  • Adjust listType of nominatedClusterNames to reality. (It was changed from set to atomic in this commit).
  • Rephrase the non-goal of "distribute running Jobs across multiple clusters", which, at the first glance, looks very much like the main goal of MultiKueue :).
  • Rename "Workload Controller" to "MultiKueue Workload Controller", to avoid confusion with the core one.
  • Fix some grammar & style issues.

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Dec 8, 2025
@netlify
Copy link

netlify bot commented Dec 8, 2025

Deploy Preview for kubernetes-sigs-kueue canceled.

Name Link
🔨 Latest commit 7d989b6
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-sigs-kueue/deploys/69375042f2be3900086b47e5

@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Dec 8, 2025
Copy link
Contributor

@kshalot kshalot left a comment

Choose a reason for hiding this comment

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

I glanced at the rest of the KEP and noticed some more things that could be fixed grammar-wise ("an new" -> "a new", "less jobs" -> "fewer jobs" etc.), but I'm not saying you should fix those. It does make me wonder whether spellchecking couldn't be automated in some way.

While the Workload is pending, the dispatcher can add or remove clusters from the list, and the Workload
Controller synchronizes the value of the field with the subset of worker clusters with the Workload copy.
While the workload is pending, the dispatcher can add or remove clusters from the list, and the MultiKueue Workload
Controller synchronizes the value of the field with the subset of worker clusters with the workload copy.
Copy link
Contributor

Choose a reason for hiding this comment

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

Huge nit: Question to your changes to capitalization ("Workload" -> "workload"). I see that in some places the word is still capitalized. If I understand correctly, the difference would be:

  1. "Workload" refers to the Kueue workload entity.
  2. "workload" refers to some specific unit of work, a specific workload.

But this logic would also apply here if I understand correctly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My intent was to de-capitalize all occurrences of "workload", except the legitimate cases of Capitalized Proper Names (specifically, MultiKueue Workload Controller), and Capitalized Section Headings.

I just wasn't too meticulous in doing that.

Fixed now.

the Kueue's internal Workload object. Only after the workload is admitted and other clusters
are cleaned-up the real job will be created, to match the Workload. That gives the guarantee
When distributing a workload across clusters, the MultiKueue Workload Controller will first create
the Kueue's internal Workload object. Only after the workload is admitted on one cluster and cleaned
Copy link
Contributor

Choose a reason for hiding this comment

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

How about this?

Suggested change
the Kueue's internal Workload object. Only after the workload is admitted on one cluster and cleaned
an internal Kueue Workload object. Only after the workload is admitted on one cluster and cleaned

So it's clear that it's an instance rather than some singleton.

I'd also consider expanding this sentence to say where this object is created (IIUC this would be the spec.nominatedClusterNames worker clusters).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. I like the direction, though I did it a bit differently.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: kshalot, olekzabl
Once this PR has been reviewed and has the lgtm label, please assign tenzen-y 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

* Support for cluster role sharing (worker & manager inside one cluster)
although proved to be possible after kubernetes/enhancements#4370 was merged.
* distribute running Jobs across multiple clusters, and reconcile partial
* Distribute a running Job across multiple clusters, and reconcile partial
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe: "distribute and run a single job across multiple clusters"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@olekzabl
Copy link
Contributor Author

olekzabl commented Dec 8, 2025

I glanced at the rest of the KEP and noticed some more things that could be fixed grammar-wise ("an new" -> "a new", "less jobs" -> "fewer jobs" etc.), but I'm not saying you should fix those. It does make me wonder whether spellchecking couldn't be automated in some way.

Fair point, though such minor things weren't my focus. I rather wanted to fix stuff which actually distracted me in reading. (And that part would be harder to detect automatically, I imagine).

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. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants