Add comment field to service accounts (#16380)

This commit is contained in:
Anis Elleuch
2023-01-10 18:57:52 +01:00
committed by GitHub
parent 2146ed4033
commit 1ece3d1dfe
7 changed files with 22 additions and 3 deletions

View File

@@ -2133,6 +2133,10 @@ func (store *IAMStoreSys) UpdateServiceAccount(ctx context.Context, accessKey st
cr.SecretKey = opts.secretKey
}
if opts.comment != "" {
cr.Comment = opts.comment
}
switch opts.status {
// The caller did not ask to update status account, do nothing
case "":