kube-object-storage / lib-bucket-provisioner

Library for the dynamic provisioning of object store buckets to be used by object store providers.
Apache License 2.0
20 stars 22 forks source link

Define API regarding bucket attributes (or if they are even part of the API) #92

Open jeffvance opened 5 years ago

jeffvance commented 5 years ago

Today we define some bucket attributes, eg. SSL, Versioned, as properties of the OBC, while other attributes, eg. Region, are defined in the storage class. Before we formalize which attributes are defined where, we should first decide if the library should include any bucket attributes.

Reasons to not define any bucket attributes:

  1. lib will need to be regularly maintained to keep up with object store enhancements
  2. lib needs to remain object store agnostic so we'd need to make sure that we don't include an attribute not present in some object store.

Reasons to define some bucket properties:

  1. API property can be validated by lib
  2. ?

If the decision is made to define bucket attributes in the OBC and storage class then we need to discuss which of these, if any, can be overridden by the OBC -- implying the SC contains the default value for this attribute.

jeffvance commented 5 years ago

See #55