-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
salt: Handle
calico-cni-plugin
package removal for upgrade/downgrade
NOTE: This commit can be reverted in `development/124.0`
- Loading branch information
1 parent
3edad6f
commit 6dabba4
Showing
4 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# The calico-cni-plugin package get removed in 123.0 | ||
# This state can be removed in `development/124.0` | ||
|
||
Ensure calico-cni-plugin is removed: | ||
pkg.removed: | ||
- name: calico-cni-plugin | ||
|
||
Restart calico-node: | ||
module.run: | ||
- cri.stop_pod: | ||
- labels: | ||
k8s-app: calico-node | ||
- onchanges: | ||
- pkg: Ensure calico-cni-plugin is removed | ||
|
||
Make sure calico-node is up and ready: | ||
test.configurable_test_state: | ||
- changes: False | ||
- result: __slot__:salt:cri.wait_container(name="calico-node", state="running") | ||
- require: | ||
- module: Restart calico-node |
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