controlplane

package
v0.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2024 License: MIT Imports: 27 Imported by: 0

Documentation

Index

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

func IsReconciliationError(err error) bool

IsReconciliationError checks if the given error is a ReconciliationError

func NewReconciliationError

func NewReconciliationError(message string, cause error) error

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

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

type Reconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

Reconciler reconciles a CAPTControlPlane object

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile handles CAPTControlPlane events

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL