name

package
v0.0.0-...-ebe3fe6 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceHttpPort   = 9870
	ServiceHttpsPort  = 9871
	ServiceRpcPort    = 8020
	ServiceMetricPort = 8183
)

Variables

This section is empty.

Functions

func MergeConfig

MergeConfig merge the role's config into the role group's config

func NewNameNodeLogging

func NewNameNodeLogging(
	scheme *runtime.Scheme,
	instance *hdfsv1alpha1.HdfsCluster,
	client client.Client,
	groupName string,
	mergedLabels map[string]string,
	mergedCfg *hdfsv1alpha1.NameNodeRoleGroupSpec,
	currentConfigMap *corev1.ConfigMap,
) *common.OverrideExistLoggingRecociler[*hdfsv1alpha1.HdfsCluster, any]

Types

type ConfigMapReconciler

func NewConfigMap

func NewConfigMap(
	scheme *runtime.Scheme,
	instance *hdfsv1alpha1.HdfsCluster,
	client client.Client,
	groupName string,
	labels map[string]string,
	mergedCfg *hdfsv1alpha1.NameNodeRoleGroupSpec,
) *ConfigMapReconciler

NewConfigMap new a ConfigMapReconciler

func (*ConfigMapReconciler) Build

func (*ConfigMapReconciler) ConfigurationOverride

func (c *ConfigMapReconciler) ConfigurationOverride(resource client.Object)

func (*ConfigMapReconciler) LoggingOverride

func (c *ConfigMapReconciler) LoggingOverride(current *corev1.ConfigMap)

type LogDataBuilder

type LogDataBuilder struct {
	// contains filtered or unexported fields
}

func (*LogDataBuilder) MakeContainerLogData

func (l *LogDataBuilder) MakeContainerLogData() map[string]string

func (*LogDataBuilder) OverrideConfigMapData

func (l *LogDataBuilder) OverrideConfigMapData(cmData *map[string]string, container common.ContainerComponent,
	containerLogSpec *hdfsv1alpha1.LoggingConfigSpec)

OverrideConfigMapData override log4j properties and update the configmap

type Role

func NewRoleNameNode

func NewRoleNameNode(
	scheme *runtime.Scheme,
	instance *hdfsv1alpha1.HdfsCluster,
	client client.Client,
	log logr.Logger) *Role

NewRoleNameNode new roleMaster

func (*Role) CacheRoleGroupConfig

func (r *Role) CacheRoleGroupConfig()

func (*Role) ReconcileRole

func (r *Role) ReconcileRole(ctx context.Context) (ctrl.Result, error)

func (*Role) RoleName

func (r *Role) RoleName() common.Role

type RoleGroup

RoleGroup master role group reconcile

func NewRoleGroupReconciler

func NewRoleGroupReconciler(
	scheme *runtime.Scheme,
	instance *hdfsv1alpha1.HdfsCluster,
	client client.Client,
	groupName string,
	roleLabels map[string]string,
	log logr.Logger) *RoleGroup

func (*RoleGroup) MergeGroupConfigSpec

func (m *RoleGroup) MergeGroupConfigSpec() any

func (*RoleGroup) MergeLabels

func (m *RoleGroup) MergeLabels(mergedCfg any) map[string]string

func (*RoleGroup) RegisterResource

func (m *RoleGroup) RegisterResource()

type ServiceReconciler

func NewServiceHeadless

func NewServiceHeadless(
	scheme *runtime.Scheme,
	instance *hdfsv1alpha1.HdfsCluster,
	client client.Client,
	groupName string,
	labels map[string]string,
	mergedCfg *hdfsv1alpha1.NameNodeRoleGroupSpec,
) *ServiceReconciler

NewServiceHeadless new a ServiceReconciler

func (*ServiceReconciler) Build

type StatefulSetReconciler

func NewStatefulSet

func NewStatefulSet(
	scheme *runtime.Scheme,
	instance *hdfsv1alpha1.HdfsCluster,
	client client.Client,
	groupName string,
	labels map[string]string,
	mergedCfg *hdfsv1alpha1.NameNodeRoleGroupSpec,
	replicate int32,
) *StatefulSetReconciler

func (*StatefulSetReconciler) Build

func (*StatefulSetReconciler) CommandOverride

func (s *StatefulSetReconciler) CommandOverride(resource client.Object)

func (*StatefulSetReconciler) EnvOverride

func (s *StatefulSetReconciler) EnvOverride(resource client.Object)

func (*StatefulSetReconciler) GetConditions

func (s *StatefulSetReconciler) GetConditions() *[]metav1.Condition

func (*StatefulSetReconciler) LogOverride

func (s *StatefulSetReconciler) LogOverride(_ client.Object)

func (*StatefulSetReconciler) SetAffinity

func (s *StatefulSetReconciler) SetAffinity(resource client.Object)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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