Skip to content

Commit

Permalink
plume/release: drop doS3() code
Browse files Browse the repository at this point in the history
Early in FCOS development, we were still debating whether the S3 objects
should be public or not. There was some initial agreement on uploading
first as private and then make specific builds public during the release
process, but in the end we've just always published in public from the
start.

It's not likely we'll change this anytime soon unless a good reason
comes up. So let's just delete the code here that makes the build
objects public since they already are. It'll live on in git at least if
we ever want to restore it.

Related: coreos/fedora-coreos-tracker#189
  • Loading branch information
jlebon committed Nov 24, 2022
1 parent 77346a8 commit 8710ba2
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions mantle/cmd/plume/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ func runFcosRelease(cmd *cobra.Command, args []string) {
}

api := getAWSApi()
doS3(api)
rel := getReleaseMetadata(api)
makeReleaseAMIsPublic(rel)
modifyReleaseMetadataIndex(api, rel)
Expand Down Expand Up @@ -126,14 +125,6 @@ func getBucketAndStreamPrefix() (string, string) {
return specBucket, filepath.Join("prod", "streams", specStream)
}

func doS3(api *aws.API) {
bucket, prefix := getBucketAndStreamPrefix()
err := api.UpdateBucketObjectsACL(bucket, filepath.Join(prefix, "builds", specVersion), specPolicy)
if err != nil {
plog.Fatalf("updating object ACLs: %v", err)
}
}

func getReleaseMetadata(api *aws.API) release.Release {
bucket, prefix := getBucketAndStreamPrefix()
releasePath := filepath.Join(prefix, "builds", specVersion, "release.json")
Expand Down

0 comments on commit 8710ba2

Please sign in to comment.