releaser

package
v0.2.3 Latest Latest
Warning

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

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

Documentation

Overview

Package releaser is an automatic PV reclaimer.

Index

Constants

View Source
const (
	AgentName = "reclaimable-pv-releaser"

	AnnotationBaseName        = AgentName + ".kubernetes.io"
	AnnotationControllerIdKey = "controller-id"
	AnnotationControllerId    = AnnotationBaseName + "/" + AnnotationControllerIdKey

	Released          = "Released"
	MessagePVReleased = "PV released successfully"

	MessageReleasePV = "error releasing PV %s: %s"
	ErrReleasePV     = "ErrReleasePV"
)

Variables

This section is empty.

Functions

func New

func New(
	ctx context.Context,
	kubeClientSet kubernetes.Interface,
	namespace,
	controllerId string,
) controller.Controller

Types

type Releaser

type Releaser struct {
	controller.BasicController

	SCLister storagelisters.StorageClassLister

	PVLister corelisters.PersistentVolumeLister
	PVSynced cache.InformerSynced
	PVQueue  workqueue.RateLimitingInterface
	// contains filtered or unexported fields
}

func (*Releaser) Run

func (r *Releaser) Run(threadiness int, stopCh <-chan struct{}) error

func (*Releaser) Stop

func (r *Releaser) Stop()

Jump to

Keyboard shortcuts

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