func pvcHookAction(hookCfg *PVCHook, action ActionOp, obj interface{}) error {
	if hookCfg == nil {
		return nil
	}
	pvcObj, ok := obj.(*corev1.PersistentVolumeClaim)
	if !ok {
		return errors.Errorf("%T is not a PersistentVolumeClaim type", obj)
	}
	switch action {
	case ActionOpAddOrUpdate:
		pvcHookActionAdd(pvcObj, *hookCfg)
	case ActionOpRemove:
		pvcHookActionRemove(pvcObj, *hookCfg)
	}
	return nil
}
pvcHookAction will execute the given hook config on the object for the given action
package hook
import (
	"github.com/openebs/dynamic-nfs-provisioner/pkg/helper"
	"github.com/pkg/errors"
	corev1 "k8s.io/api/core/v1"
)