Dump debug info on e2e tests

Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
This commit is contained in:
Matheus Pimenta 2026-02-24 09:15:52 +00:00
parent a6aefab55b
commit 7a8cf63623
No known key found for this signature in database
GPG key ID: 4639F038AE28FBFF
7 changed files with 180 additions and 5 deletions

View file

@ -104,6 +104,7 @@ stringData:
log.Printf("failed to delete resources in '%s' namespace", testID)
}
})
t.Cleanup(func() { dumpDiagnostics(t, ctx, testID) })
if cfg.sopsSecretData != nil {
secret := corev1.Secret{