package
0.0.0-20190319231021-e6272b887b81
Repository: https://github.com/marun/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 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:
- Slack: #sig-storage (on https://kubernetes.slack.com -- get an invite at slack.kubernetes.io)
- Mailing List: https://groups.google.com/forum/#!forum/kubernetes-sig-storage
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 returns the name of a CSI driver that supersedes the in-tree plugin with the given name.
GetInTreeNameFromCSIName returns the name of the in-tree plugin superseded by a CSI driver with the given name.
GetInTreePluginNameFromSpec returns the plugin name.
IsInlineMigratable tests whether there is Migration logic for the given Inline Volume.
IsMigratableIntreePluginByName tests whether there is migration logic for the in-tree plugin whose name matches the given name.
IsMigratedCSIDriverByName tests whether there exists an in-tree plugin with logic to migrate to the CSI driver with given name.
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.
TranslateInTreeStorageClassParametersToCSI takes in-tree storage class parameters and translates them to a set of parameters consumable by CSI plugin.