cloudapi: implement GCP target results and include UploadOptions
Return GCP-specific target results form the worker, similar as it is done for AWS. Extend Cloud API to allow GCP-specific upload Options. Modify Cloud API to return UploadOptions as part of the UploadStatus. Modify Cloud API integration test to check returned upload Options and upload Type. Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
parent
12880950e9
commit
319400c280
7 changed files with 161 additions and 60 deletions
|
|
@ -289,9 +289,11 @@ func (impl *OSBuildJobImpl) Run(job worker.Job) error {
|
|||
r = append(r, err)
|
||||
continue
|
||||
}
|
||||
// TODO: report back the information below, which is necessary to find and use the image
|
||||
// imageName := t.ImageName
|
||||
// projectID := gcp.GetProjectID()
|
||||
|
||||
targetResults = append(targetResults, target.NewGCPTargetResult(&target.GCPTargetResultOptions{
|
||||
ImageName: t.ImageName,
|
||||
ProjectID: g.GetProjectID(),
|
||||
}))
|
||||
|
||||
case *target.KojiTargetOptions:
|
||||
// Koji for some reason needs TLS renegotiation enabled.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue