object

package
v1.9.7 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StarRocksClusterKind   = "StarRocksCluster"
	StarRocksWarehouseKind = "StarRocksWarehouse"
)

Variables

This section is empty.

Functions

func GetAliasName

func GetAliasName(warehouseName string) string

Types

type StarRocksObject

type StarRocksObject struct {
	*metav1.TypeMeta
	*metav1.ObjectMeta

	// ClusterName is the name of StarRocksCluster.
	ClusterName string

	// Kind is StarRocksCluster or StarRocksWarehouse.
	// The reason why we need this field is that we can't make sure ObjectMeta.Kind is filled.
	Kind string

	// AliasName represents the prefix of subresource names for cn component. The reason is that when the name of
	// StarRocksWarehouse is the same as the name of StarRocksCluster, operator should avoid to create the same name
	// StatefulSet, Service, etc.
	AliasName string
}

StarRocksObject is a wrapper of metav1.TypeMeta and metav1.ObjectMeta for StarRocksCluster and StarRocksWarehouse.

func NewFromCluster

func NewFromCluster(cluster *srapi.StarRocksCluster) StarRocksObject

func NewFromWarehouse

func NewFromWarehouse(warehouse *srapi.StarRocksWarehouse) StarRocksObject

Jump to

Keyboard shortcuts

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