Documentation ¶
Index ¶
Constants ¶
const ( ConditionCompleted = "Completed" ConditionDegraded = "Degraded" ConditionResyncing = "Resyncing" )
const ( Success = "Success" // used when replication state is primary Promoted = "Promoted" FailedToPromote = "FailedToPromote" // used when replication state is secondary Demoted = "Demoted" FailedToDemote = "FailedToDemote" Error = "Error" VolumeDegraded = "VolumeDegraded" Healthy = "Healthy" ResyncTriggered = "ResyncTriggered" FailedToResync = "FailedToResync" NotResyncing = "NotResyncing" Unknown = "Unknown" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VGRInstance ¶
type VGRInstance struct {
// contains filtered or unexported fields
}
func (*VGRInstance) UpdateVGRConditions ¶
func (v *VGRInstance) UpdateVGRConditions()
type VolumeGroupReplicationClassReconciler ¶
type VolumeGroupReplicationClassReconciler struct { client.Client Scheme *runtime.Scheme Log logr.Logger }
VolumeGroupReplicationClassReconciler reconciles a VolumeGroupReplicationClass object
func (*VolumeGroupReplicationClassReconciler) Reconcile ¶
func (r *VolumeGroupReplicationClassReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the VolumeGroupReplicationClass object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.12.2/pkg/reconcile
func (*VolumeGroupReplicationClassReconciler) SetupWithManager ¶
func (r *VolumeGroupReplicationClassReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type VolumeGroupReplicationReconciler ¶
type VolumeGroupReplicationReconciler struct { client.Client APIReader client.Reader Scheme *runtime.Scheme Log logr.Logger }
VolumeGroupReplicationReconciler reconciles a VolumeGroupReplication object
func (*VolumeGroupReplicationReconciler) SetupWithManager ¶
func (r *VolumeGroupReplicationReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.