retrieve the admin creds for local Minio

This commit is contained in:
pb
2025-06-26 10:47:54 +02:00
parent 55b88077d4
commit 625f34ed21
3 changed files with 29 additions and 8 deletions

View File

@@ -36,6 +36,11 @@ func main() {
if err == nil {
conf.GetConfig().KubeData = string(sDec)
}
conf.GetConfig().MinioRootKey = o.GetStringDefault("MINIO_ADMIN_ACCESS","")
conf.GetConfig().MinioRootSecret = o.GetStringDefault("MINIO_ADMIN_SECRET","")
// feed the library with the loaded config
oclib.SetConfig(
o.GetStringDefault("MONGO_URL", "mongodb://127.0.0.1:27017"),