Skip to content

Commit c5cfa81

Browse files
kvapsk8s-infra-cherrypick-robot
authored andcommitted
Exclude bucketClassName from bucketName
Signed-off-by: Andrei Kvapil <[email protected]>
1 parent 1024716 commit c5cfa81

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)