Skip to content

CNI Plugin Integration Test - #760

Merged
raykroeker merged 5 commits into
mainfrom
raykroeker/006-cni-productization-test
Jun 9, 2026
Merged

raykroeker merged 5 commits into
mainfrom
raykroeker/006-cni-productization-test

Conversation

@raykroeker

Copy link
Copy Markdown
Member

The integration test script for the cni plugin was incorrectly exiting with status code '0' when calling the wait_rollout function. Fixe run.sh to exit when the rollout status fails.

Refactor the calico setup into a setup.sh script for the integration test scenario from run-ordering.sh.

Wait for the calico-kube-controllers as well as the node daemonset in the correct namespace (calico-system) vs (kube-system).

The integration test runner script for the plugin was silently failing.
Refactor the calico setup into a setup.sh script for the scenario from
run-ordering.sh.

Wait for the calico-kube-controllers as well as the node daemonset in
the correct namespace (calico-system) vs (kube-system).
@raykroeker
raykroeker marked this pull request as ready for review June 8, 2026 21:30
@raykroeker
raykroeker requested a review from a team as a code owner June 8, 2026 21:30

@alpeb alpeb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me! Just one small observation below.

Comment on lines +10 to +15
# TEST_CTX must be set in the environment prior to running this script
kubectl config use-context "${TEST_CTX}"

# Run kubectl
function k() {
if [ -n "${TEST_CTX:-}" ]; then
kubectl --context="$TEST_CTX" "$@"
else
kubectl "$@"
fi
kubectl "$@"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change? Previously a missing TEST_CTX was handled gracefully; with this change kubectl config use-context will fail.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at all of the places it was called (w/in the justfile) TEST_CTX was always provided. So the branching was not required.

It make the script simpler to understand that TEST_CTX was not optional, and we set it for the entire run.

@raykroeker
raykroeker merged commit a6942c7 into main Jun 9, 2026
19 of 37 checks passed
@raykroeker
raykroeker deleted the raykroeker/006-cni-productization-test branch June 9, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants