Documentation ¶
Index ¶
- func GenerateNGMonitoringConfigMap(tngm *v1alpha1.TidbNGMonitoring, tc *v1alpha1.TidbCluster) (*corev1.ConfigMap, error)
- func GenerateNGMonitoringHeadlessService(tngm *v1alpha1.TidbNGMonitoring) *corev1.Service
- func GenerateNGMonitoringMeta(tngm *v1alpha1.TidbNGMonitoring, name string) (metav1.ObjectMeta, label.Label)
- func GenerateNGMonitoringStartScript(tngm *v1alpha1.TidbNGMonitoring, tc *v1alpha1.TidbCluster) (string, error)
- func GenerateNGMonitoringStatefulSet(tngm *v1alpha1.TidbNGMonitoring, tc *v1alpha1.TidbCluster, ...) (*apps.StatefulSet, error)
- func NGMonitoringConfigMapName(tngm string) string
- func NGMonitoringHeadlessServiceName(tngm string) string
- func NGMonitoringName(tngm string) string
- func NewNGMonitorManager(deps *controller.Dependencies) *ngMonitoringManager
- func NewTCAssetManager(deps *controller.Dependencies) *tcAssetManager
- func TCClientTLSSecretName(tngm string) string
- type FakeNGMonitoringManager
- type NGMonitoringStartScriptModel
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 ¶
NGMonitoringHeadlessServiceName return config map name
func NGMonitoringHeadlessServiceName ¶
NGMonitoringHeadlessServiceName return headless service name
func NGMonitoringName ¶
NGMonitoringName return ng monitoring name
func NewNGMonitorManager ¶
func NewNGMonitorManager(deps *controller.Dependencies) *ngMonitoringManager
func NewTCAssetManager ¶
func NewTCAssetManager(deps *controller.Dependencies) *tcAssetManager
func TCClientTLSSecretName ¶
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 ¶
func (m *FakeNGMonitoringManager) Sync(tngm *v1alpha1.TidbNGMonitoring, tc *v1alpha1.TidbCluster) error
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)
Click to show internal directories.
Click to hide internal directories.