csi

package
v0.4.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 License: Apache-2.0 Imports: 26 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"

	DefaultCSIDeploymentReplicaCount = 3

	AnnotationCSIVersion = "longhorn.rancher.io/version"
)

Variables

View Source
var (
	HostPathDirectory             = v1.HostPathDirectory
	HostPathDirectoryOrCreate     = v1.HostPathDirectoryOrCreate
	MountPropagationBidirectional = v1.MountPropagationBidirectional
)

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(version, namespace, serviceAccount, attacherImage string) *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(version, namespace, serviceAccount, driverRegistrarImage, managerImage, managerURL string, kubeletPluginWatcherEnabled bool) *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(version, namespace, serviceAccount, provisionerImage, provisionerName string) *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