reconciler

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterStageRecResult

type ClusterStageRecResult struct {
	Stage  xapi.XlineClusterOprStage
	Status xapi.OprStageStatus
	Err    error
}

ClusterStageRecResult represents the result of a stage reconciliation for XlineCluster

func (*ClusterStageRecResult) AsXlineClusterRecStatus

func (r *ClusterStageRecResult) AsXlineClusterRecStatus() xapi.XlineClusterRecStatus

type ReconcileContext

type ReconcileContext struct {
	client.Client
	Schema *runtime.Scheme
	Ctx    context.Context
	Log    logr.Logger
}

ReconcileContext is the context for reconciling CRD.

func NewReconcileContext

func NewReconcileContext(client client.Client, schema *runtime.Scheme, ctx context.Context) ReconcileContext

func (*ReconcileContext) CreateOrUpdate

func (r *ReconcileContext) CreateOrUpdate(obj client.Object, objType client.Object) error

CreateOrUpdate creates or updates the kubernetes object.

func (*ReconcileContext) DeleteWhenExist

func (r *ReconcileContext) DeleteWhenExist(key types.NamespacedName, objType client.Object, deleteOpts ...client.DeleteOption) error

DeleteWhenExist deletes the kubernetes object if it exists.

func (*ReconcileContext) Exist

func (r *ReconcileContext) Exist(key types.NamespacedName, objType client.Object) (bool, error)

Exist checks if the kubernetes object exists.

type XlineClusterReconciler

type XlineClusterReconciler struct {
	ReconcileContext
	CR *xapi.XlineCluster
}

XlineClusterReconciler reconciles a XlineCluster object

func (*XlineClusterReconciler) Reconcile

Reconcile all sub components

func (*XlineClusterReconciler) Sync

Sync all subcomponents status.

Jump to

Keyboard shortcuts

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