Documentation ¶
Index ¶
- Constants
- Variables
- func UpdateStatus(ctx context.Context, input *v1alpha1.GreptimeDBCluster, kc client.Client, ...) error
- func WithCheckEtcdService(enableCheckEtcdService bool) func(*MetaDeployer)
- func WithEtcdMaintenanceBuilder(builder EtcdMaintenanceBuilder) func(*MetaDeployer)
- type CommonDeployer
- func (c *CommonDeployer) GenerateConfigMap(cluster *v1alpha1.GreptimeDBCluster, componentKind v1alpha1.ComponentKind) (*corev1.ConfigMap, error)
- func (c *CommonDeployer) GetCluster(crdObject client.Object) (*v1alpha1.GreptimeDBCluster, error)
- func (c *CommonDeployer) ResourceName(clusterName string, componentKind v1alpha1.ComponentKind) string
- type DatanodeDeployer
- type EtcdMaintenanceBuilder
- type FrontendDeployer
- type MetaDeployer
- type MetaDeployerOption
Constants ¶
View Source
const (
GreptimeComponentName = "app.greptime.io/component"
)
Variables ¶
View Source
var ( DefaultMetricPortName = "metrics" DefaultMetricPath = "/metrics" DefaultScapeInterval = "30s" DefaultConfigPath = "/etc/greptimedb" )
Functions ¶
func UpdateStatus ¶
func UpdateStatus(ctx context.Context, input *v1alpha1.GreptimeDBCluster, kc client.Client, opts ...client.UpdateOption) error
func WithCheckEtcdService ¶
func WithCheckEtcdService(enableCheckEtcdService bool) func(*MetaDeployer)
func WithEtcdMaintenanceBuilder ¶
func WithEtcdMaintenanceBuilder(builder EtcdMaintenanceBuilder) func(*MetaDeployer)
Types ¶
type CommonDeployer ¶
CommonDeployer is the common deployer for all components of GreptimeDBCluster.
func NewFromManager ¶
func NewFromManager(mgr ctrl.Manager) *CommonDeployer
func (*CommonDeployer) GenerateConfigMap ¶
func (c *CommonDeployer) GenerateConfigMap(cluster *v1alpha1.GreptimeDBCluster, componentKind v1alpha1.ComponentKind) (*corev1.ConfigMap, error)
func (*CommonDeployer) GetCluster ¶
func (c *CommonDeployer) GetCluster(crdObject client.Object) (*v1alpha1.GreptimeDBCluster, error)
func (*CommonDeployer) ResourceName ¶
func (c *CommonDeployer) ResourceName(clusterName string, componentKind v1alpha1.ComponentKind) string
type DatanodeDeployer ¶
type DatanodeDeployer struct {
*CommonDeployer
}
DatanodeDeployer is the deployer for datanode.
func NewDatanodeDeployer ¶
func NewDatanodeDeployer(mgr ctrl.Manager) *DatanodeDeployer
func (*DatanodeDeployer) CheckAndUpdateStatus ¶
type EtcdMaintenanceBuilder ¶
type FrontendDeployer ¶
type FrontendDeployer struct {
*CommonDeployer
}
func NewFrontendDeployer ¶
func NewFrontendDeployer(mgr ctrl.Manager) *FrontendDeployer
func (*FrontendDeployer) CheckAndUpdateStatus ¶
type MetaDeployer ¶
type MetaDeployer struct { *CommonDeployer // contains filtered or unexported fields }
func NewMetaDeployer ¶
func NewMetaDeployer(mgr ctrl.Manager, opts ...MetaDeployerOption) *MetaDeployer
func (*MetaDeployer) CheckAndUpdateStatus ¶
func (*MetaDeployer) PreSyncHooks ¶
func (d *MetaDeployer) PreSyncHooks() []deployer.Hook
type MetaDeployerOption ¶
type MetaDeployerOption func(*MetaDeployer)
Click to show internal directories.
Click to hide internal directories.