Documentation ¶
Index ¶
Constants ¶
View Source
const ( StarRocksClusterKind = "StarRocksCluster" StarRocksWarehouseKind = "StarRocksWarehouse" )
Variables ¶
This section is empty.
Functions ¶
func GetAliasName ¶
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
Click to show internal directories.
Click to hide internal directories.