Skip to content

Reorganize jobframework package.#11217

Merged
k8s-ci-robot merged 1 commit into
kubernetes-sigs:mainfrom
epam:cleanup/reorganize-jobframework
May 18, 2026
Merged

Reorganize jobframework package.#11217
k8s-ci-robot merged 1 commit into
kubernetes-sigs:mainfrom
epam:cleanup/reorganize-jobframework

Conversation

@mbobrovskyi
Copy link
Copy Markdown
Contributor

What type of PR is this?

/kind cleanup
/kind documentation

What this PR does / why we need it:

Reorganize jobframework package.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

@k8s-ci-robot k8s-ci-robot added 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. kind/documentation Categorizes issue or PR as related to documentation. labels May 15, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented May 15, 2026

Deploy Preview for kubernetes-sigs-kueue canceled.

Name Link
🔨 Latest commit 198eb08
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-sigs-kueue/deploys/6a06e725f2250000083ed915

@k8s-ci-robot k8s-ci-robot requested review from kshalot and olekzabl May 15, 2026 08:41
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 15, 2026
Comment on lines +21 to +26
const (
StopReasonWorkloadDeleted StopReason = "WorkloadDeleted"
StopReasonWorkloadEvicted StopReason = "WorkloadEvicted"
StopReasonNoMatchingWorkload StopReason = "NoMatchingWorkload"
StopReasonNotAdmitted StopReason = "NotAdmitted"
)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this could be a part of interface.go file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

but it's just my preference, ignore it if you like

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I’m trying to simplify this file and its structure to make it easier to understand which interfaces should be implemented externally. Right now it feels a bit messy.

@mszadkow
Copy link
Copy Markdown
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 15, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: 9758f972605408e2b5b2e7ca00bb1ec8c48c5b83

@mbobrovskyi mbobrovskyi force-pushed the cleanup/reorganize-jobframework branch from 66b4dbf to 198eb08 Compare May 15, 2026 09:28
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 15, 2026
@k8s-ci-robot k8s-ci-robot requested a review from mszadkow May 15, 2026 09:28
@mszadkow
Copy link
Copy Markdown
Contributor

mszadkow commented May 15, 2026

still re-organize, no functional changes 👍
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 15, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: f3f92664a0fc5ad209b46ba5db9fd3b4af45e6ee

}

// WorkloadShouldBeSuspended determines whether jobObj should be default suspended on creation
func WorkloadShouldBeSuspended(ctx context.Context, jobObj client.Object, k8sClient client.Client,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we rename this file as workloads.go? It seems all the utils are related to workloads actually, wdyt?

Copy link
Copy Markdown
Contributor

@mimowo mimowo left a comment

Choose a reason for hiding this comment

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

/approve
I skimmed the PR and it looks reasonable, the refactoring is in the right direction.
I left a comment about a possible follow up.

Promoting the lgtm from #11217 (comment)

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mbobrovskyi, mimowo

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

The pull request process is described here

Details 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 approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 18, 2026
@k8s-ci-robot k8s-ci-robot merged commit d478d35 into kubernetes-sigs:main May 18, 2026
40 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v0.18 milestone May 18, 2026
@mbobrovskyi mbobrovskyi deleted the cleanup/reorganize-jobframework branch May 18, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. 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. kind/documentation Categorizes issue or PR as related to documentation. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. 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.

4 participants