Documentation ¶
Index ¶
- Constants
- func EnsureVolSyncVolumePopulatorCRIfCRDPresent(ctx context.Context, k8sClient client.Client, logger logr.Logger) error
- func GetVolumePopulatorPVCPrime(ctx context.Context, c client.Client, pvc *corev1.PersistentVolumeClaim) (*corev1.PersistentVolumeClaim, error)
- func IndexFieldsForReplicationSource(ctx context.Context, fieldIndexer client.FieldIndexer) error
- func IndexFieldsForVolumePopulator(ctx context.Context, fieldIndexer client.FieldIndexer) error
- type ReplicationDestinationReconciler
- type ReplicationSourceReconciler
- type VolumePopulatorReconciler
Constants ¶
const ( VolPopPVCToReplicationDestinationIndex string = "volPopPvc.spec.dataSourceRef.Name" VolPopPVCToStorageClassIndex string = "volPopPvc.spec.storageClassName" VolPopCRName string = "volsync-replicationdestination" )
const (
ReplicationSourceToSourcePVCIndex string = "replicationsource.spec.sourcePVC"
)
Variables ¶
This section is empty.
Functions ¶
func EnsureVolSyncVolumePopulatorCRIfCRDPresent ¶ added in v0.8.0
func EnsureVolSyncVolumePopulatorCRIfCRDPresent(ctx context.Context, k8sClient client.Client, logger logr.Logger) error
If the VolumePopulator CRD is present (i.e. the VolumePopulator API is available), then make sure we have VolumePopulator CR to register VolSync ReplicationDestination as a valid VolumePopulator
func GetVolumePopulatorPVCPrime ¶ added in v0.8.0
func GetVolumePopulatorPVCPrime(ctx context.Context, c client.Client, pvc *corev1.PersistentVolumeClaim) (*corev1.PersistentVolumeClaim, error)
Finds PVCPrime - will return nil if PVCPrime is not found
func IndexFieldsForReplicationSource ¶ added in v0.9.0
func IndexFieldsForReplicationSource(ctx context.Context, fieldIndexer client.FieldIndexer) error
func IndexFieldsForVolumePopulator ¶ added in v0.8.0
func IndexFieldsForVolumePopulator(ctx context.Context, fieldIndexer client.FieldIndexer) error
Types ¶
type ReplicationDestinationReconciler ¶
type ReplicationDestinationReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme EventRecorder record.EventRecorder }
ReplicationDestinationReconciler reconciles a ReplicationDestination object
func (*ReplicationDestinationReconciler) SetupWithManager ¶
func (r *ReplicationDestinationReconciler) SetupWithManager(mgr ctrl.Manager) error
type ReplicationSourceReconciler ¶
type ReplicationSourceReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme EventRecorder record.EventRecorder }
ReplicationSourceReconciler reconciles a ReplicationSource object
func (*ReplicationSourceReconciler) SetupWithManager ¶
func (r *ReplicationSourceReconciler) SetupWithManager(mgr ctrl.Manager) error
type VolumePopulatorReconciler ¶ added in v0.8.0
type VolumePopulatorReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme EventRecorder record.EventRecorder }
VolumePopulatorReconciler reconciles PVCs that use a dataSourceRef that refers to a ReplicationDestination object. The VolumePopulatorReconciler will create a PVC from the latest snapshot image in a ReplicationDestination.
func (*VolumePopulatorReconciler) Reconcile ¶ added in v0.8.0
func (r *VolumePopulatorReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile logic is adapted from reference at: https://github.com/kubernetes-csi/lib-volume-populator/blob/master/populator-machinery/controller.go
func (*VolumePopulatorReconciler) SetupWithManager ¶ added in v0.8.0
func (r *VolumePopulatorReconciler) SetupWithManager(mgr ctrl.Manager) error
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
VolSync data movers are created by implementing the interfaces in this package.
|
VolSync data movers are created by implementing the interfaces in this package. |