digitalocean / clusterlint

A best practices checker for Kubernetes clusters. 🤠
Apache License 2.0
542 stars 45 forks source link

doks - check if pod referencing dobs volumes are owned by a statefulset #109

Closed varshavaradarajan closed 3 years ago

varshavaradarajan commented 3 years ago

fixes #106

varshavaradarajan commented 3 years ago

@timoreimann - can you please take another look? I addressed your comments now.

varshavaradarajan commented 3 years ago

Tested that if a pvc is specified and the pv is provisioned by DO CSI, the volume is considered as a dobs volume and it's ownership is checked. Since our csi driver supports only persistent storage, specified a csi driver directly in the pod spec results in an error. However, leaving that as is if we change that in future versions.