Commit Graph
15 Commits
Author SHA1 Message Date
Michał MarszałekandClaude Fable 5 0e45c6b24d test(e2e): fix TOCTOU race in CSI reload waits
The CSI e2e tests wait for the SPCPS version change before calling
WaitReloaded/WaitEnvVar, but Reloader reacts to that same SPCPS update.
When Reloader won the race, WaitReloaded captured the already-reloaded
annotation as its baseline and then timed out waiting for a further
change (seen in CI: "Init container with CSI volume should reload...").

Add WaitReloadedFrom/WaitEnvVarFrom adapter variants that take a
caller-supplied baseline, and have the CSI tests capture that baseline
before updating the Vault secret. Negative tests also benefit: an
erroneous reload that lands during the CSI sync wait is now detected
instead of silently absorbed into the baseline.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-06 14:10:38 +02:00
faizanahmad055 2d1c05ef5e Revert e2e parallel
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-05-11 22:24:34 +02:00
faizanahmad055 caebfd98f9 Add e2e parallel
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-05-11 21:59:32 +02:00
faizanahmad055 96ac8d1daf Refactor code and fix leader election tests
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-05-11 20:48:54 +02:00
faizanahmad055 b5c8705395 Refactor code
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-05-11 16:18:53 +02:00
faizanahmad055 e8d79c61c8 Fix PR issues
Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
2026-05-11 11:29:09 +02:00
TheiLLeniumStudios 737455303c fix: empty slices instead of nil return 2026-01-21 15:44:59 +01:00
TheiLLeniumStudios 6397ef15eb chore: Remove unused function 2026-01-15 00:42:38 +01:00
TheiLLeniumStudios 082b7cc4c4 chore: Cleanup a lot of code 2026-01-15 00:21:56 +01:00
TheiLLeniumStudios 4872982617 refactor: Move handle watch behavior to separate function 2026-01-14 23:35:29 +01:00
TheiLLeniumStudios c45b416458 feat: Switch to using watches instead of manual sleeps 2026-01-14 19:41:04 +01:00
TheiLLeniumStudios b28f1abfe4 fix: Formatting and issue with creating vault secrets 2026-01-14 14:48:07 +01:00
TheiLLeniumStudios 4f254826e2 feat: Add missing tests for edge cases and all other workload types for pod annotations 2026-01-14 14:30:53 +01:00
TheiLLeniumStudios f0e6d3af58 feat: A lot of refactoring and CSI test cases 2026-01-10 13:42:10 +01:00
TheiLLeniumStudios fafd5460a2 feat: Initial e2e tests and migrate old ones into e2e 2026-01-08 11:06:45 +01:00