csitranslation

package
v1.14.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2019 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 0

README

Purpose

This repository contains functions to be consumed by various Kubernetes and out-of-tree CSI components like external provisioner to facilitate migration of code from Kubernetes In-tree plugin code to CSI plugin repositories.

Consumers can make use of this repository can make use of functions like TranslateToCSI and TranslateToInTree functions to translate PV sources.

Community, discussion, contribution, and support

Learn how to engage with the Kubernetes community on the community page.

You can reach the maintainers of this repository at:

Code of Conduct

Participation in the Kubernetes community is governed by the Kubernetes Code of Conduct.

Contibution Guidelines

See CONTRIBUTING.md for more information.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCSINameFromIntreeName

func GetCSINameFromIntreeName(pluginName string) (string, error)

GetCSINameFromIntreeName maps the name of a CSI driver to its in-tree version

func IsInlineMigratable

func IsInlineMigratable(vol *v1.Volume) bool

IsInlineMigratable tests whether there is Migration logic for the given Inline Volume

func IsMigratableByName

func IsMigratableByName(pluginName string) bool

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

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL