kubernetes-sigs / container-object-storage-interface-controller

Container Object Storage Interface (COSI) controller responsible to manage lifecycle of COSI objects.
Apache License 2.0
93 stars 28 forks source link

Static bucket can be repeatedly bound to bucketClaim #134

Open FanZhang526 opened 1 month ago

FanZhang526 commented 1 month ago

Bug Report

What happened: Static bucket can be repeatedly bound to bucketClaim, and bucket.spec.bucketClaim info will be updated after new bound.

What you expected to happen: When a static bucket has been bound to a bucketClaim, another bucketClaim using this same static bucket should be failed.

How to reproduce this bug (as minimally and precisely as possible): 1、create a static bucket 2、create a bucketClaim by using this static bucket 3、create another bucketClaim by using same static bucket

Anything else relevant for this bug report?:

Environment: