cleanup

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CancelPendingClones added in v1.14.1

func CancelPendingClones(context *clusterd.Context, clusterInfo *client.ClusterInfo, snapshots cephclient.SubVolumeSnapshots, fsName, subvol, svg string) error

func CleanUpOMAPDetails added in v1.14.1

func CleanUpOMAPDetails(context *clusterd.Context, clusterInfo *client.ClusterInfo, objName, poolName, namespace string) error

func DeleteSubVolumeSnapshots added in v1.14.1

func DeleteSubVolumeSnapshots(context *clusterd.Context, clusterInfo *client.ClusterInfo, snapshots cephclient.SubVolumeSnapshots, fsName, subvol, svg string) error

func RadosNamespaceCleanup added in v1.14.1

func RadosNamespaceCleanup(context *clusterd.Context, clusterInfo *client.ClusterInfo, poolName, radosNamespace string) error

func StartHostPathCleanup

func StartHostPathCleanup(namespaceDir, dataDirHostPath, monSecret string)

StartHostPathCleanup is the main entrypoint function to clean up dataDirHostPath and monitor store

func SubVolumeGroupCleanup added in v1.14.1

func SubVolumeGroupCleanup(context *clusterd.Context, clusterInfo *client.ClusterInfo, fsName, svg, poolName, csiNamespace string) error

Types

type DiskSanitizer

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

DiskSanitizer is simple struct to old the context to execute the commands

func NewDiskSanitizer

func NewDiskSanitizer(context *clusterd.Context, clusterInfo *client.ClusterInfo, sanitizeDisksSpec *cephv1.SanitizeDisksSpec) *DiskSanitizer

NewDiskSanitizer is function that returns a full filled DiskSanitizer object

func (*DiskSanitizer) SanitizeLVMDisk added in v1.12.3

func (s *DiskSanitizer) SanitizeLVMDisk(osdLVMList []oposd.OSDInfo)

func (*DiskSanitizer) SanitizeRawDisk added in v1.12.3

func (s *DiskSanitizer) SanitizeRawDisk(osdRawList []oposd.OSDInfo)

func (*DiskSanitizer) StartSanitizeDisks added in v1.4.0

func (s *DiskSanitizer) StartSanitizeDisks()

StartSanitizeDisks main entrypoint of the cleanup package

Jump to

Keyboard shortcuts

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