func CheckVolumeSatisfyClaim(volume *corev1.PersistentVolume, claim *corev1.PersistentVolumeClaim) bool {
	if !checkCapacitySatisfyRequest(volume, claim) {
		return false
	}
	if !checkStorageClassMatch(volume, claim) {
		return false
	}
	if !checkVolumeModeMatch(volume, claim) {
		return false
	}
	if !checkAccessModesMatch(volume, claim) {
		return false
	}
	return true
}
CheckVolumeSatisfyClaim checks if the volume requested by the claim satisfies the requirements of the claim.
package resource
import (
	corev1 "k8s.io/api/core/v1"
)