Skip to content
This repository has been archived by the owner on Apr 21, 2019. It is now read-only.

Changed naming to Migratable #8

Merged
merged 1 commit into from
Oct 29, 2018
Merged
Changes from all 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
12 changes: 6 additions & 6 deletions translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ func TranslateCSIPVToInTree(pv *v1.PersistentVolume) (*v1.PersistentVolume, erro
return nil, fmt.Errorf("could not find in-tree plugin translation logic for %s", copiedPV.Spec.CSI.Driver)
}

// IsMigratedByName tests whether there is Migration logic for the in-tree plugin
// IsMigratableByName tests whether there is Migration logic for the in-tree plugin
// for the given `pluginName`
func IsMigratedByName(pluginName string) bool {
func IsMigratableByName(pluginName string) bool {
for _, curPlugin := range inTreePlugins {
if curPlugin.GetInTreePluginName() == pluginName {
return true
Expand All @@ -81,8 +81,8 @@ func GetCSINameFromIntreeName(pluginName string) (string, error) {
return "", fmt.Errorf("Could not find CSI Driver name for plugin %v", pluginName)
}

// IsPVMigrated tests whether there is Migration logic for the given Persistent Volume
func IsPVMigrated(pv *v1.PersistentVolume) bool {
// IsPVMigratable tests whether there is Migration logic for the given Persistent Volume
func IsPVMigratable(pv *v1.PersistentVolume) bool {
for _, curPlugin := range inTreePlugins {
if curPlugin.CanSupport(pv) {
return true
Expand All @@ -91,7 +91,7 @@ func IsPVMigrated(pv *v1.PersistentVolume) bool {
return false
}

// IsInlineMigrated tests whether there is Migration logic for the given Inline Volume
func IsInlineMigrated(vol *v1.Volume) bool {
// IsInlineMigratable tests whether there is Migration logic for the given Inline Volume
func IsInlineMigratable(vol *v1.Volume) bool {
return false
}