controller

package
v0.14.6-beta0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PFSPrefix = "pfs-"
	PVCSuffix = "-pvc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MountPointController

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

MountPointController will check the status of the mount point and remount unconnected mount point

func GetMountPointController

func GetMountPointController(nodeID string) *MountPointController

func Initialize

func Initialize(nodeID string, masterNodesAware bool) *MountPointController

func (*MountPointController) CheckAndRemountVolumeMount

func (m *MountPointController) CheckAndRemountVolumeMount(volumeMount volumeMountInfo) error

func (*MountPointController) RemovePod

func (m *MountPointController) RemovePod(podUID string)

RemovePod During the pod update interval, add the pod UID that has called NodeUnPublishVolume to the map `removePods`

func (*MountPointController) Start

func (m *MountPointController) Start(stopCh <-chan struct{})

func (*MountPointController) Stop

func (m *MountPointController) Stop()

func (*MountPointController) UpdateMounts

func (m *MountPointController) UpdateMounts(volumeMount volumeMountInfo) error

UpdateMounts update mount

func (*MountPointController) UpdatePodMap

func (m *MountPointController) UpdatePodMap() error

UpdatePodMap Synchronize all pod information of the node from kubelet

func (*MountPointController) WaitToUpdatePodMap

func (m *MountPointController) WaitToUpdatePodMap()

WaitToUpdatePodMap wait to update PodMap

type SubPath added in v0.14.4

type SubPath struct {
	ReadOnly   bool
	SourcePath string
	TargetPath string
}

The SubPath is a volumeMount with subPath param in the pod's spec

Jump to

Keyboard shortcuts

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