Skip to content

Commit a27a8c1

Browse files
committed
Add debug flags in createVolumeResource
Signed-off-by: Renan Magagnin <renanmag@amazon.co.uk>
1 parent c983c55 commit a27a8c1

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • tests/e2e-kubernetes/testsuites

tests/e2e-kubernetes/testsuites/util.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"fmt"
88
"math/rand"
99
"os"
10+
"slices"
1011
"strings"
1112
"time"
1213

@@ -105,6 +106,14 @@ func createVolumeResource(ctx context.Context, config *storageframework.PerTestC
105106
pvName := "s3-e2e-pv-" + uuid.New().String()
106107
pvcName := "s3-e2e-pvc-" + uuid.New().String()
107108

109+
// Add debug options if they're not already present
110+
debugOptions := []string{"debug", "debug-crt"}
111+
for _, option := range debugOptions {
112+
if !slices.Contains(mountOptions, option) {
113+
mountOptions = append(mountOptions, option)
114+
}
115+
}
116+
108117
pv := &v1.PersistentVolume{
109118
ObjectMeta: metav1.ObjectMeta{
110119
Name: pvName,

0 commit comments

Comments
 (0)