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

Container Object Storage Interface (COSI) controller responsible to manage lifecycle of COSI objects. NOTE: The content of this repo has been moved to https://github.com/kubernetes-sigs/container-object-storage-interface.
Apache License 2.0
94 stars 28 forks source link

Bucket prefix not being added #43

Closed krishchow closed 3 years ago

krishchow commented 3 years ago

Bug Report

What happened: What the bucket was created by the controller, the prefixing logic was not correct.

What you expected to happen: The logic should follow this pattern:

if br.prefix is set, then bucketname is "{{br.prefix}}-{{br.uid}}" if not it is “br-{{br.uid}}”

How to reproduce this bug (as minimally and precisely as possible): Try to create a bucket with no prefix

Anything else relevant for this bug report?: N/A

Environment: N/A