tidbngmonitoring

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateNGMonitoringConfigMap

func GenerateNGMonitoringConfigMap(tngm *v1alpha1.TidbNGMonitoring, tc *v1alpha1.TidbCluster) (*corev1.ConfigMap, error)

GenerateNGMonitoringConfigMap generate ConfigMap from tidb ng monitoring

func GenerateNGMonitoringHeadlessService

func GenerateNGMonitoringHeadlessService(tngm *v1alpha1.TidbNGMonitoring) *corev1.Service

GenerateNGMonitoringHeadlessService build headless service for ng monitoring

func GenerateNGMonitoringMeta

func GenerateNGMonitoringMeta(tngm *v1alpha1.TidbNGMonitoring, name string) (metav1.ObjectMeta, label.Label)

GenerateNGMonitoringMeta build ObjectMeta and Label for ng monitoring

func GenerateNGMonitoringStartScript

func GenerateNGMonitoringStartScript(tngm *v1alpha1.TidbNGMonitoring, tc *v1alpha1.TidbCluster) (string, error)

func GenerateNGMonitoringStatefulSet

func GenerateNGMonitoringStatefulSet(tngm *v1alpha1.TidbNGMonitoring, tc *v1alpha1.TidbCluster, cm *corev1.ConfigMap) (*apps.StatefulSet, error)

func NGMonitoringConfigMapName

func NGMonitoringConfigMapName(tngm string) string

NGMonitoringHeadlessServiceName return config map name

func NGMonitoringHeadlessServiceName

func NGMonitoringHeadlessServiceName(tngm string) string

NGMonitoringHeadlessServiceName return headless service name

func NGMonitoringName

func NGMonitoringName(tngm string) string

NGMonitoringName return ng monitoring name

func NewNGMonitorManager

func NewNGMonitorManager(deps *controller.Dependencies) *ngMonitoringManager

func NewTCAssetManager

func NewTCAssetManager(deps *controller.Dependencies) *tcAssetManager

func TCClientTLSSecretName

func TCClientTLSSecretName(tngm string) string

TCClientTLSSecretName return name of secret which contains client certs for tc

Types

type FakeNGMonitoringManager

type FakeNGMonitoringManager struct {
	// contains filtered or unexported fields
}

func NewFakeNGMonitoringManager

func NewFakeNGMonitoringManager() *FakeNGMonitoringManager

func (*FakeNGMonitoringManager) MockSync

func (m *FakeNGMonitoringManager) MockSync(sync func(tngm *v1alpha1.TidbNGMonitoring, tc *v1alpha1.TidbCluster) error)

func (*FakeNGMonitoringManager) Sync

type NGMonitoringStartScriptModel

type NGMonitoringStartScriptModel struct {
	TCName          string // name of tidb cluster
	TCNamespace     string // namespace of tidb cluster's namespace
	TCClusterDomain string // cluster domain of tidb cluster

	TNGMName          string // name of tidb ng monitoring
	TNGMNamespace     string // namespace of tidb ng monitoring
	TNGMClusterDomain string // cluster domain of tidb ng monitoring
}

func (*NGMonitoringStartScriptModel) FormatClusterDomain

func (m *NGMonitoringStartScriptModel) FormatClusterDomain() string

func (*NGMonitoringStartScriptModel) NGMPeerAddress

func (m *NGMonitoringStartScriptModel) NGMPeerAddress() string

func (*NGMonitoringStartScriptModel) PDAddress

func (m *NGMonitoringStartScriptModel) PDAddress() string

func (*NGMonitoringStartScriptModel) RenderStartScript

func (m *NGMonitoringStartScriptModel) RenderStartScript() (string, error)

Jump to

Keyboard shortcuts

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