fe

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFEReady

func CheckFEReady(ctx context.Context, k8sClient client.Client, clusterNamespace, clusterName string) bool

CheckFEReady check the fe cluster is ok.

func GetFEConfig added in v1.9.8

func GetFEConfig(ctx context.Context, client client.Client,
	feSpec *srapi.StarRocksFeSpec, namespace string) (map[string]interface{}, error)

GetFEConfig get the fe config from configMap. It is not a method of FeController, but BE/CN controller also need to get the config from configMap.

Types

type FeController

type FeController struct {
	Client   client.Client
	Recorder record.EventRecorder
}

func New

New construct a FeController.

func (*FeController) ClearResources

func (fc *FeController) ClearResources(ctx context.Context, src *srapi.StarRocksCluster) error

ClearResources clear resource about fe.

func (*FeController) GetControllerName

func (fc *FeController) GetControllerName() string

func (*FeController) SyncCluster

func (fc *FeController) SyncCluster(ctx context.Context, src *srapi.StarRocksCluster) error

SyncCluster starRocksCluster spec to fe statefulset and service.

func (*FeController) UpdateClusterStatus

func (fc *FeController) UpdateClusterStatus(_ context.Context, src *srapi.StarRocksCluster) error

UpdateClusterStatus update the all resource status about fe.

func (*FeController) Validating added in v1.9.9

func (fc *FeController) Validating(feSpec *srapi.StarRocksFeSpec) error

Jump to

Keyboard shortcuts

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