Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions deploy/cr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions pkg/k8s/pvc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Comment on lines +19 to +20
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's also update the existing unit test in pkg/k8s/pvc_test.go!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

},
}
}
Loading