-
Couldn't load subscription status.
- Fork 1.1k
Description
Which function do you want to add comments to?
CreateVolume in pkg/ddc/goosefs/cache.go
What comments do you want to add?
// CreateVolume creates PersistentVolume and PersistentVolumeClaim for GooseFS runtime. // It creates the following resources in order: // 1. Fuse PersistentVolume for accessing GooseFS file system from pods. // 2. Fuse PersistentVolumeClaim matching the created PV. // 3. HCFS PersistentVolume for compatibility with Hadoop Compatible File System interface. // The method handles getting runtime information, constructing appropriate PV/PVC specs // based on the runtime configuration, and creating them in the Kubernetes cluster. // Returns error if any of the creation operations fail.