provisioner

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: 17 Imported by: 0

Documentation

Overview

Package provisioner is a dynamic PVC provisioner.

Index

Constants

View Source
const (
	AgentName = "dynamic-pvc-provisioner"

	AnnotationBaseName   = AgentName + ".kubernetes.io"
	AnnotationEnabledKey = "enabled"
	AnnotationPVCKey     = "pvc"

	LabelBaseName     = AnnotationBaseName
	LabelManagedByKey = "managed-by"
	LabelManagedBy    = LabelBaseName + "/" + LabelManagedByKey

	PVCProvisioned        = "PVCProvisioned"
	MessagePVCProvisioned = "PVC created successfully"

	MessageMissingPVC = "'%s' missing PVC"
	ErrMissingPVC     = "ErrMissingPVC"

	MessageInvalidPVC = "'%s' invalid PVC: %s"
	ErrInvalidPVC     = "ErrInvalidPVC"

	MessageMissingVolume = "Pod was missing volume '%s'"
	ErrMissingVolume     = "ErrMissingVolume"

	MessagePVCProvisionFailed = "PVC failed to create"
	ErrPVCProvisionFailed     = "ErrPVCProvisionFailed"
)

Variables

This section is empty.

Functions

func New

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

Types

type Provisioner

type Provisioner struct {
	controller.BasicController

	PodsLister corelisters.PodLister
	PodsSynced cache.InformerSynced
	PodsQueue  workqueue.RateLimitingInterface
}

func (*Provisioner) Run

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

func (*Provisioner) Stop

func (p *Provisioner) Stop()

Jump to

Keyboard shortcuts

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