controller

package
v0.0.0-...-ae2b673 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DorisClusterReconciler

type DorisClusterReconciler struct {
	ctrlclient.Client
	Scheme *runtime.Scheme
	Log    logr.Logger
}

DorisClusterReconciler reconciles a DorisCluster object

func (*DorisClusterReconciler) Reconcile

func (r *DorisClusterReconciler) 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. For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.15.0/pkg/reconcile

func (*DorisClusterReconciler) SetupWithManager

func (r *DorisClusterReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type Reconciler

Reconciler is the main reconciler for DorisCluster resources

func NewClusterReconciler

func NewClusterReconciler(
	client *resourceClient.Client,
	clusterInfo reconciler.ClusterInfo,
	spec *dorisv1alpha1.DorisClusterSpec,
) *Reconciler

NewClusterReconciler creates a new cluster reconciler for DorisCluster resources

func (*Reconciler) GetImage

func (r *Reconciler) GetImage(roleType constants.ComponentType) *util.Image

GetImage returns the image configuration for Doris components

func (*Reconciler) RegisterResources

func (r *Reconciler) RegisterResources(ctx context.Context) error

RegisterResources registers all resources for the DorisCluster

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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