forked from cilium/cilium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cilium-cli: account for opt out labels in node to node encryption tests
Node to node encryption can be disabled on specific nodes (control plane ones by default) to prevent e.g., losing connectivity to the Kubernetes API server if keys need to be rotated. Let's modify the corresponding Cilium CLI test to take these into account, so that the test doesn't unexpectedly fail due to unexpected leaks if either of the selected pods is running on an excluded node. Specifically, the pod selection logic is modified to exclude the ones running on nodes with node to node encryption disabled, returning a clear error if no valid pod is found. Additionally, an extra node affinity term is configured when node to node encryption is enabled to prefer nodes node not being part of the control plane, whenever possible. Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
- Loading branch information
Showing
3 changed files
with
115 additions
and
9 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
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