Documentation
¶
Index ¶
- type BeController
- func (be *BeController) ClearCluster(ctx context.Context, src *srapi.StarRocksCluster) error
- func (be *BeController) GetBeConfig(ctx context.Context, beSpec *srapi.StarRocksBeSpec, namespace string) (map[string]interface{}, error)
- func (be *BeController) GetControllerName() string
- func (be *BeController) SyncCluster(ctx context.Context, src *srapi.StarRocksCluster) error
- func (be *BeController) UpdateClusterStatus(ctx context.Context, src *srapi.StarRocksCluster) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeController ¶
type BeController struct {
Client client.Client
Recorder record.EventRecorder
}
func New ¶
func New(k8sClient client.Client, recorderFor subc.GetEventRecorderForFunc) *BeController
func (*BeController) ClearCluster ¶ added in v1.11.0
func (be *BeController) ClearCluster(ctx context.Context, src *srapi.StarRocksCluster) error
func (*BeController) GetBeConfig ¶ added in v1.9.8
func (be *BeController) GetBeConfig(ctx context.Context, beSpec *srapi.StarRocksBeSpec, namespace string) (map[string]interface{}, error)
GetBeConfig get the config of BE from configmap.
func (*BeController) GetControllerName ¶
func (be *BeController) GetControllerName() string
func (*BeController) SyncCluster ¶
func (be *BeController) SyncCluster(ctx context.Context, src *srapi.StarRocksCluster) error
func (*BeController) UpdateClusterStatus ¶
func (be *BeController) UpdateClusterStatus(ctx context.Context, src *srapi.StarRocksCluster) error
UpdateClusterStatus update the all resource status about be.
Click to show internal directories.
Click to hide internal directories.