Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrListenerNotFound = errors.New("listener resource not found") ErrListenerAddressesNotFound = errors.New("listener addresses not found") )
Functions ¶
This section is empty.
Types ¶
type ClusterReconciler ¶
func NewClusterReconciler ¶
func NewClusterReconciler(client client.Client, scheme *runtime.Scheme, cr *hdfsv1alpha1.HdfsCluster) *ClusterReconciler
func (*ClusterReconciler) ReconcileCluster ¶
func (*ClusterReconciler) ReconcileDiscovery ¶
func (*ClusterReconciler) RegisterResource ¶
func (c *ClusterReconciler) RegisterResource()
func (*ClusterReconciler) RegisterRole ¶
func (c *ClusterReconciler) RegisterRole()
RegisterRole register role reconciler
type Discovery ¶
type Discovery struct { common.GeneralResourceStyleReconciler[*hdfsv1alpha1.HdfsCluster, any] }
func NewDiscovery ¶
func NewDiscovery( scheme *runtime.Scheme, instance *hdfsv1alpha1.HdfsCluster, client client.Client, ) *Discovery
type HdfsClusterInstance ¶
type HdfsClusterInstance struct {
Instance *hdfsv1alpha1.HdfsCluster
}
func (*HdfsClusterInstance) GetClusterConfig ¶
func (h *HdfsClusterInstance) GetClusterConfig() any
func (*HdfsClusterInstance) GetInstanceName ¶
func (h *HdfsClusterInstance) GetInstanceName() string
func (*HdfsClusterInstance) GetNamespace ¶
func (h *HdfsClusterInstance) GetNamespace() string
func (*HdfsClusterInstance) GetRoleConfigSpec ¶
func (h *HdfsClusterInstance) GetRoleConfigSpec(role common.Role) (any, error)
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 ServiceAccountReconciler ¶
type ServiceAccountReconciler struct { common.GeneralResourceStyleReconciler[*hdfsv1alpha1.HdfsCluster, any] }
func NewServiceAccount ¶
func NewServiceAccount( scheme *runtime.Scheme, instance *hdfsv1alpha1.HdfsCluster, client client.Client, groupName string, mergedLabels map[string]string, mergedCfg any, ) *ServiceAccountReconciler
NewServiceAccount new a ServiceAccountReconciler