Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PVCBackupItemAction ¶
type PVCBackupItemAction struct {
Log logrus.FieldLogger
}
PVCBackupItemAction is a backup item action plugin for Velero.
func (*PVCBackupItemAction) AppliesTo ¶
func (p *PVCBackupItemAction) AppliesTo() (velero.ResourceSelector, error)
AppliesTo returns information indicating that the PVCBackupItemAction should be invoked to backup PVCs.
func (*PVCBackupItemAction) Execute ¶
func (p *PVCBackupItemAction) Execute(item runtime.Unstructured, backup *velerov1api.Backup) (runtime.Unstructured, []velero.ResourceIdentifier, error)
Execute recognizes PVCs backed by volumes provisioned by CSI drivers with volumesnapshotting capability and creates snapshots of the underlying PVs by creating volumesnapshot CSI API objects that will trigger the CSI driver to perform the snapshot operation on the volume.
type VolumeSnapshotBackupItemAction ¶
type VolumeSnapshotBackupItemAction struct {
Log logrus.FieldLogger
}
VolumeSnapshotBackupItemAction is a backup item action plugin to backup CSI VolumeSnapshot objects using Velero
func (*VolumeSnapshotBackupItemAction) AppliesTo ¶
func (p *VolumeSnapshotBackupItemAction) AppliesTo() (velero.ResourceSelector, error)
AppliesTo returns information indicating that the VolumeSnapshotBackupItemAction should be invoked to backup volumesnapshots.
func (*VolumeSnapshotBackupItemAction) Execute ¶
func (p *VolumeSnapshotBackupItemAction) Execute(item runtime.Unstructured, backup *velerov1api.Backup) (runtime.Unstructured, []velero.ResourceIdentifier, error)
Execute backs up a CSI volumesnapshot object and captures, as labels and annotations, information from its associated volumesnapshotcontents such as CSI driver name, storage snapshot handle and namespace and name of the snapshot delete secret, if any. It returns the volumesnapshotclass and the volumesnapshotcontents as additional items to be backed up.
type VolumeSnapshotClassBackupItemAction ¶
type VolumeSnapshotClassBackupItemAction struct {
Log logrus.FieldLogger
}
VolumeSnapshotClassBackupItemAction is a backup item action plugin to backup CSI VolumeSnapshotclass objects using Velero
func (*VolumeSnapshotClassBackupItemAction) AppliesTo ¶
func (p *VolumeSnapshotClassBackupItemAction) AppliesTo() (velero.ResourceSelector, error)
AppliesTo returns information indicating that the VolumeSnapshotClassBackupItemAction action should be invoked to backup volumesnapshotclass.
func (*VolumeSnapshotClassBackupItemAction) Execute ¶
func (p *VolumeSnapshotClassBackupItemAction) Execute(item runtime.Unstructured, backup *velerov1api.Backup) (runtime.Unstructured, []velero.ResourceIdentifier, error)
Execute backs up a VolumeSnapshotClass object and returns as additional items any snapshot lister secret that may be referenced in its annotations.
type VolumeSnapshotContentBackupItemAction ¶
type VolumeSnapshotContentBackupItemAction struct {
Log logrus.FieldLogger
}
VolumeSnapshotContentBackupItemAction is a backup item action plugin to backup CSI VolumeSnapshotcontent objects using Velero
func (*VolumeSnapshotContentBackupItemAction) AppliesTo ¶
func (p *VolumeSnapshotContentBackupItemAction) AppliesTo() (velero.ResourceSelector, error)
AppliesTo returns information indicating that the VolumeSnapshotContentBackupItemAction action should be invoked to backup volumesnapshotcontents.
func (*VolumeSnapshotContentBackupItemAction) Execute ¶
func (p *VolumeSnapshotContentBackupItemAction) Execute(item runtime.Unstructured, backup *velerov1api.Backup) (runtime.Unstructured, []velero.ResourceIdentifier, error)
Execute returns the unmodified volumesnapshotcontent object along with the snapshot deletion secret, if any, from its annotation as additional items to backup.