journal

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: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceHttpPort   = 8480
	ServiceHttpsPort  = 8481
	ServiceRpcPort    = 8485
	ServiceMetricPort = 8081
)

Variables

This section is empty.

Functions

func GetRole

func GetRole() common.Role

func MergeConfig

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

func NewJournalNodeLogging

func NewJournalNodeLogging(
	scheme *runtime.Scheme,
	instance *hdfsv1alpha1.HdfsCluster,
	client client.Client,
	groupName string,
	mergedLabels map[string]string,
	mergedCfg *hdfsv1alpha1.JournalNodeRoleGroupSpec,
	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.JournalNodeRoleGroupSpec,
) *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 ContainerBuilder

type ContainerBuilder struct {
	common.ContainerBuilder
	// contains filtered or unexported fields
}

func NewJournalNodeContainerBuilder

func NewJournalNodeContainerBuilder(
	instance *hdfsv1alpha1.HdfsCluster,
	resource corev1.ResourceRequirements,
) *ContainerBuilder

func (*ContainerBuilder) Command

func (d *ContainerBuilder) Command() []string

func (*ContainerBuilder) CommandArgs

func (d *ContainerBuilder) CommandArgs() []string

func (*ContainerBuilder) ContainerEnv

func (d *ContainerBuilder) ContainerEnv() []corev1.EnvVar

func (*ContainerBuilder) ContainerName

func (d *ContainerBuilder) ContainerName() string

func (*ContainerBuilder) ContainerPorts

func (d *ContainerBuilder) ContainerPorts() []corev1.ContainerPort

ContainerPorts make container ports of data node

func (*ContainerBuilder) LivenessProbe

func (d *ContainerBuilder) LivenessProbe() *corev1.Probe

func (*ContainerBuilder) ReadinessProbe

func (d *ContainerBuilder) ReadinessProbe() *corev1.Probe

func (*ContainerBuilder) VolumeMount

func (d *ContainerBuilder) VolumeMount() []corev1.VolumeMount

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 NewRoleJournalNode

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

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.JournalNodeRoleGroupSpec,
) *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.JournalNodeRoleGroupSpec,
	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)

Jump to

Keyboard shortcuts

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