Fix certs e2e test for k8s 1.35#8505
Conversation
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>
✅ Deploy Preview for kubernetes-sigs-kueue ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
LGTM label has been added. DetailsGit tree hash: e4e29a4b2162388a650df50bab2b828ef1975cf4 |
|
[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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
LGTM, thank you 👍 |
There was a problem hiding this comment.
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.Dereffor checkingTerminatingReplicasinstead of checking for nil - Handles the k8s 1.35 change where
TerminatingReplicasreturns*int32(0)instead ofnilwhen there are no terminating replicas
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/test pull-kueue-test-integration-baseline-main |
me too, let me open issue: #8507 |
|
/cherry-pick release-0.14 |
|
@tenzen-y: #8505 failed to apply on top of branch "release-0.14": DetailsIn response to this:
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. |
|
@sohankunkerkar could you manually cherry-pick this into release-0.14 and 0.15? |
|
For 0.15 we don't need as #8499 already has it |
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>
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>
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?