mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-10-18 13:21:00 +02:00
Consolidate controller bootstrap login in run command (#38)
This commit is contained in:
@@ -116,7 +116,8 @@ func (controller *Controller) EnsureServiceAccount(serviceAccount *v1.ServiceAcc
|
||||
}
|
||||
|
||||
if serviceAccount.Token == "" {
|
||||
serviceAccount.Token = uuid.New().String()
|
||||
return fmt.Errorf("%w: attempted to create a service account with an empty token",
|
||||
ErrAdminTaskFailed)
|
||||
}
|
||||
|
||||
serviceAccount.CreatedAt = time.Now()
|
||||
|
||||
Reference in New Issue
Block a user