Added the method to create a bucket when creating a new service account on minio

This commit is contained in:
pb 2025-07-28 12:20:01 +02:00
parent 53043e7781
commit 39137c4f2a

View File

@ -64,6 +64,14 @@ func (m *MinioController) CreateServiceAccount() {
return 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 // test if the namespace exists
k, err := infrastructure.NewService() k, err := infrastructure.NewService()
if err != nil { if err != nil {