osbuild-worker: add CHANNEL to worker logs
aka "the deployment channel" like "staging" or "production"
This commit is contained in:
parent
2519e55ccd
commit
8d24dcfbde
4 changed files with 22 additions and 0 deletions
|
|
@ -103,6 +103,8 @@ type workerConfig struct {
|
|||
// default value: &{ Type: host }
|
||||
OSBuildExecutor *executorConfig `toml:"osbuild_executor"`
|
||||
RepositoryMTLSConfig *repositoryMTLSConfig `toml:"repository_mtls"`
|
||||
// something like "production" or "staging" to be added to logging
|
||||
DeploymentChannel string `toml:"deployment_channel"`
|
||||
}
|
||||
|
||||
func parseConfig(file string) (*workerConfig, error) {
|
||||
|
|
@ -112,6 +114,7 @@ func parseConfig(file string) (*workerConfig, error) {
|
|||
OSBuildExecutor: &executorConfig{
|
||||
Type: "host",
|
||||
},
|
||||
DeploymentChannel: "local",
|
||||
}
|
||||
|
||||
_, err := toml.DecodeFile(file, &config)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue