csi

package
v0.6.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCSIAttacherImage        = "quay.io/k8scsi/csi-attacher:v0.4.2"
	DefaultCSIProvisionerImage     = "quay.io/k8scsi/csi-provisioner:v0.4.2"
	DefaultCSIDriverRegistrarImage = "quay.io/k8scsi/driver-registrar:v0.4.1"
	DefaultCSIProvisionerName      = "rancher.io/longhorn"

	DefaultCSIAttacherReplicaCount    = 3
	DefaultCSIProvisionerReplicaCount = 3

	AnnotationCSIVersion        = "longhorn.rancher.io/version"
	AnnotationKubernetesVersion = "longhorn.rancher.io/kubernetes-version"
)

Variables

View Source
var (
	HostPathDirectory             = v1.HostPathDirectory
	HostPathDirectoryOrCreate     = v1.HostPathDirectoryOrCreate
	MountPropagationBidirectional = v1.MountPropagationBidirectional
)
View Source
var VERSION = "v0.3.0"

Functions

func CheckMountPropagationWithNode

func CheckMountPropagationWithNode(managerURL string) error

CheckMountPropagationWithNode https://github.com/kubernetes/kubernetes/issues/66086#issuecomment-404346854

Types

type AttacherDeployment

type AttacherDeployment struct {
	// contains filtered or unexported fields
}

func NewAttacherDeployment

func NewAttacherDeployment(namespace, serviceAccount, attacherImage, rootDir string, replicaCount int, tolerations []v1.Toleration) *AttacherDeployment

func (*AttacherDeployment) Cleanup

func (a *AttacherDeployment) Cleanup(kubeClient *clientset.Clientset)

func (*AttacherDeployment) Deploy

func (a *AttacherDeployment) Deploy(kubeClient *clientset.Clientset) error

type ControllerServer

type ControllerServer struct {
	*csicommon.DefaultControllerServer
	// contains filtered or unexported fields
}

func NewControllerServer

func NewControllerServer(d *csicommon.CSIDriver, apiClient *longhornclient.RancherClient) *ControllerServer

func (*ControllerServer) ControllerPublishVolume

ControllerPublishVolume will attach the volume to the specified node

func (*ControllerServer) ControllerUnpublishVolume

ControllerUnpublishVolume will detach the volume

func (*ControllerServer) CreateVolume

func (*ControllerServer) DeleteVolume

func (*ControllerServer) ListVolumes

type IdentityServer

type IdentityServer struct {
	// contains filtered or unexported fields
}

func NewIdentityServer

func NewIdentityServer(driverName, version string) *IdentityServer

func (*IdentityServer) GetPluginCapabilities

func (*IdentityServer) GetPluginInfo

func (*IdentityServer) Probe

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func GetCSIManager

func GetCSIManager() *Manager

func (*Manager) Run

func (m *Manager) Run(driverName, nodeID, endpoint, csiVersion, identityVersion, managerURL string) error

type NodeServer

type NodeServer struct {
	*csicommon.DefaultNodeServer
}

func NewNodeServer

func NewNodeServer(d *csicommon.CSIDriver) *NodeServer

func (*NodeServer) NodePublishVolume

NodePublishVolume will mount the volume /dev/longhorn/<volume_name> to target_path

func (*NodeServer) NodeStageVolume

func (*NodeServer) NodeUnpublishVolume

func (*NodeServer) NodeUnstageVolume

type PluginDeployment

type PluginDeployment struct {
	// contains filtered or unexported fields
}

func NewPluginDeployment

func NewPluginDeployment(namespace, serviceAccount, driverRegistrarImage, managerImage, managerURL, rootDir string, kubeletPluginWatcherEnabled bool, tolerations []v1.Toleration) *PluginDeployment

func (*PluginDeployment) Cleanup

func (p *PluginDeployment) Cleanup(kubeClient *clientset.Clientset)

func (*PluginDeployment) Deploy

func (p *PluginDeployment) Deploy(kubeClient *clientset.Clientset) error

type ProvisionerDeployment

type ProvisionerDeployment struct {
	// contains filtered or unexported fields
}

func NewProvisionerDeployment

func NewProvisionerDeployment(namespace, serviceAccount, provisionerImage, provisionerName, rootDir string, replicaCount int, tolerations []v1.Toleration) *ProvisionerDeployment

func (*ProvisionerDeployment) Cleanup

func (p *ProvisionerDeployment) Cleanup(kubeClient *clientset.Clientset)

func (*ProvisionerDeployment) Deploy

func (p *ProvisionerDeployment) Deploy(kubeClient *clientset.Clientset) error

Jump to

Keyboard shortcuts

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