feat: make Kubernetes informers cancellable by feloy · Pull Request #9411 · podman-desktop/podman-desktop (original) (raw)

Signed-off-by: Philippe Martin phmartin@redhat.com

What does this PR do?

For #6114 , we will need to restart the informers every time we change the current context, to change their backoff configuration.

Working on this, I realized that the informers were not correctly stopped when not necessary anymore.

This PR makes the informers cancellable, so we can make them stop their infinite loop of retries.

What issues does this PR fix or reference?

Part of #6114

How to test this PR?