Skip to content

Commit

Permalink
ocis init: Add service accountid to settings config
Browse files Browse the repository at this point in the history
  • Loading branch information
rhafer committed Sep 7, 2023
1 parent 9ef042d commit 893e0cf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ocis/pkg/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ type IdmService struct {
ServiceUserPasswords ServiceUserPasswordsSettings `yaml:"service_user_passwords"`
}

type SettingsService struct {
ServiceAccountIDAdmin string `yaml:"service_account_id_admin"`
}

type FrontendService struct {
Archiver InsecureService
ServiceAccount ServiceAccount `yaml:"service_account"`
Expand Down Expand Up @@ -192,6 +196,7 @@ type OcisConfig struct {
Thumbnails ThumbnailService
Search Search
Audit Audit
Settings SettingsService `yaml:"settings"`
Sharing Sharing
StorageUsers StorageUsers `yaml:"storage_users"`
Notifications Notifications
Expand Down Expand Up @@ -393,6 +398,9 @@ func CreateConfig(insecure, forceOverwrite bool, configPath, adminPassword strin
Proxy: ProxyService{
ServiceAccount: serviceAccount,
},
Settings: SettingsService{
ServiceAccountIDAdmin: serviceAccount.ServiceAccountID,
},
}

if insecure {
Expand Down

0 comments on commit 893e0cf

Please sign in to comment.