hostpath

package
v0.4.8-rc.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Directory where data for volumes are persisted.
	// This is ephemeral to facilitate our per-pod, tmpfs,
	// no bind mount, approach.
	DataRoot = "/csi-data-dir"

	// Directory where we persist `hostPathVolumes`
	// This is a hostpath volume on the local node
	// to maintain state across restarts of the DaemonSet
	VolumeMapRoot = "/csi-volumes-map"
	VolumeMapFile = "volumemap.json"
)
View Source
const (
	TopologyKeyNode           = "topology.hostpath.csi/node"
	CSIPodName                = "csi.storage.k8s.io/pod.name"
	CSIPodNamespace           = "csi.storage.k8s.io/pod.namespace"
	CSIPodUID                 = "csi.storage.k8s.io/pod.uid"
	CSIPodSA                  = "csi.storage.k8s.io/serviceAccount.name"
	CSIEphemeral              = "csi.storage.k8s.io/ephemeral"
	ProjectedResourceShareKey = "share"
)

Variables

This section is empty.

Functions

func CreateHPV

func CreateHPV(volID string) *hostPathVolume

func NewHostPathDriver

func NewHostPathDriver(root, volMapRoot, driverName, nodeID, endpoint string, maxVolumesPerNode int64, version string) (*hostPath, error)

func NewIdentityServer

func NewIdentityServer(name, version string) *identityServer

func NewNodeServer

func NewNodeServer(hp *hostPath) *nodeServer

func NewNonBlockingGRPCServer

func NewNonBlockingGRPCServer() *nonBlockingGRPCServer

func ProcessFileSystemError

func ProcessFileSystemError(obj runtime.Object, err error)

Types

type HostPathDriver

type HostPathDriver interface {
	// contains filtered or unexported methods
}

type Payload

type Payload struct {
	StringData map[string]string
	ByteData   map[string][]byte
}

Jump to

Keyboard shortcuts

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