osbuild-worker: add CHANNEL to worker logs

aka "the deployment channel" like "staging" or "production"
This commit is contained in:
Florian Schüller 2024-08-21 10:24:21 +02:00 committed by Florian Schüller
parent 2519e55ccd
commit 8d24dcfbde
4 changed files with 22 additions and 0 deletions

View file

@ -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)