k0sproject / k0s

k0s - The Zero Friction Kubernetes
https://docs.k0sproject.io
Other
3.79k stars 368 forks source link

Safeguard ctrl-mgr cancel func in ExtensionController #4937

Closed jnummelin closed 2 months ago

jnummelin commented 2 months ago

Currently we blindly call the cancel func and there are some cases when it actually can be nil.

Description

Fixes #4930

Type of change

How Has This Been Tested?

Checklist:

k0s-bot commented 2 months ago

Backport failed for release-1.28, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release-1.28
git worktree add -d .worktree/backport-4937-to-release-1.28 origin/release-1.28
cd .worktree/backport-4937-to-release-1.28
git switch --create backport-4937-to-release-1.28
git cherry-pick -x 6e94f763825c93ca7a5fa0899f79251398ee2d1b
k0s-bot commented 2 months ago

Backport failed for release-1.29, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release-1.29
git worktree add -d .worktree/backport-4937-to-release-1.29 origin/release-1.29
cd .worktree/backport-4937-to-release-1.29
git switch --create backport-4937-to-release-1.29
git cherry-pick -x 6e94f763825c93ca7a5fa0899f79251398ee2d1b
k0s-bot commented 2 months ago

Successfully created backport PR for release-1.30: