csi

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KubeMinMajor = "1"
	KubeMinMinor = "13"

	// image names
	DefaultRBDPluginImage    = "quay.io/cephcsi/rbdplugin:v1.0.0"
	DefaultCephFSPluginImage = "quay.io/cephcsi/cephfsplugin:v1.0.0"
	DefaultRegistrarImage    = "quay.io/k8scsi/csi-node-driver-registrar:v1.0.2"
	DefaultProvisionerImage  = "quay.io/k8scsi/csi-provisioner:v1.0.1"
	DefaultAttacherImage     = "quay.io/k8scsi/csi-attacher:v1.0.1"
	DefaultSnapshotterImage  = "quay.io/k8scsi/csi-snapshotter:v1.0.1"

	// template
	DefaultRBDPluginTemplatePath         = "/etc/ceph-csi/rbd/csi-rbdplugin.yaml"
	DefaultRBDProvisionerTemplatePath    = "/etc/ceph-csi/rbd/csi-rbdplugin-provisioner.yaml"
	DefaultCephFSPluginTemplatePath      = "/etc/ceph-csi/cephfs/csi-cephfsplugin.yaml"
	DefaultCephFSProvisionerTemplatePath = "/etc/ceph-csi/cephfs/csi-cephfsplugin-provisioner.yaml"

	ExitOnError = false // don't exit if CSI fails to deploy. Switch to true when flexdriver is disabled
)

Variables

View Source
var (
	CSIParam Param

	EnableRBD    = true
	EnableCephFS = true

	// template paths
	RBDPluginTemplatePath      string
	RBDProvisionerTemplatePath string

	CephFSPluginTemplatePath      string
	CephFSProvisionerTemplatePath string
)

Functions

func CSIEnabled

func CSIEnabled() bool

func SetCSINamespace

func SetCSINamespace(namespace string)

func StartCSIDrivers

func StartCSIDrivers(namespace string, clientset kubernetes.Interface) error

func ValidateCSIParam

func ValidateCSIParam() error

Types

type Param

type Param struct {
	Namespace string

	RBDPluginImage    string
	CephFSPluginImage string
	RegistrarImage    string
	ProvisionerImage  string
	AttacherImage     string
	SnapshotterImage  string
}

Jump to

Keyboard shortcuts

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