Skip to content

Commit

Permalink
Change ordering of teardown to mitigate race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnctl committed Jan 7, 2025
1 parent f2664f8 commit f1f3cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/federation/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ function show_workload_status() {
}

function teardown_federation_and_verify() {
kubectl exec --context $K8S_CLUSTER_2_CONTEXT -n spire spire-server-0 -- /opt/spire/bin/spire-server federation delete -id td1
kubectl --context $K8S_CLUSTER_2_CONTEXT delete clusterspiffeids.spire.spiffe.io spire-spire-namespace
kubectl exec --context $K8S_CLUSTER_2_CONTEXT -n spire spire-server-0 -- /opt/spire/bin/spire-server federation delete -id td1
kubectl exec --context $K8S_CLUSTER_2_CONTEXT -n spire spire-server-0 -- /opt/spire/bin/spire-server bundle delete -id td1
federations=$(./cofidectl federation list)
if ! echo "$federations" | grep "Unhealthy | No bundle found" >/dev/null; then
Expand Down

0 comments on commit f1f3cdc

Please sign in to comment.