cloudapi: Drop bucket from composer config

This value is set in the worker config. In future it might also be
passed through the api to upload into target accounts, but it should
never be set in composer.
This commit is contained in:
Sanne Raymaekers 2022-05-19 15:28:53 +02:00 committed by Tomáš Hozza
parent c039a91b61
commit 71c78991a6
11 changed files with 11 additions and 37 deletions

View file

@ -318,7 +318,6 @@ func (h *apiHandlers) PostCompose(ctx echo.Context) error {
t := target.NewAWSTarget(&target.AWSTargetOptions{
Filename: imageType.Filename(),
Region: awsUploadOptions.Region,
Bucket: h.server.config.AWSBucket,
Key: key,
ShareWithAccounts: awsUploadOptions.ShareWithAccounts,
})
@ -354,7 +353,6 @@ func (h *apiHandlers) PostCompose(ctx echo.Context) error {
t := target.NewAWSS3Target(&target.AWSS3TargetOptions{
Filename: imageType.Filename(),
Region: awsS3UploadOptions.Region,
Bucket: h.server.config.AWSBucket,
Key: key,
})
t.ImageName = key