Crate k8s_e2e_tests

Source

Modules§

metrics

Enums§

FlowControlCommand

Constants§

BUSYBOX_IMAGE

Functions§

collect_btree
config_override_name
Create config adding fullnameOverride entry. This allows multiple tests to be run against the same cluster without the role names clashing.
create_affinity_pod
Create a pod for our other pods to have an affinity to ensure they are all deployed on the same node.
generate_long_string
get_namespace
get_namespace_appended
get_override_name
Gets a name we can use for roles to prevent them conflicting with other tests. Uses the provided namespace as the root.
init
is_multinode
Is the MULTINODE environment variable set?
look_for_log_line
make_framework
make_test_container
make_test_pod
make_test_pod_with_affinity
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.
make_test_pod_with_containers
parse_json
smoke_check_first_line
Read the first line from vector logs and assert that it matches the expected one. This allows detecting the situations where things have gone very wrong.