Documentation ¶
Index ¶
Constants ¶
View Source
const ManagedLabel = "sts-resize.vshn.net/managed"
ManagedLabel is a label to mark resources to be managed by the controller
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entity ¶
type Entity struct { Namespace string SourceName string Labels map[string]string Spec corev1.PersistentVolumeClaimSpec TargetSize resource.Quantity BackedUp bool Restored bool }
Entity describs a resizable PVC
func NewEntity ¶
func NewEntity(pvc corev1.PersistentVolumeClaim, growTo resource.Quantity) Entity
NewEntity returns a new pvc Info
func (Entity) BackupName ¶
BackupName return the name of the backup
func (Entity) GetBackup ¶
func (pi Entity) GetBackup() *corev1.PersistentVolumeClaim
GetBackup returns a pvc resource for the backup
func (Entity) GetResizedSource ¶
func (pi Entity) GetResizedSource() *corev1.PersistentVolumeClaim
GetResizedSource returns a pvc resource for the enlarged original PVC
Click to show internal directories.
Click to hide internal directories.