controller

package
v0.0.0-...-c613016 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrListenerNotFound          = errors.New("listener resource not found")
	ErrListenerAddressesNotFound = errors.New("listener addresses not found")
)

Functions

func NewDiscoveryConfigMapBuilder

func NewDiscoveryConfigMapBuilder(
	client *pkgclient.Client,
	instance *hdfsv1alpha1.HdfsCluster,
	clusterInfo reconciler.ClusterInfo,
) builder.ConfigBuilder

NewDiscoveryConfigMapBuilder creates a new DiscoveryConfigMapBuilder

func NewServiceAccountReconciler

func NewServiceAccountReconciler(
	client *client.Client,
	instance *hdfsv1alpha1.HdfsCluster,
	options ...builder.Option,
) reconciler.ResourceReconciler[*builder.GenericServiceAccountBuilder]

NewServiceAccountReconciler creates a new ServiceAccountReconciler

Types

type DiscoveryConfigMapBuilder

type DiscoveryConfigMapBuilder struct {
	builder.ConfigMapBuilder
	// contains filtered or unexported fields
}

DiscoveryConfigMapBuilder implements discovery-specific ConfigMap logic

func (*DiscoveryConfigMapBuilder) Build

Build constructs the ConfigMap directly without using the common builder infrastructure

type HdfsClusterReconciler

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

HdfsClusterReconciler reconciles a HdfsCluster object

func (*HdfsClusterReconciler) Reconcile

func (r *HdfsClusterReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the HdfsCluster 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.15.0/pkg/reconcile

func (*HdfsClusterReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type Reconciler

type Reconciler struct {
	reconciler.BaseCluster[*hdfsv1alpha1.HdfsClusterSpec]
	ClusterConfig    *hdfsv1alpha1.ClusterConfigSpec
	ClusterOperation *commonsv1alpha1.ClusterOperationSpec
	// contains filtered or unexported fields
}

Reconciler is the main reconciler for HdfsCluster resources

func NewClusterReconciler

func NewClusterReconciler(
	client *resourceClient.Client,
	clusterInfo reconciler.ClusterInfo,
	instance *hdfsv1alpha1.HdfsCluster,
) *Reconciler

NewClusterReconciler creates a new cluster reconciler for HdfsCluster resources

func (*Reconciler) GetImage

func (r *Reconciler) GetImage(roleType constant.Role) *util.Image

GetImage returns the image configuration for HDFS components

func (*Reconciler) RegisterResources

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

RegisterResources registers all resources for the HdfsCluster

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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