Skip to content

Conversation

feloy
Copy link
Contributor

@feloy feloy commented Oct 16, 2024

Signed-off-by: Philippe Martin [email protected]

What does this PR do?

Patches kubernetes-client-node to be able to handle cluster restart

See kubernetes-client/javascript#1933

The fix has missed the release of the library version 1.0-rc7 for a few hours, and the next release is targeted to happen for next Kubernetes release (in a few months) (kubernetes-client/javascript#1937 (comment)).

For the moment, we are patching the library locally with the patch already included for next release (kubernetes-client/javascript#1937). We will need to remove the patch when we use the next release.

What issues does this PR fix or reference?

Part of #9156

Fixes #9348

How to test this PR?

  • create a Kind cluster with audit (https://kind.sigs.k8s.io/docs/user/auditing/)

  • start the cluster

  • start Podman Desktop

  • check that the cluster is marked as Reachable

  • stop the cluster

  • check that the cluster is marked as Unreachable

  • restart the cluster

  • check that the cluster is marked as Reachable

  • check that the cluster is not spammed with watch requests

  • Tests are covering the bug fix or the new feature

@feloy feloy marked this pull request as ready for review October 16, 2024 11:45
@feloy feloy requested review from a team and benoitf as code owners October 16, 2024 11:45
@feloy feloy requested review from axel7083, cdrage and jeffmaury and removed request for a team October 16, 2024 11:45
Signed-off-by: Philippe Martin <[email protected]>
@feloy feloy force-pushed the fix-9156/patch-kubernetes-client-rc7 branch from 892ac63 to 9c20f3a Compare October 16, 2024 12:49
@benoitf benoitf changed the title Patch kubernetes-client-node to be able to handle cluster restart fix: patch kubernetes-client-node to be able to handle cluster restart Oct 16, 2024
Copy link
Contributor

@cdrage cdrage left a comment

Choose a reason for hiding this comment

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

Tested locally with the patch and was unable to reproduce the errors in the original issue. It restarts fine now / no high CPU usage

LGTM!

@cdrage cdrage merged commit 4dfd4bc into podman-desktop:main Oct 16, 2024
16 of 17 checks passed
@podman-desktop-bot podman-desktop-bot added this to the 1.14.0 milestone Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

podman desktop pegging kube-apiserver CPU w/kind

4 participants