Skip to content

Commit 7bcc9fa

Browse files
save debug logs in case of rotation failure
1 parent 21e61e8 commit 7bcc9fa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/bats/e2e-provider.bats

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,10 @@ export VALIDATE_TOKENS_AUDIENCE=$(get_token_requests_audience)
409409
local pod_ip=$(kubectl get pod -n kube-system -l app=csi-secrets-store-e2e-provider -o jsonpath="{.items[0].status.podIP}")
410410
run kubectl exec ${curl_pod_name} -n rotation -- curl http://${pod_ip}:8080/rotation?rotated=true
411411

412-
sleep 10
412+
# wait for rotated secret to be mounted
413+
sleep 180
414+
415+
# Save logs in case of failure in rotation
413416
archive_info
414417

415418
result=$(kubectl exec -n rotation secrets-store-inline-rotation -- cat /mnt/secrets-store/$SECRET_NAME)

0 commit comments

Comments
 (0)