Skip to content

Allow specifying custom bucket name or prefix in BucketClaim #198

@davtorrin

Description

@davtorrin

Enhancement

The ability to specify a custom bucket name or prefix when creating a BucketClaim.

Currently, when creating a BucketClaim like this:

apiVersion: objectstorage.k8s.io/v1alpha1
kind: BucketClaim
metadata:
  name: bucket-claim-s3-test
spec:
  bucketClassName: cosi-s3-bucketclass
  protocols:
    - S3

The actual bucket created in the object storage backend follows a naming pattern like (e.g., cosi-s3-bucketclassa7f3d9k2).

While this ensures uniqueness, it lacks flexibility for organizations with strict naming conventions or integration requirements.

Why is this needed?:

Organizations require predictable bucket naming for compliance, governance, and integration with external systems. Current random naming prevents proper multi-tenancy isolation, audit traceability, and adherence to corporate naming policies.

Describe the solution you'd like in detail:

Add an optional bucketName or bucketPrefix field to the BucketClaim spec to allow users to customize the bucket name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.priority/awaiting-more-evidenceLowest priority. Possibly useful, but not yet enough support to actually get it done.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions