generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix device-plugin/worker pod labels validationsduring ordered-upgrade (…
…#592) This PR inforces the correct ordering of add/removing version labels for worker pods and device-plugin. The correct sequence should always be: 1) remove old version device-plugin label (if exists) 2) remove old version worker pod label (only in case no relevant device-plugin pod is present) 3) add new version worker pod label (only in case the kernel module is not loaded) 4) add new version device-plugin label ( if needed) We are stalling for worker-pod labels in order to make sure that new device-label pod will not be scheduled prior to new version of kernel module being loaded. Otherwise, old version will never be able to be removed from the kernel
- Loading branch information
1 parent
20fe966
commit 06f403b
Showing
3 changed files
with
163 additions
and
25 deletions.
There are no files selected for viewing
23 changes: 19 additions & 4 deletions
23
internal/controllers/mock_node_label_module_version_reconciler.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters