diff --git a/deploy/cr.yaml b/deploy/cr.yaml index 78af79a94..94a08152d 100644 --- a/deploy/cr.yaml +++ b/deploy/cr.yaml @@ -130,6 +130,15 @@ spec: # path: /data # type: Directory persistentVolumeClaim: +# dataSource: +# apiGroup: "" +# kind: PersistentVolumeClaim +# name: source-pvc +# dataSourceRef: +# apiGroup: "" +# kind: PersistentVolumeClaim +# name: source-pvc +# namespace: default # storageClassName: standard # accessModes: [ "ReadWriteOnce" ] resources: diff --git a/pkg/k8s/pvc.go b/pkg/k8s/pvc.go index c2035d1c2..f6178ebaf 100644 --- a/pkg/k8s/pvc.go +++ b/pkg/k8s/pvc.go @@ -16,6 +16,8 @@ func PVC(name string, spec *apiv1alpha1.VolumeSpec) corev1.PersistentVolumeClaim StorageClassName: spec.PersistentVolumeClaim.StorageClassName, AccessModes: spec.PersistentVolumeClaim.AccessModes, Resources: spec.PersistentVolumeClaim.Resources, + DataSource: spec.PersistentVolumeClaim.DataSource, + DataSourceRef: spec.PersistentVolumeClaim.DataSourceRef, }, } }