Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Panlq
Copy link
Contributor

@Panlq Panlq commented Sep 3, 2025

What type of PR is this?

image The deployment/sts validate webhook prompt message is incorrect

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Fix the validation messages when attempting to remove the queue-name label from a Deployment or StatefulSet.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. label Sep 3, 2025
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 3, 2025
Copy link

netlify bot commented Sep 3, 2025

Deploy Preview for kubernetes-sigs-kueue ready!

Name Link
🔨 Latest commit 2e56ce4
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-sigs-kueue/deploys/68b83baed262d000082013d5
😎 Deploy Preview https://deploy-preview-6715--kubernetes-sigs-kueue.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@k8s-ci-robot
Copy link
Contributor

Hi @Panlq. Thanks for your PR.

I'm waiting for a kubernetes-sigs 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/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 3, 2025
@mimowo
Copy link
Contributor

mimowo commented Sep 3, 2025

@Panlq Thanks for reporting and proposing the fix. Since this is a bugfix it needs a release note, proposal:
/release-note-edit

Fix the validation messages when attempting to remove the queue-name label from a Deployment or StatefulSet.

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Sep 3, 2025
@mimowo
Copy link
Contributor

mimowo commented Sep 3, 2025

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Sep 3, 2025
@mimowo
Copy link
Contributor

mimowo commented Sep 3, 2025

/test pull-kueue-test-e2e-tas-main
infra issue

@Panlq
Copy link
Contributor Author

Panlq commented Sep 3, 2025

@mimowo , Hello. I have a question. For the existing inference service Deployment / StatefuleSet, if it is to be managed by kueue and upgraded again, due to this validation verification limitation, an error will be reported. Is this scenario in line with the design?

@mimowo
Copy link
Contributor

mimowo commented Sep 3, 2025

Hi I may not fully understand the question.

This change does not impact when the validation errors are reported. It only fixes the message building to report the original (old) value.

Or your question goes beyond this particular PR?

@Panlq
Copy link
Contributor Author

Panlq commented Sep 3, 2025

Hi I may not fully understand the question.

This change does not impact when the validation errors are reported. It only fixes the message building to report the original (old) value.

Or your question goes beyond this particular PR?

Yes, I discovered this issue while integrating an existing inference service with Kueue. The label kueue.x-k8s.io/queue-name of the existing Deployment is empty, and once integrated with Kueue, a queue-name will be injected into this label. However, based on the current update validation logic, an error is triggered. Does this scenario align with the design?

Inference services are not one-time tasks. Some of the already running ones cannot be deleted or recreated. When we need to integrate them with Kueue for quota management, we will encounter admission check failures during the subsequent service upgrade. Let’s discuss whether it is necessary to support this scenario.
@mimowo @tenzen-y

@mimowo
Copy link
Contributor

mimowo commented Sep 3, 2025

Yes, I discovered this issue while integrating an existing inference service with Kueue. The label kueue.x-k8s.io/queue-name of the existing Deployment is empty, and once integrated with Kueue, a queue-name will be injected into this label. However, based on the current update validation logic, an error is triggered.

I see, thank you for clarifying.

Does this scenario align with the design?

I don't think it is called in the design. I would say it was rather a precaution to validate against it, so I'm open to setting the label. However, we would need to test manually if this works as expected.

@mimowo
Copy link
Contributor

mimowo commented Sep 3, 2025

Let me merge this one for now, as this is clearly a bug, but I'm open to the follow up.

/lgtm
/approve
/cherrypick release-0.13
/cherrypick release-0.12

@k8s-infra-cherrypick-robot
Copy link
Contributor

@mimowo: once the present PR merges, I will cherry-pick it on top of release-0.12, release-0.13 in new PRs and assign them to you.

In response to this:

Let me merge this one for now, as this is clearly a bug, but I'm open to the follow up.

/lgtm
/approve
/cherrypick release-0.13
/cherrypick release-0.12

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 the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 3, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: e2e6ea396b0c3dbd8467f0f0ad364aa74c7a501b

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

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

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

The pull request process is described 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 approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 3, 2025
@mimowo
Copy link
Contributor

mimowo commented Sep 3, 2025

/kind bug

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Sep 3, 2025
@k8s-ci-robot k8s-ci-robot merged commit 06cb511 into kubernetes-sigs:main Sep 3, 2025
23 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v0.14 milestone Sep 3, 2025
@k8s-infra-cherrypick-robot
Copy link
Contributor

@mimowo: new pull request created: #6716

In response to this:

Let me merge this one for now, as this is clearly a bug, but I'm open to the follow up.

/lgtm
/approve
/cherrypick release-0.13
/cherrypick release-0.12

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-infra-cherrypick-robot
Copy link
Contributor

@mimowo: new pull request created: #6717

In response to this:

Let me merge this one for now, as this is clearly a bug, but I'm open to the follow up.

/lgtm
/approve
/cherrypick release-0.13
/cherrypick release-0.12

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.

@Panlq
Copy link
Contributor Author

Panlq commented Sep 3, 2025

Let me merge this one for now, as this is clearly a bug, but I'm open to the follow up.

/lgtm /approve /cherrypick release-0.13 /cherrypick release-0.12

Okay, thank you. I'll open a new discussion to address this issue. #6718

@mimowo mimowo mentioned this pull request Sep 30, 2025
36 tasks
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/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants