Documentation ¶
Index ¶
- func IsOurPVC(restore etcdv1alpha1.EtcdRestore, pvc corev1.PersistentVolumeClaim) bool
- func IsOurPod(restore etcdv1alpha1.EtcdRestore, pod corev1.Pod) bool
- type Action
- type CreateRuntimeObject
- type CronScheduler
- type EtcdBackupReconciler
- type EtcdBackupScheduleReconciler
- type EtcdClusterReconciler
- type EtcdPeerReconciler
- type EtcdRestoreReconciler
- type MembersByName
- type PatchStatus
- type PeerPVCDeleter
- type Schedule
- type ScheduleMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsOurPVC ¶
func IsOurPVC(restore etcdv1alpha1.EtcdRestore, pvc corev1.PersistentVolumeClaim) bool
func IsOurPod ¶
func IsOurPod(restore etcdv1alpha1.EtcdRestore, pod corev1.Pod) bool
Types ¶
type CreateRuntimeObject ¶
type CreateRuntimeObject struct {
// contains filtered or unexported fields
}
CreateRuntimeObject is an Action which creates the supplied API object
type CronScheduler ¶
type EtcdBackupReconciler ¶
type EtcdBackupReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme BackupAgentImage string ProxyURL string Recorder record.EventRecorder }
EtcdBackupReconciler reconciles a EtcdBackup object
func (*EtcdBackupReconciler) SetupWithManager ¶
func (r *EtcdBackupReconciler) SetupWithManager(mgr ctrl.Manager) error
type EtcdBackupScheduleReconciler ¶
type EtcdBackupScheduleReconciler struct { client.Client Log logr.Logger // CronHandler is able to schedule cronjobs to occur at given times. CronHandler CronScheduler // Schedules holds a mapping of resources to the object responsible for scheduling the backup to be taken. Schedules *ScheduleMap }
EtcdBackupScheduleReconciler reconciles a EtcdBackupSchedule object
func (*EtcdBackupScheduleReconciler) SetupWithManager ¶
func (r *EtcdBackupScheduleReconciler) SetupWithManager(mgr ctrl.Manager) error
type EtcdClusterReconciler ¶
type EtcdClusterReconciler struct { client.Client Log logr.Logger Recorder record.EventRecorder Etcd etcd.APIBuilder }
EtcdClusterReconciler reconciles a EtcdCluster object
func (*EtcdClusterReconciler) SetupWithManager ¶
func (r *EtcdClusterReconciler) SetupWithManager(mgr ctrl.Manager) error
type EtcdPeerReconciler ¶
type EtcdPeerReconciler struct { client.Client Log logr.Logger Etcd etcd.APIBuilder EtcdRepository string }
EtcdPeerReconciler reconciles a EtcdPeer object
func (*EtcdPeerReconciler) SetupWithManager ¶
func (r *EtcdPeerReconciler) SetupWithManager(mgr ctrl.Manager) error
type EtcdRestoreReconciler ¶
type EtcdRestoreReconciler struct { client.Client Log logr.Logger Recorder record.EventRecorder RestorePodImage string ProxyURL string }
EtcdRestoreReconciler reconciles a EtcdRestore object
func (*EtcdRestoreReconciler) SetupWithManager ¶
func (r *EtcdRestoreReconciler) SetupWithManager(mgr ctrl.Manager) error
type MembersByName ¶
type MembersByName []etcdclient.Member
MembersByName provides a sort.Sort interface for etcdClient.Member.Name
func (MembersByName) Len ¶
func (a MembersByName) Len() int
func (MembersByName) Less ¶
func (a MembersByName) Less(i, j int) bool
func (MembersByName) Swap ¶
func (a MembersByName) Swap(i, j int)
type PatchStatus ¶
type PatchStatus struct {
// contains filtered or unexported fields
}
PatchStatus is an Action which patches the status of original with any changed status fields of new.
type PeerPVCDeleter ¶
type PeerPVCDeleter struct {
// contains filtered or unexported fields
}
PeerPVCDeleter deletes the PVC for an EtcdPeer and removes the PVC deletion finalizer.
type ScheduleMap ¶
ScheduleMap is a thread-safe mapping of backup schedules.
func NewScheduleMap ¶
func NewScheduleMap() *ScheduleMap
func (*ScheduleMap) Delete ¶
func (s *ScheduleMap) Delete(key string)
func (*ScheduleMap) Write ¶
func (s *ScheduleMap) Write(key string, value Schedule)