worker: support for configuring the containers auth file
Add a new configuration section for containers and an option to configure the authfile in it.
This commit is contained in:
parent
ec4598f81f
commit
78a96a5414
4 changed files with 35 additions and 10 deletions
|
|
@ -50,6 +50,10 @@ type authenticationConfig struct {
|
|||
ClientSecretPath string `toml:"client_secret"`
|
||||
}
|
||||
|
||||
type containersConfig struct {
|
||||
AuthFilePath string `toml:"auth_file_path"`
|
||||
}
|
||||
|
||||
type workerConfig struct {
|
||||
Composer *composerConfig `toml:"composer"`
|
||||
Koji map[string]kojiServerConfig `toml:"koji"`
|
||||
|
|
@ -58,6 +62,7 @@ type workerConfig struct {
|
|||
AWS *awsConfig `toml:"aws"`
|
||||
GenericS3 *genericS3Config `toml:"generic_s3"`
|
||||
Authentication *authenticationConfig `toml:"authentication"`
|
||||
Containers *containersConfig `toml:"containers"`
|
||||
// default value: /api/worker/v1
|
||||
BasePath string `toml:"base_path"`
|
||||
DNFJson string `toml:"dnf-json"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue