Documentation
¶
Index ¶
- func HeadlessServiceName(groupName string) string
- func InternalServiceName(groupName string) string
- func TaskService(state common.TiProxyGroupState, c client.Client) task.Task
- func TaskStatusAvailable(state State) task.Task
- func TaskUpdater(state *ReconcileContext, c client.Client, af tracker.AllocateFactory) task.Task
- func TiProxyNewer(proxyg *v1alpha1.TiProxyGroup, rev string, _ features.Gates) updater.NewFactory[*runtime.TiProxy]
- type ReconcileContext
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HeadlessServiceName ¶
func InternalServiceName ¶
func TaskService ¶
func TaskStatusAvailable ¶
func TaskUpdater ¶
func TaskUpdater(state *ReconcileContext, c client.Client, af tracker.AllocateFactory) task.Task
TaskUpdater is a task to scale or update TiProxy when spec of TiProxyGroup is changed.
func TiProxyNewer ¶
func TiProxyNewer(proxyg *v1alpha1.TiProxyGroup, rev string, _ features.Gates) updater.NewFactory[*runtime.TiProxy]
Types ¶
type ReconcileContext ¶
type ReconcileContext struct {
State
}
type State ¶
type State interface {
common.TiProxySliceStateInitializer
common.RevisionStateInitializer[*runtime.TiProxyGroup]
common.TiProxyGroupState
common.ClusterState
common.TiProxySliceState
common.RevisionState
common.GroupState[*runtime.TiProxyGroup]
common.ContextClusterNewer[*v1alpha1.TiProxyGroup]
common.ContextObjectNewer[*v1alpha1.TiProxyGroup]
common.ContextSliceNewer[*v1alpha1.TiProxyGroup, *v1alpha1.TiProxy]
common.InstanceSliceState[*runtime.TiProxy]
common.SliceState[*v1alpha1.TiProxy]
common.StatusUpdater
common.StatusPersister[*v1alpha1.TiProxyGroup]
stateutil.IFeatureGates
}
func NewState ¶
func NewState(key types.NamespacedName) State
Click to show internal directories.
Click to hide internal directories.