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

support reclaim policy "modifiers" in storage classes targeting buckets #53

Open jeffvance opened 5 years ago

jeffvance commented 5 years ago

Even though we cannot add new reclaim policies to storage classes, we probably need to add a reclaimPolicyOverride to the StorageClass's Parameters map. This issue proposes a library defined name for the override and some potential values:. If the override is absent then the standard reclaimPolicy is used (with its own default if it too is missing).

Override Policy Key Name: reclaimPolicyOverride Override Policy Values:

We can decide it we want to also support the existing reclaim policy values in the override, but my opinion now is no.

Note: "Erase" could be named "Recycle" but there are negative connotations with that name in the k8s community.

jeffvance commented 5 years ago

We cannot change the StorageClass API for new reclaimPolicy values.

jeffvance commented 5 years ago

We can added reclaimPolicy delete modifiers to the SC's Parameters map.