Skip to content

Fix certs e2e test for k8s 1.35#8505

Merged
k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
sohankunkerkar:fix-certs-issue-1.35
Jan 9, 2026
Merged

Fix certs e2e test for k8s 1.35#8505
k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
sohankunkerkar:fix-certs-issue-1.35

Conversation

@sohankunkerkar
Copy link
Copy Markdown
Member

In k8s 1.35, Deployment.Status.TerminatingReplicas returns *int32(0) instead of nil when there are no terminating replicas. Use ptr.Deref to handle both cases.

What type of PR is this?

/kind bug

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes https://gcsweb.k8s.io/gcs/kubernetes-ci-logs/pr-logs/pull/kubernetes-sigs_kueue/8500/pull-kueue-test-e2e-main-1-35/2009664144264925184/

Special notes for your reviewer:

Does this PR introduce a user-facing change?

None

In k8s 1.35, Deployment.Status.TerminatingReplicas returns *int32(0)
instead of nil when there are no terminating replicas. Use ptr.Deref
to handle both cases.

Signed-off-by: Sohan Kunkerkar <sohank2602@gmail.com>
Copilot AI review requested due to automatic review settings January 9, 2026 17:14
@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/bug Categorizes issue or PR as related to a bug. labels Jan 9, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 9, 2026

Deploy Preview for kubernetes-sigs-kueue ready!

Name Link
🔨 Latest commit 1eaeb6d
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-sigs-kueue/deploys/696137956e39740008469e26
😎 Deploy Preview https://deploy-preview-8505--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 k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 9, 2026
Copy link
Copy Markdown
Member

@tenzen-y tenzen-y left a comment

Choose a reason for hiding this comment

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

Thank you!
/lgtm
/approve

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

LGTM label has been added.

DetailsGit tree hash: e4e29a4b2162388a650df50bab2b828ef1975cf4

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sohankunkerkar, tenzen-y

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 Jan 9, 2026
@mimowo
Copy link
Copy Markdown
Contributor

mimowo commented Jan 9, 2026

LGTM, thank you 👍

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes an e2e test failure in Kubernetes 1.35 by updating the assertion for Deployment.Status.TerminatingReplicas to handle a behavioral change in the Kubernetes API.

  • Updates the certs e2e test to use ptr.Deref for checking TerminatingReplicas instead of checking for nil
  • Handles the k8s 1.35 change where TerminatingReplicas returns *int32(0) instead of nil when there are no terminating replicas

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sohankunkerkar
Copy link
Copy Markdown
Member Author

@sohankunkerkar
Copy link
Copy Markdown
Member Author

/test pull-kueue-test-integration-baseline-main

@mimowo
Copy link
Copy Markdown
Contributor

mimowo commented Jan 9, 2026

this looks like a flake to me.

me too, let me open issue: #8507

@k8s-ci-robot k8s-ci-robot merged commit 73622de into kubernetes-sigs:main Jan 9, 2026
34 of 36 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v0.16 milestone Jan 9, 2026
@tenzen-y
Copy link
Copy Markdown
Member

tenzen-y commented Jan 9, 2026

/cherry-pick release-0.14
/cherry-pick release-0.15

@k8s-infra-cherrypick-robot
Copy link
Copy Markdown
Contributor

@tenzen-y: #8505 failed to apply on top of branch "release-0.14":

Applying: Fix certs e2e test for k8s 1.35
Using index info to reconstruct a base tree...
A	test/e2e/singlecluster/certs_test.go
Falling back to patching base and 3-way merge...
CONFLICT (modify/delete): test/e2e/singlecluster/certs_test.go deleted in HEAD and modified in Fix certs e2e test for k8s 1.35. Version Fix certs e2e test for k8s 1.35 of test/e2e/singlecluster/certs_test.go left in tree.
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Fix certs e2e test for k8s 1.35

Details

In response to this:

/cherry-pick release-0.14
/cherry-pick release-0.15

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.

@tenzen-y
Copy link
Copy Markdown
Member

tenzen-y commented Jan 9, 2026

@sohankunkerkar could you manually cherry-pick this into release-0.14 and 0.15?

@mimowo
Copy link
Copy Markdown
Contributor

mimowo commented Jan 9, 2026

For 0.15 we don't need as #8499 already has it

thejoeejoee pushed a commit to thejoeejoee/kueue that referenced this pull request Jan 20, 2026
In k8s 1.35, Deployment.Status.TerminatingReplicas returns *int32(0)
instead of nil when there are no terminating replicas. Use ptr.Deref
to handle both cases.

Signed-off-by: Sohan Kunkerkar <sohank2602@gmail.com>
dongjiang1989 pushed a commit to dongjiang1989/kueue that referenced this pull request Feb 28, 2026
In k8s 1.35, Deployment.Status.TerminatingReplicas returns *int32(0)
instead of nil when there are no terminating replicas. Use ptr.Deref
to handle both cases.

Signed-off-by: Sohan Kunkerkar <sohank2602@gmail.com>
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. release-note-none Denotes a PR that doesn't merit a release note. 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.

6 participants