Update tenant creation credentials JSON (#1559)

This commit is contained in:
jinapurapu
2022-02-16 13:52:38 -08:00
committed by GitHub
parent 24cf6a3ada
commit f8c397e231
13 changed files with 47 additions and 6 deletions

View File

@@ -5741,6 +5741,9 @@ func init() {
},
"secretKey": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
@@ -11582,6 +11585,9 @@ func init() {
},
"secretKey": {
"type": "string"
},
"url": {
"type": "string"
}
}
},

View File

@@ -134,7 +134,7 @@ func createServiceAccount(ctx context.Context, userClient MinioAdmin, policy str
if err != nil {
return nil, err
}
return &models.ServiceAccountCreds{AccessKey: creds.AccessKey, SecretKey: creds.SecretKey}, nil
return &models.ServiceAccountCreds{AccessKey: creds.AccessKey, SecretKey: creds.SecretKey, URL: getMinIOServer()}, nil
}
// createServiceAccount adds a service account with the given credentials to the userClient and assigns a policy to him if defined.
@@ -196,7 +196,7 @@ func createAUserServiceAccount(ctx context.Context, userClient MinioAdmin, polic
if err != nil {
return nil, err
}
return &models.ServiceAccountCreds{AccessKey: creds.AccessKey, SecretKey: creds.SecretKey}, nil
return &models.ServiceAccountCreds{AccessKey: creds.AccessKey, SecretKey: creds.SecretKey, URL: getMinIOServer()}, nil
}
func createAUserServiceAccountCreds(ctx context.Context, userClient MinioAdmin, policy string, user string, accessKey string, secretKey string) (*models.ServiceAccountCreds, error) {