Documentation ¶
Index ¶
- type EndpointStatus
- type GlobalDNSRecordReconciler
- func (r *GlobalDNSRecordReconciler) IsInitialized(obj metav1.Object) bool
- func (r *GlobalDNSRecordReconciler) ManageError(context context.Context, instance *redhatcopv1alpha1.GlobalDNSRecord, ...) (reconcile.Result, error)
- func (r *GlobalDNSRecordReconciler) ManageSuccess(context context.Context, instance *redhatcopv1alpha1.GlobalDNSRecord, ...) (reconcile.Result, error)
- func (r *GlobalDNSRecordReconciler) Reconcile(context context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *GlobalDNSRecordReconciler) SetupWithManager(mgr ctrl.Manager) error
- type ServiceReconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndpointStatus ¶
type EndpointStatus struct {
// contains filtered or unexported fields
}
type GlobalDNSRecordReconciler ¶
type GlobalDNSRecordReconciler struct { util.ReconcilerBase Log logr.Logger // contains filtered or unexported fields }
GlobalDNSRecordReconciler reconciles a GlobalDNSRecord object
func (*GlobalDNSRecordReconciler) IsInitialized ¶
func (r *GlobalDNSRecordReconciler) IsInitialized(obj metav1.Object) bool
IsInitialized initislizes the instance, currently is simply adds a finalizer.
func (*GlobalDNSRecordReconciler) ManageError ¶
func (r *GlobalDNSRecordReconciler) ManageError(context context.Context, instance *redhatcopv1alpha1.GlobalDNSRecord, endpointStatusMap map[string]EndpointStatus, issue error) (reconcile.Result, error)
ManageError manage error sets an error status in the CR and fires an event, finally it returns the error so the operator can re-attempt
func (*GlobalDNSRecordReconciler) ManageSuccess ¶
func (r *GlobalDNSRecordReconciler) ManageSuccess(context context.Context, instance *redhatcopv1alpha1.GlobalDNSRecord, endpointStatusMap map[string]EndpointStatus) (reconcile.Result, error)
ManageSuccess will update the status of the CR and return a successful reconcile result
func (*GlobalDNSRecordReconciler) Reconcile ¶
func (r *GlobalDNSRecordReconciler) Reconcile(context 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 GlobalDNSRecord 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.7.0/pkg/reconcile
func (*GlobalDNSRecordReconciler) SetupWithManager ¶
func (r *GlobalDNSRecordReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ServiceReconciler ¶
type ServiceReconciler struct { util.ReconcilerBase // contains filtered or unexported fields }