Documentation ¶
Index ¶
- Constants
- func FindStatusCondition(conditions []xpv1.Condition, conditionType xpv1.ConditionType) *xpv1.Condition
- func IsReconciliationError(err error) bool
- func NewReconciliationError(message string, cause error) error
- type CaptControlPlaneTemplateReconciler
- type Reconciler
- type ReconciliationError
Constants ¶
View Source
const ( // Reason constants for status conditions ReasonSecretError = "SecretError" ReasonEndpointError = "EndpointError" ReasonWorkspaceNotReady = "WorkspaceNotReady" ReasonEndpointNotReady = "EndpointNotReady" )
View Source
const (
// CAPTControlPlaneFinalizer is the finalizer added to CAPTControlPlane instances
CAPTControlPlaneFinalizer = "controlplane.cluster.x-k8s.io/captcontrolplane"
)
View Source
const (
// ReasonEndpointUpdateFailed indicates that the endpoint update failed
ReasonEndpointUpdateFailed = "EndpointUpdateFailed"
)
Variables ¶
This section is empty.
Functions ¶
func FindStatusCondition ¶
func FindStatusCondition(conditions []xpv1.Condition, conditionType xpv1.ConditionType) *xpv1.Condition
FindStatusCondition finds the condition that matches the given type in the condition slice
func IsReconciliationError ¶
IsReconciliationError checks if the given error is a ReconciliationError
func NewReconciliationError ¶
NewReconciliationError creates a new ReconciliationError
Types ¶
type CaptControlPlaneTemplateReconciler ¶
type CaptControlPlaneTemplateReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder }
CaptControlPlaneTemplateReconciler reconciles a CaptControlPlaneTemplate object
func (*CaptControlPlaneTemplateReconciler) Reconcile ¶
func (r *CaptControlPlaneTemplateReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile handles CaptControlPlaneTemplate reconciliation
func (*CaptControlPlaneTemplateReconciler) SetupWithManager ¶
func (r *CaptControlPlaneTemplateReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type Reconciler ¶
Reconciler reconciles a CAPTControlPlane object
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ReconciliationError ¶
type ReconciliationError struct {
// contains filtered or unexported fields
}
ReconciliationError represents an error that occurred during reconciliation
func (*ReconciliationError) Error ¶
func (e *ReconciliationError) Error() string
Error returns the error message
func (*ReconciliationError) Unwrap ¶
func (e *ReconciliationError) Unwrap() error
Unwrap returns the underlying error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.