Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureImage ¶
func EnsureImage(td *v1alpha1.TidbDashboard) string
func ServiceName ¶
ServiceName return a service name for dashboard.
func StatefulSetName ¶
StatefulSetName return dashboard name.
func TCClusterClientTLSSecretName ¶
TCClusterClientTLSSecretName return name of secret which contains cluster client certs borrowed from tc.
func TCMySQLClientTLSSecretName ¶
TCMySQLClientTLSSecretName return name of secret which contains mysql client certs borrowed from tc.
Types ¶
type FakeManager ¶
type FakeManager struct {
// contains filtered or unexported fields
}
func NewFakeManager ¶
func NewFakeManager() *FakeManager
func (*FakeManager) MockSync ¶
func (m *FakeManager) MockSync(sync func(td *v1alpha1.TidbDashboard, tc *v1alpha1.TidbCluster) error)
func (*FakeManager) Sync ¶
func (m *FakeManager) Sync(td *v1alpha1.TidbDashboard, tc *v1alpha1.TidbCluster) error
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages the specific kubernetes native resources for tidb dashboard.
func NewManager ¶
func NewManager(deps *controller.Dependencies) *Manager
func (*Manager) Sync ¶
func (m *Manager) Sync(td *v1alpha1.TidbDashboard, tc *v1alpha1.TidbCluster) error
type TcTlsManager ¶
type TcTlsManager struct {
// contains filtered or unexported fields
}
TcTlsManager manages the tls secrets, which are borrowed from TiDBCluster, for TiDBDashboard.
func NewTcTlsManager ¶
func NewTcTlsManager(deps *controller.Dependencies) *TcTlsManager
func (*TcTlsManager) Sync ¶
func (m *TcTlsManager) Sync(td *v1alpha1.TidbDashboard, tc *v1alpha1.TidbCluster) error
Click to show internal directories.
Click to hide internal directories.