Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SyncSnapshotList ¶ added in v2.7.0
func SyncSnapshotList(ctx context.Context, list []dto.Snapshot, namespace, repository string, l logr.Logger) error
SyncSnapshotList will take a k8upv1.SnapshotList and apply them to the k8s cluster. It will remove any snapshots on the cluster that are not present in the list.
Types ¶
type BackupPod ¶
type BackupPod struct { Command string PodName string ContainerName string Namespace string FileExtension string }
BackupPod contains all information nessecary to execute the backupcommands.
type ExecData ¶
type ExecData struct { Reader *io.PipeReader Done chan bool }
type PodLister ¶
type PodLister struct {
// contains filtered or unexported fields
}
PodLister holds the state for listing the pods.
func NewPodLister ¶
func NewPodLister(ctx context.Context, k8cli client.Client, backupCommandAnnotation, fileExtensionAnnotation, backupContainerAnnotation, namespace string, targetPods []string, skipPreBackup bool, log logr.Logger) *PodLister
NewPodLister returns a PodLister configured to find the defined annotations.
Click to show internal directories.
Click to hide internal directories.