upserts the Groot account.
(closer *z.Closer)
| 415 | |
| 416 | // upserts the Groot account. |
| 417 | func InitializeAcl(closer *z.Closer) { |
| 418 | defer func() { |
| 419 | glog.Infof("InitializeAcl closed") |
| 420 | closer.Done() |
| 421 | }() |
| 422 | |
| 423 | if worker.Config.AclSecretKey == nil { |
| 424 | // The acl feature is not turned on. |
| 425 | return |
| 426 | } |
| 427 | upsertGuardianAndGroot(closer, x.RootNamespace) |
| 428 | } |
| 429 | |
| 430 | // Note: The handling of closer should be done by caller. |
| 431 | func upsertGuardianAndGroot(closer *z.Closer, ns uint64) { |