openebs-archive / maya

Manage Container Attached Storage (CAS) - Data Engines in Kubernetes
https://docs.openebs.io
Apache License 2.0
184 stars 201 forks source link

feat(spc): add capability to specify allowed BD tags on SPC #1748

Closed sonasingh46 closed 4 years ago

sonasingh46 commented 4 years ago

This commit adds the capability to specify allowed BD tags on SPC via annotations. The annotation key is cstor.openebs.io/allowed-bd-tags and the allowed value is comma-separated strings. For example "fast,slow" is a possible value, and in this case SPC provisioner will reject BDs that have a BD tag (openebs.io/block-device-tag) present on it and the value is other than fast or slow.

Signed-off-by: Ashutosh Kumar ashutosh.kumar@mayadata.io