From 39137c4f2a06a3f03ce290a2bcb8e5c90fc54b76 Mon Sep 17 00:00:00 2001 From: pb Date: Mon, 28 Jul 2025 12:20:01 +0200 Subject: [PATCH] Added the method to create a bucket when creating a new service account on minio --- controllers/minio.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/controllers/minio.go b/controllers/minio.go index b053155..98b83bd 100644 --- a/controllers/minio.go +++ b/controllers/minio.go @@ -64,6 +64,14 @@ func (m *MinioController) CreateServiceAccount() { return } + err = service.CreateBucket(executionsId) + if err != nil { + m.Ctx.Output.SetStatus(500) + m.Data["json"] = map[string]interface{}{"error":"could not create the service account for " + minioId + " : " + err.Error()} + m.ServeJSON() + return + } + // test if the namespace exists k, err := infrastructure.NewService() if err != nil {