osbuildexecutor: introduce osbuildexecutor.Executor interface
Wrap the current osbuildexecutor.Executor in an interface so it's easier to add different executors, which for instance can run osbuild in a VM.
This commit is contained in:
parent
9e85050633
commit
e10424de2f
4 changed files with 51 additions and 3 deletions
|
|
@ -471,8 +471,11 @@ func main() {
|
|||
// non-depsolve job
|
||||
jobImpls := map[string]JobImplementation{
|
||||
worker.JobTypeOSBuild: &OSBuildJobImpl{
|
||||
Store: store,
|
||||
Output: output,
|
||||
Store: store,
|
||||
Output: output,
|
||||
OSBuildExecutor: ExecutorConfiguration{
|
||||
Type: config.OSBuildExecutor.Type,
|
||||
},
|
||||
KojiServers: kojiServers,
|
||||
GCPConfig: gcpConfig,
|
||||
AzureConfig: azureConfig,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue