mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-10-21 02:22:46 +02:00
orchard controller run: create a default bootstrap context (#291)
* orchard controller run: create a default bootstrap context * Dockerfile: correct AS casing * Fix typo in BootstrapContextName
This commit is contained in:
@@ -188,7 +188,7 @@ func New(opts ...Option) (*Controller, error) {
|
||||
return controller, nil
|
||||
}
|
||||
|
||||
func (controller *Controller) NumServiceAccounts() (int, error) {
|
||||
func (controller *Controller) ServiceAccounts() ([]*v1.ServiceAccount, error) {
|
||||
var serviceAccounts []*v1.ServiceAccount
|
||||
var err error
|
||||
|
||||
@@ -197,10 +197,10 @@ func (controller *Controller) NumServiceAccounts() (int, error) {
|
||||
|
||||
return err
|
||||
}); err != nil {
|
||||
return 0, fmt.Errorf("failed to retrieve a list of service accounts: %w", err)
|
||||
return nil, fmt.Errorf("failed to retrieve a list of service accounts: %w", err)
|
||||
}
|
||||
|
||||
return len(serviceAccounts), nil
|
||||
return serviceAccounts, nil
|
||||
}
|
||||
|
||||
func (controller *Controller) EnsureServiceAccount(serviceAccount *v1.ServiceAccount) error {
|
||||
|
||||
Reference in New Issue
Block a user