subcontrollers

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

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=starrocks.com

Index

Constants

View Source
const (
	DeploymentLoadType  = "Deployment"
	StatefulSetLoadType = "StatefulSet"
)

Variables

This section is empty.

Functions

func UpdateStatus

func UpdateStatus(componentStatus *srapi.StarRocksComponentStatus, k8sClient client.Client,
	namespace string, name string, podLabels map[string]string, loadType LoadType) error

Types

type ClusterSubController

type ClusterSubController interface {
	// SyncCluster reconcile for sub controller. bool represent the component have updated.
	SyncCluster(ctx context.Context, src *srapi.StarRocksCluster) error

	// ClearResources clear all resource about sub-component.
	// todo(yandongxiao): rename to ClearCluster
	ClearResources(ctx context.Context, src *srapi.StarRocksCluster) error

	// GetControllerName return the controller name, beController, feController,cnController for log.
	GetControllerName() string

	// UpdateClusterStatus only update the component status in src.
	// todo(yandongxiao): better to rename it, because it does not send update request to k8s
	UpdateClusterStatus(ctx context.Context, src *srapi.StarRocksCluster) error
}

type GetEventRecorderForFunc added in v1.9.2

type GetEventRecorderForFunc func(name string) record.EventRecorder

type LoadType

type LoadType string

type WarehouseSubController

type WarehouseSubController interface {
	// ClearWarehouse will clear all resource about warehouse.
	ClearWarehouse(ctx context.Context, namespace string, name string) error

	SyncWarehouse(ctx context.Context, src *srapi.StarRocksWarehouse) error

	GetControllerName() string

	UpdateWarehouseStatus(ctx context.Context, warehouse *srapi.StarRocksWarehouse) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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