func (persistentVolumeClaimTemplateFactory) New(def client.ResourceDefinition, c client.Interface, gc interfaces.GraphContext) interfaces.Resource {
	return report.SimpleReporter{
		BaseResource: newPersistentVolumeClaim{
			Base: Base{def.Meta},
			PersistentVolumeClaim: parametrizeResource(def.PersistentVolumeClaim, gc, persistentVolumeClaimParamFields).(*v1.PersistentVolumeClaim),
			Client:                c.PersistentVolumeClaims(),
		}}
}
New returns PVC controller for new resource based on resource definition
package resources
import (
	"log"
	"github.com/Mirantis/k8s-AppController/pkg/client"
	"github.com/Mirantis/k8s-AppController/pkg/interfaces"
	"github.com/Mirantis/k8s-AppController/pkg/report"
	corev1 "k8s.io/client-go/kubernetes/typed/core/v1"
	"k8s.io/client-go/pkg/api/v1"
)
var persistentVolumeClaimParamFields = []string{
	"Spec",
}
type newPersistentVolumeClaim struct {
	Base
	PersistentVolumeClaim *v1.PersistentVolumeClaim
	Client                corev1.PersistentVolumeClaimInterface
}
type persistentVolumeClaimTemplateFactory struct{}
func (persistentVolumeClaimTemplateFactory) ShortName(definition client.ResourceDefinition) string {
	if definition.PersistentVolumeClaim == nil {
		return ""
	}
	return definition.PersistentVolumeClaim.Name
}
func (persistentVolumeClaimTemplateFactory) Kind() string {
	return "persistentvolumeclaim"
}