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:
Sanne Raymaekers 2024-01-25 16:32:28 +01:00
parent 9e85050633
commit e10424de2f
4 changed files with 51 additions and 3 deletions

View file

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