Documentation ¶
Index ¶
Constants ¶
const ( AnnBindCompleted = "pv.kubernetes.io/bind-completed" AnnBoundByController = "pv.kubernetes.io/bound-by-controller" AnnStorageProvisioner = "volume.beta.kubernetes.io/storage-provisioner" AnnSelectedNode = "volume.kubernetes.io/selected-node" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PVCRestoreItemAction ¶
type PVCRestoreItemAction struct {
Log logrus.FieldLogger
}
PVCRestoreItemAction is a restore item action plugin for Velero
func (*PVCRestoreItemAction) AppliesTo ¶
func (p *PVCRestoreItemAction) AppliesTo() (velero.ResourceSelector, error)
AppliesTo returns information indicating that the PVCRestoreItemAction should be run while restoring PVCs.
func (*PVCRestoreItemAction) Execute ¶
func (p *PVCRestoreItemAction) Execute(input *velero.RestoreItemActionExecuteInput) (*velero.RestoreItemActionExecuteOutput, error)
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.
type VolumeSnapshotClassRestoreItemAction ¶
type VolumeSnapshotClassRestoreItemAction struct {
Log logrus.FieldLogger
}
VolumeSnapshotClassRestoreItemAction is a Velero restore item action plugin for VolumeSnapshotClass
func (*VolumeSnapshotClassRestoreItemAction) AppliesTo ¶
func (p *VolumeSnapshotClassRestoreItemAction) AppliesTo() (velero.ResourceSelector, error)
AppliesTo returns information indicating that VolumeSnapshotClassRestoreItemAction should be invoked while restoring volumesnapshotclass.snapshot.storage.k8s.io resrouces.
func (*VolumeSnapshotClassRestoreItemAction) Execute ¶
func (p *VolumeSnapshotClassRestoreItemAction) Execute(input *velero.RestoreItemActionExecuteInput) (*velero.RestoreItemActionExecuteOutput, error)
Execute restores volumesnapshotclass objects returning any snapshotlister secret as additional items to restore
type VolumeSnapshotContentRestoreItemAction ¶
type VolumeSnapshotContentRestoreItemAction struct {
Log logrus.FieldLogger
}
VolumeSnapshotContentRestoreItemAction is a restore item action plugin for Velero
func (*VolumeSnapshotContentRestoreItemAction) AppliesTo ¶
func (p *VolumeSnapshotContentRestoreItemAction) AppliesTo() (velero.ResourceSelector, error)
AppliesTo returns information indicating VolumeSnapshotContentRestoreItemAction action should be invoked while restoring volumesnapshotcontent.snapshot.storage.k8s.io resources
func (*VolumeSnapshotContentRestoreItemAction) Execute ¶
func (p *VolumeSnapshotContentRestoreItemAction) Execute(input *velero.RestoreItemActionExecuteInput) (*velero.RestoreItemActionExecuteOutput, error)
Execute restores a volumesnapshotcontent object without modification returning the snapshot lister secret, if any, as additional items to restore.
type VolumeSnapshotRestoreItemAction ¶
type VolumeSnapshotRestoreItemAction struct {
Log logrus.FieldLogger
}
VolumeSnapshotRestoreItemAction is a Velero restore item action plugin for VolumeSnapshots
func (*VolumeSnapshotRestoreItemAction) AppliesTo ¶
func (p *VolumeSnapshotRestoreItemAction) AppliesTo() (velero.ResourceSelector, error)
AppliesTo returns information indicating that VolumeSnapshotRestoreItemAction should be invoked while restoring volumesnapshots.snapshot.storage.k8s.io resrouces.
func (*VolumeSnapshotRestoreItemAction) Execute ¶
func (p *VolumeSnapshotRestoreItemAction) Execute(input *velero.RestoreItemActionExecuteInput) (*velero.RestoreItemActionExecuteOutput, error)
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.