cleaner

package
v0.0.0-...-3f9165b Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLEANUP_PVC_CONTENT_PERIOD = 3 * time.Minute
	CLEANUP_TIMEOUT            = 10 * time.Minute

	PVC_CLEANER_POD_CLUSTER_ROLE    = "pvc-cleaner-pod-cluster-role"
	PVC_CLEANER_POD_ROLEBINDING     = "pvc-cleaner-pod-rolebinding"
	PVC_CLEANER_POD_SERVICE_ACCOUNT = "pvc-cleaner-pod-service-account"

	DEFAULT_PVC_CLAIM_NAME = "app-studio-default-workspace"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PVCSubPathCleaner

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

func NewPVCSubPathCleaner

func NewPVCSubPathCleaner(
	pipelineRunApi v1beta1.PipelineRunInterface,
	subPathStorage *storage.PVCSubPathsStorage,
	corev1 v1.CoreV1Interface,
	rbacv1 typedrbacv1.RbacV1Interface,
	namespace string) *PVCSubPathCleaner

func (*PVCSubPathCleaner) AddNewPVC

func (cleaner *PVCSubPathCleaner) AddNewPVC(pipelineRun *pipelinev1.PipelineRun)

func (*PVCSubPathCleaner) CleanupSubFolders

func (cleaner *PVCSubPathCleaner) CleanupSubFolders()

func (*PVCSubPathCleaner) ProvidePodCleanerPermissions

func (cleaner *PVCSubPathCleaner) ProvidePodCleanerPermissions() error

func (*PVCSubPathCleaner) ScheduleCleanUpSubPathFoldersContent

func (cleaner *PVCSubPathCleaner) ScheduleCleanUpSubPathFoldersContent()

Jump to

Keyboard shortcuts

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