Skip to content

DNM: Kueue Operator API Review Part 2 #2250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 42 commits into
base: master
Choose a base branch
from

Conversation

kannon92
Copy link

@kannon92 kannon92 commented Mar 26, 2025

We have got more requirements for Operator now.

  • ManagedJobWithoutQueueName
  • WaitForPodsReady
  • FairSharing.

Opening this up so we can discuss.

Please ignore the other API fields as these have already been approved by @JoelSpeed.

Copy link
Contributor

openshift-ci bot commented Mar 26, 2025

Hello @kannon92! Some important instructions when contributing to openshift/api:
API design plays an important part in the user experience of OpenShift and as such API PRs are subject to a high level of scrutiny to ensure they follow our best practices. If you haven't already done so, please review the OpenShift API Conventions and ensure that your proposed changes are compliant. Following these conventions will help expedite the api review process for your PR.

@kannon92
Copy link
Author

/hold

@kannon92 kannon92 changed the title Kueue Operator API Review Part 2 DNM: Kueue Operator API Review Part 2 Mar 26, 2025
@openshift-ci openshift-ci bot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Mar 26, 2025
@openshift-ci openshift-ci bot requested review from deads2k and everettraven March 26, 2025 21:17
Copy link
Contributor

@everettraven everettraven left a comment

Choose a reason for hiding this comment

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

A handful of additional, minor, comments.

type ByWorkload struct {
// admission controls how Kueue will process workloads.
// admission is a required field with policy is set to ByWorkload.
// admission is only required if policy is specified to ByWorkload.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this implied by byWorkload being required when policy is set to ByWorkload?

Copy link
Contributor

Choose a reason for hiding this comment

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

I suspect both this line and the line before are redundant

type ByWorkload struct {
// admission controls how Kueue will process workloads.
// admission is a required field with policy is set to ByWorkload.
// admission is only required if policy is specified to ByWorkload.
Copy link
Contributor

Choose a reason for hiding this comment

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

I suspect both this line and the line before are redundant

Copy link
Contributor

@everettraven everettraven left a comment

Choose a reason for hiding this comment

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

Changes look good to me

Copy link
Contributor

openshift-ci bot commented Apr 14, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: everettraven, kannon92
Once this PR has been reviewed and has the lgtm label, please assign deads2k 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

@kannon92 kannon92 requested a review from JoelSpeed April 15, 2025 14:38
@JoelSpeed
Copy link
Contributor

LGTM

Copy link
Contributor

openshift-ci bot commented Apr 15, 2025

@kannon92: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/verify e92caa9 link true /test verify
ci/prow/verify-crd-schema e92caa9 link true /test verify-crd-schema

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants