Skip to content

Commit bde3e33

Browse files
committed
Skip EKS Pod Identity test
1 parent 328701a commit bde3e33

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/e2e-kubernetes/testsuites/credentials.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,10 @@ func (t *s3CSICredentialsTestSuite) DefineTests(driver storageframework.TestDriv
729729
})
730730

731731
It("should not use csi driver's service account EKS tokens", func(ctx context.Context) {
732+
if eksPodIdentityAgentDaemonSet == nil {
733+
Skip("EKS Pod Identity Agent is not configured, skipping test")
734+
}
735+
732736
updateCSIDriversServiceAccountRoleEKSPodIdentity(ctx, iamPolicyS3FullAccess)
733737

734738
pod, _ := createPodWithServiceAccountAndPolicy(ctx, iamPolicyS3ReadOnlyAccess, true, false)

0 commit comments

Comments
 (0)