@@ -54,6 +54,14 @@ type GatlingSpec struct {
54
54
// +kubebuilder:validation:Optional
55
55
CloudStorageSpec CloudStorageSpec `json:"cloudStorageSpec,omitempty"`
56
56
57
+ // (Optional) PersistentVolume specification.
58
+ // +kubebuilder:validation:Optional
59
+ PersistentVolumeSpec PersistentVolumeSpec `json:"persistentVolume,omitempty"`
60
+
61
+ // (Optional) PersistentVolumeClaim specification.
62
+ // +kubebuilder:validation:Optional
63
+ PersistentVolumeClaimSpec PersistentVolumeClaimSpec `json:"persistentVolumeClaim,omitempty"`
64
+
57
65
// (Optional) Notification Service specification.
58
66
// +kubebuilder:validation:Optional
59
67
NotificationServiceSpec NotificationServiceSpec `json:"notificationServiceSpec,omitempty"`
@@ -88,6 +96,10 @@ type PodSpec struct {
88
96
// (Required) ServiceAccountName specification.
89
97
// +kubebuilder:validation:Required
90
98
ServiceAccountName string `json:"serviceAccountName"`
99
+
100
+ // (Optional) volumes specification.
101
+ // +kubebuilder:validation:Optional
102
+ Volumes []corev1.Volume `json:"volumes,omitempty"`
91
103
}
92
104
93
105
// TestScenarioSpec defines the load testing scenario
@@ -133,6 +145,10 @@ type TestScenarioSpec struct {
133
145
// (Optional) Environment variables used for running load testing scenario.
134
146
// +optional
135
147
Env []corev1.EnvVar `json:"env,omitempty"`
148
+
149
+ // (Optional) Pod volumes to mount into the container's filesystem.
150
+ // +kubebuilder:validation:Optional
151
+ VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"`
136
152
}
137
153
138
154
// CloudStorageSpec defines Cloud Storage Provider specification.
@@ -167,6 +183,26 @@ type NotificationServiceSpec struct {
167
183
SecretName string `json:"secretName"`
168
184
}
169
185
186
+ type PersistentVolumeSpec struct {
187
+ // (Required) The name of the PersistentVolume.
188
+ // +kubebuilder:validation:Required
189
+ Name string `json:"name"`
190
+
191
+ // (Required) PersistentVolumeSpec is the specification of a persistent volume.
192
+ // +kubebuilder:validation:Required
193
+ Spec corev1.PersistentVolumeSpec `json:"spec"`
194
+ }
195
+
196
+ type PersistentVolumeClaimSpec struct {
197
+ // (Required) The name of the PersistentVolumeClaim.
198
+ // +kubebuilder:validation:Required
199
+ Name string `json:"name"`
200
+
201
+ // (Required) PersistentVolumeClaimSpec is the specification of a persistent volume.
202
+ // +kubebuilder:validation:Required
203
+ Spec corev1.PersistentVolumeClaimSpec `json:"spec"`
204
+ }
205
+
170
206
// GatlingStatus defines the observed state of Gatling
171
207
type GatlingStatus struct {
172
208
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
0 commit comments