controller

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 17 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) CheckIfNeedRemount

func (m *MountPointController) CheckIfNeedRemount(path string) bool

CheckIfNeedRemount The conditions for remount: the path is the mount point and the error message returned by the `mountpoint` command contains "Transport endpoint is not connected"

func (*MountPointController) Remount

func (m *MountPointController) Remount(fsID, mountPath string, readOnly bool) 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

Jump to

Keyboard shortcuts

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