package
1.14.0-alpha.1
Repository: https://github.com/micnncim/kubernetes.git
Documentation: pkg.go.dev

# 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.

# Packages

No description provided by the author

# Functions

GetCSINameFromIntreeName maps the name of a CSI driver to its in-tree version.
IsInlineMigratable tests whether there is Migration logic for the given Inline Volume.
IsMigratableByName tests whether there is Migration logic for the in-tree plugin for the given `pluginName`.
IsPVMigratable tests whether there is Migration logic for the given Persistent Volume.
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.
TranslateInTreePVToCSI takes a persistent volume and will translate the in-tree source to a CSI Source if the translation logic has been implemented.