Skip to content

Commit

Permalink
pkg/release: Fix prefix check to determine bucket permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Augustus <[email protected]>
  • Loading branch information
justaugustus committed Nov 15, 2020
1 parent 38bbb22 commit 8501291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/release/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func (p *Publisher) PublishToGcs(
// Ref:
// - https://cloud.google.com/storage/docs/bucket-policy-only
// - https://github.com/kubernetes/release/issues/904
if !strings.HasPrefix(markerPath, "k8s-") {
if !strings.HasPrefix(markerPath, "gs://k8s-") {
aclOutput, err := p.client.GSUtilOutput(
"acl", "ch", "-R", "-g", "all:R", publishFileDst,
)
Expand Down

0 comments on commit 8501291

Please sign in to comment.