Documentation ¶
Index ¶
- func GetCSINameFromIntreeName(pluginName string) (string, error)
- func IsInlineMigratable(vol *v1.Volume) bool
- func IsMigratableByName(pluginName string) bool
- func IsPVMigratable(pv *v1.PersistentVolume) bool
- func TranslateCSIPVToInTree(pv *v1.PersistentVolume) (*v1.PersistentVolume, error)
- func TranslateInTreePVToCSI(pv *v1.PersistentVolume) (*v1.PersistentVolume, error)
- func TranslateInTreeStorageClassParametersToCSI(inTreePluginName string, scParameters map[string]string) (map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCSINameFromIntreeName ¶
GetCSINameFromIntreeName maps the name of a CSI driver to its in-tree version
func IsInlineMigratable ¶
IsInlineMigratable tests whether there is Migration logic for the given Inline Volume
func IsMigratableByName ¶
IsMigratableByName tests whether there is Migration logic for the in-tree plugin for the given `pluginName`
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 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 TranslateInTreeStorageClassParametersToCSI ¶
func TranslateInTreeStorageClassParametersToCSI(inTreePluginName string, scParameters map[string]string) (map[string]string, error)
TranslateInTreeStorageClassParametersToCSI takes in-tree storage class parameters and translates them to a set of parameters consumable by CSI plugin
Types ¶
This section is empty.