Skip to content

Commit 481ce48

Browse files
authored
Merge pull request #129 from k8s-infra-cherrypick-robot/cherry-pick-90-to-release-0.2
[release-0.2] Prefix bucket names with bucket- using UID only
2 parents 1024716 + c5cfa81 commit 481ce48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller/pkg/bucketclaim/bucketclaim.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func (b *BucketClaimListener) provisionBucketClaimOperation(ctx context.Context,
183183
return b.recordError(inputBucketClaim, v1.EventTypeWarning, v1alpha1.FailedCreateBucket, err)
184184
}
185185

186-
bucketName = bucketClassName + string(bucketClaim.ObjectMeta.UID)
186+
bucketName = fmt.Sprintf("bucket-%s", bucketClaim.ObjectMeta.UID)
187187

188188
// create bucket
189189
bucket := &v1alpha1.Bucket{}

0 commit comments

Comments
 (0)