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