package csitranslation
import "k8s.io/csi-translation-lib"
Index ¶
- func GetCSINameFromInTreeName(pluginName string) (string, error)
- func GetInTreeNameFromCSIName(pluginName string) (string, error)
- func GetInTreePluginNameFromSpec(pv *v1.PersistentVolume, vol *v1.Volume) (string, error)
- func IsInlineMigratable(vol *v1.Volume) bool
- func IsMigratableIntreePluginByName(inTreePluginName string) bool
- func IsMigratedCSIDriverByName(csiPluginName string) bool
- func IsPVMigratable(pv *v1.PersistentVolume) bool
- func TranslateCSIPVToInTree(pv *v1.PersistentVolume) (*v1.PersistentVolume, error)
- func TranslateInTreeInlineVolumeToCSI(volume *v1.Volume) (*v1.PersistentVolume, error)
- func TranslateInTreePVToCSI(pv *v1.PersistentVolume) (*v1.PersistentVolume, error)
- func TranslateInTreeStorageClassToCSI(inTreePluginName string, sc *storage.StorageClass) (*storage.StorageClass, error)
Functions ¶
func GetCSINameFromInTreeName ¶
GetCSINameFromInTreeName returns the name of a CSI driver that supersedes the in-tree plugin with the given name
func GetInTreeNameFromCSIName ¶
GetInTreeNameFromCSIName returns the name of the in-tree plugin superseded by a CSI driver with the given name
func GetInTreePluginNameFromSpec ¶
GetInTreePluginNameFromSpec returns the plugin name
func IsInlineMigratable ¶
IsInlineMigratable tests whether there is Migration logic for the given Inline Volume
func IsMigratableIntreePluginByName ¶
IsMigratableIntreePluginByName tests whether there is migration logic for the in-tree plugin whose name matches the given name
func IsMigratedCSIDriverByName ¶
IsMigratedCSIDriverByName tests whether there exists an in-tree plugin with logic to migrate to the CSI driver with given name
func IsPVMigratable ¶
func IsPVMigratable(pv *v1.PersistentVolume) bool
IsPVMigratable tests whether there is migration logic for the given Persistent Volume
func TranslateCSIPVToInTree ¶
func TranslateCSIPVToInTree(pv *v1.PersistentVolume) (*v1.PersistentVolume, error)
TranslateCSIPVToInTree takes a PV with a CSI PersistentVolume Source and will translate it to a in-tree Persistent Volume Source for the specific in-tree volume specified by the `Driver` field in the CSI Source. The input PV object will not be modified.
func TranslateInTreeInlineVolumeToCSI ¶
func TranslateInTreeInlineVolumeToCSI(volume *v1.Volume) (*v1.PersistentVolume, error)
TranslateInTreeInlineVolumeToCSI takes a inline volume and will translate the in-tree volume source to a CSIPersistentVolumeSource (wrapped in a PV) if the translation logic has been implemented.
func TranslateInTreePVToCSI ¶
func TranslateInTreePVToCSI(pv *v1.PersistentVolume) (*v1.PersistentVolume, error)
TranslateInTreePVToCSI takes a persistent volume and will translate the in-tree source to a CSI Source if the translation logic has been implemented. The input persistent volume will not be modified
func TranslateInTreeStorageClassToCSI ¶
func TranslateInTreeStorageClassToCSI(inTreePluginName string, sc *storage.StorageClass) (*storage.StorageClass, error)
TranslateInTreeStorageClassToCSI takes in-tree Storage Class and translates it to a set of parameters consumable by CSI plugin
Source Files ¶
translate.go
Directories ¶
Path | Synopsis |
---|---|
plugins |
- Version
- v0.16.5
- Published
- Jan 17, 2020
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- now –
Tools for package owners.