Skip to content

Commit 7dfb36d

Browse files
committed
test(e2e): improve provisioner's debuggability (#2)
Provisioner's failures are hard to debug on CI. Attaching stderr to the termination message should help, as should more unique container name. Also remove unnecessary port definition. Signed-off-by: Szymon Soloch <[email protected]>
1 parent 6250667 commit 7dfb36d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

test/e2e/internal/objectstore/minio.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,20 +193,15 @@ func newMinioProvisioningJob(namespace, name string) *batchv1.Job {
193193
RestartPolicy: corev1.RestartPolicyOnFailure,
194194
Containers: []corev1.Container{
195195
{
196-
Name: name,
196+
Name: name + "-provisioner",
197197
Image: "minio/minio:latest",
198198
Command: []string{"bash"},
199199
Args: []string{
200200
"-c",
201201
fmt.Sprintf("mc alias set local https://%s:9000 $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD --insecure;\n", name) +
202202
"mc mb --insecure local/backups",
203203
},
204-
Ports: []corev1.ContainerPort{
205-
{
206-
ContainerPort: 9000,
207-
Name: name,
208-
},
209-
},
204+
TerminationMessagePolicy: "FallbackToLogsOnError",
210205
Env: []corev1.EnvVar{
211206
{
212207
Name: "MINIO_ROOT_USER",

0 commit comments

Comments
 (0)