Skip to content

Commit

Permalink
log csidriver info.
Browse files Browse the repository at this point in the history
  • Loading branch information
dargudear-google committed Oct 4, 2024
1 parent 80e3949 commit dd0789a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/bats/e2e-provider.bats
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export VALIDATE_TOKENS_AUDIENCE=$(get_token_requests_audience)

log_secrets_store_api_version
log_token_requests_audience
log_csi_driver
}


Expand Down Expand Up @@ -148,6 +149,7 @@ export VALIDATE_TOKENS_AUDIENCE=$(get_token_requests_audience)

cmd="kubectl get secretproviderclasses.secrets-store.csi.x-k8s.io/e2e-provider -o yaml | grep e2e-provider"
wait_for_process $WAIT_TIME $SLEEP_TIME "$cmd"
log_csi_driver
}

@test "CSI inline volume test with pod portability" {
Expand Down
5 changes: 5 additions & 0 deletions test/bats/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,8 @@ get_token_requests_audience() {
log_token_requests_audience() {
echo "Testing token requests audience $VALIDATE_TOKENS_AUDIENCE" >&3
}

log_csi_driver() {
local secret_csi_driver=$(kubectl describe csidriver secrets-store.csi.k8s.io)
echo "${secret_csi_driver}"
}

0 comments on commit dd0789a

Please sign in to comment.