Documentation
¶
Index ¶
- Variables
- func NewDiscoveryConfigMapBuilder(client *pkgclient.Client, instance *hdfsv1alpha1.HdfsCluster, ...) builder.ConfigBuilder
- func NewHdfsDiscovery(client *pkgclient.Client, instance *hdfsv1alpha1.HdfsCluster, ...) reconciler.ResourceReconciler[builder.ConfigBuilder]
- func NewServiceAccountReconciler(client *client.Client, instance *hdfsv1alpha1.HdfsCluster, ...) reconciler.ResourceReconciler[*builder.GenericServiceAccountBuilder]
- type DiscoveryConfigMapBuilder
- type HdfsClusterReconciler
- type Reconciler
Constants ¶
This section is empty.
Variables ¶
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 NewHdfsDiscovery ¶
func NewHdfsDiscovery( client *pkgclient.Client, instance *hdfsv1alpha1.HdfsCluster, clusterInfo reconciler.ClusterInfo) reconciler.ResourceReconciler[builder.ConfigBuilder]
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 ¶
func (b *DiscoveryConfigMapBuilder) Build(ctx context.Context) (ctrlclient.Object, error)
Build constructs the ConfigMap directly without using the common builder infrastructure
type HdfsClusterReconciler ¶
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