@@ -19,6 +19,9 @@ type Configuration struct {
19
19
20
20
// Stages is a set of test stages to run. Once a stage is finished, the next stage in the slice will be run.
21
21
Stages []StageConfiguration `json:"stages" yaml:"stages"`
22
+
23
+ // Storage is the optional storage configuration
24
+ Storage Storage `json:"storage,omitempty" yaml:"storage,omitempty"`
22
25
}
23
26
24
27
// StageConfiguration configures a set of tests to be run.
@@ -40,4 +43,24 @@ type TestConfiguration struct {
40
43
Entrypoint []string `json:"entrypoint,omitempty" yaml:"entrypoint,omitempty"`
41
44
// Labels further describe the test and enable selection.
42
45
Labels map [string ]string `json:"labels,omitempty" yaml:"labels,omitempty"`
46
+ // Storage is the optional storage configuration for the test image.
47
+ Storage Storage `json:"storage,omitempty" yaml:"storage,omitempty"`
48
+ }
49
+
50
+ // Storage configures custom storage options
51
+ type Storage struct {
52
+ // Spec contains the storage configuration options
53
+ Spec StorageSpec `json:"spec" yaml:"spec"`
54
+ }
55
+
56
+ // StorageSpec contains storage configuration options
57
+ type StorageSpec struct {
58
+ // MountPath configures the path to mount directories in the test pod
59
+ MountPath MountPath `json:"mountPath,omitempty" yaml:"mountPath,omitempty"`
60
+ }
61
+
62
+ // MountPath configures the path to mount directories in the test pod
63
+ type MountPath struct {
64
+ // Path is the fully qualified path that a directory should be mounted in the test pod
65
+ Path string `json:"path,omitempty" yaml:"path,omitempty"`
43
66
}
0 commit comments