restore

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnBindCompleted          = "pv.kubernetes.io/bind-completed"
	AnnBoundByController      = "pv.kubernetes.io/bound-by-controller"
	AnnStorageProvisioner     = "volume.kubernetes.io/storage-provisioner"
	AnnBetaStorageProvisioner = "volume.beta.kubernetes.io/storage-provisioner"
	AnnSelectedNode           = "volume.kubernetes.io/selected-node"
)
View Source
const (
	GenerateNameRandomLength = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PVCRestoreItemAction

type PVCRestoreItemAction struct {
	Log            logrus.FieldLogger
	Client         kubernetes.Interface
	SnapshotClient snapshotterClientSet.Interface
	CRClient       crclient.Client
}

PVCRestoreItemAction is a restore item action plugin for Velero

func (*PVCRestoreItemAction) AppliesTo

AppliesTo returns information indicating that the PVCRestoreItemAction should be run while restoring PVCs.

func (*PVCRestoreItemAction) AreAdditionalItemsReady added in v0.6.0

func (p *PVCRestoreItemAction) AreAdditionalItemsReady(additionalItems []velero.ResourceIdentifier, restore *velerov1api.Restore) (bool, error)

func (*PVCRestoreItemAction) Cancel added in v0.6.0

func (p *PVCRestoreItemAction) Cancel(operationID string, restore *velerov1api.Restore) error

func (*PVCRestoreItemAction) Execute

Execute modifies the PVC's spec to use the volumesnapshot object as the data source ensuring that the newly provisioned volume can be pre-populated with data from the volumesnapshot.

func (*PVCRestoreItemAction) Name added in v0.6.0

func (p *PVCRestoreItemAction) Name() string

func (*PVCRestoreItemAction) Progress added in v0.6.0

func (p *PVCRestoreItemAction) Progress(operationID string, restore *velerov1api.Restore) (velero.OperationProgress, error)

type VolumeSnapshotClassRestoreItemAction

type VolumeSnapshotClassRestoreItemAction struct {
	Log logrus.FieldLogger
}

VolumeSnapshotClassRestoreItemAction is a Velero restore item action plugin for VolumeSnapshotClass

func (*VolumeSnapshotClassRestoreItemAction) AppliesTo

AppliesTo returns information indicating that VolumeSnapshotClassRestoreItemAction should be invoked while restoring volumesnapshotclass.snapshot.storage.k8s.io resrouces.

func (*VolumeSnapshotClassRestoreItemAction) AreAdditionalItemsReady added in v0.6.0

func (p *VolumeSnapshotClassRestoreItemAction) AreAdditionalItemsReady(additionalItems []velero.ResourceIdentifier, restore *velerov1api.Restore) (bool, error)

func (*VolumeSnapshotClassRestoreItemAction) Cancel added in v0.6.0

func (p *VolumeSnapshotClassRestoreItemAction) Cancel(operationID string, restore *velerov1api.Restore) error

func (*VolumeSnapshotClassRestoreItemAction) Execute

Execute restores volumesnapshotclass objects returning any snapshotlister secret as additional items to restore

func (*VolumeSnapshotClassRestoreItemAction) Name added in v0.6.0

func (*VolumeSnapshotClassRestoreItemAction) Progress added in v0.6.0

type VolumeSnapshotContentRestoreItemAction

type VolumeSnapshotContentRestoreItemAction struct {
	Log logrus.FieldLogger
}

VolumeSnapshotContentRestoreItemAction is a restore item action plugin for Velero

func (*VolumeSnapshotContentRestoreItemAction) AppliesTo

AppliesTo returns information indicating VolumeSnapshotContentRestoreItemAction action should be invoked while restoring volumesnapshotcontent.snapshot.storage.k8s.io resources

func (*VolumeSnapshotContentRestoreItemAction) AreAdditionalItemsReady added in v0.6.0

func (p *VolumeSnapshotContentRestoreItemAction) AreAdditionalItemsReady(additionalItems []velero.ResourceIdentifier, restore *velerov1api.Restore) (bool, error)

func (*VolumeSnapshotContentRestoreItemAction) Cancel added in v0.6.0

func (p *VolumeSnapshotContentRestoreItemAction) Cancel(operationID string, restore *velerov1api.Restore) error

func (*VolumeSnapshotContentRestoreItemAction) Execute

Execute restores a volumesnapshotcontent object without modification returning the snapshot lister secret, if any, as additional items to restore.

func (*VolumeSnapshotContentRestoreItemAction) Name added in v0.6.0

func (*VolumeSnapshotContentRestoreItemAction) Progress added in v0.6.0

type VolumeSnapshotRestoreItemAction

type VolumeSnapshotRestoreItemAction struct {
	Log logrus.FieldLogger
}

VolumeSnapshotRestoreItemAction is a Velero restore item action plugin for VolumeSnapshots

func (*VolumeSnapshotRestoreItemAction) AppliesTo

AppliesTo returns information indicating that VolumeSnapshotRestoreItemAction should be invoked while restoring volumesnapshots.snapshot.storage.k8s.io resrouces.

func (*VolumeSnapshotRestoreItemAction) AreAdditionalItemsReady added in v0.6.0

func (p *VolumeSnapshotRestoreItemAction) AreAdditionalItemsReady(additionalItems []velero.ResourceIdentifier, restore *velerov1api.Restore) (bool, error)

func (*VolumeSnapshotRestoreItemAction) Cancel added in v0.6.0

func (p *VolumeSnapshotRestoreItemAction) Cancel(operationID string, restore *velerov1api.Restore) error

func (*VolumeSnapshotRestoreItemAction) Execute

Execute uses the data such as CSI driver name, storage snapshot handle, snapshot deletion secret (if any) from the annotations to recreate a volumesnapshotcontent object and statically bind the Volumesnapshot object being restored.

func (*VolumeSnapshotRestoreItemAction) Name added in v0.6.0

func (*VolumeSnapshotRestoreItemAction) Progress added in v0.6.0

Jump to

Keyboard shortcuts

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