Function k8s_e2e_tests::make_test_pod_with_affinity
source ยท pub fn make_test_pod_with_affinity<'a>(
namespace: &'a str,
name: &'a str,
command: &'a str,
labels: impl IntoIterator<Item = (&'a str, &'a str)> + 'a,
annotations: impl IntoIterator<Item = (&'a str, &'a str)> + 'a,
affinity_label: Option<(&'a str, &'a str)>,
affinity_namespace: Option<&'a str>,
) -> Pod
Expand description
Since the tests only scan the logs from an agent on a single node, we want to make sure that all the test pods are on the same node so the agent picks them all.