autoresizer

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 27 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PVCResizePolicyAnnotationName = "hwameistor.io/resize-policyName"
	PVCResizePolicyAnnotationKey  = "hwameistor.io/resizepolicy"
)

Variables

This section is empty.

Functions

func ListResizePolicies added in v0.12.2

func ListResizePolicies(cli client.Client) ([]hwameistorv1alpha1.ResizePolicy, error)

func NumericToLVMBytes

func NumericToLVMBytes(bytes int64) int64

func StartResizePolicyEventHandler added in v0.12.2

func StartResizePolicyEventHandler(cli client.Client, runtimeCache runtimecache.Cache)

func StartResizePolicyEventHandlerV2 added in v0.12.3

func StartResizePolicyEventHandlerV2(cli client.Client, q workqueue.RateLimitingInterface, runtimeCache runtimecache.Cache)

Types

type AutoResizer

type AutoResizer struct {
	Client  client.Client
	Context context.Context
}

func NewAutoResizer

func NewAutoResizer(cli client.Client, ctx context.Context) *AutoResizer

func (*AutoResizer) Start

func (r *AutoResizer) Start()

type Hooker

type Hooker struct {
	Client  client.Client
	Context context.Context
}

func NewHooker

func NewHooker(cli client.Client, ctx context.Context) *Hooker

func (*Hooker) Start

func (h *Hooker) Start()

type PVCAttacher added in v0.12.2

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

func NewPVCAttacher added in v0.12.2

func (*PVCAttacher) Start added in v0.12.2

func (a *PVCAttacher) Start(stopCh <-chan struct{})

func (*PVCAttacher) StartPVCInformer added in v0.12.2

func (a *PVCAttacher) StartPVCInformer(cli client.Client, ctx context.Context)

type ResizePolicyChain added in v0.12.3

type ResizePolicyChain struct {
	Name  string
	Lock  sync.Mutex
	Chain []*hwameistorv1alpha1.ResizePolicy
}

type ResizePolicyWorker added in v0.12.2

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

func NewResizePolicyWorker added in v0.12.2

func NewResizePolicyWorker(cli client.Client, resizePolicy *hwameistorv1alpha1.ResizePolicy) *ResizePolicyWorker

func (*ResizePolicyWorker) Select added in v0.12.2

type Selection added in v0.12.2

type Selection struct {
	Selected bool
	Type     SelectionType
}

type SelectionType added in v0.12.2

type SelectionType string
const (
	PVCSelector          SelectionType = "pvcSelector"
	NamespaceSelector    SelectionType = "namespaceSelector"
	StorageClassSelector SelectionType = "storageClassSelector"
)

Jump to

Keyboard shortcuts

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