Documentation
¶
Index ¶
- func TaskService(state State, c client.Client) task.Task
- func TaskUpdater(state *ReconcileContext, c client.Client, af tracker.AllocateFactory) task.Task
- func TiKVWorkerNewer(wg *v1alpha1.TiKVWorkerGroup, rev string, fg features.Gates) updater.NewFactory[*runtime.TiKVWorker]
- type ReconcileContext
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TaskService ¶
nolint:staticcheck TODO: extract svc to a common task
func TaskUpdater ¶
func TaskUpdater(state *ReconcileContext, c client.Client, af tracker.AllocateFactory) task.Task
TaskUpdater is a task to scale or update TiKVWorker when spec of TiKVWorkerGroup is changed.
func TiKVWorkerNewer ¶
func TiKVWorkerNewer(wg *v1alpha1.TiKVWorkerGroup, rev string, fg features.Gates) updater.NewFactory[*runtime.TiKVWorker]
Types ¶
type ReconcileContext ¶
type ReconcileContext struct {
State
}
type State ¶
type State interface {
common.ContextObjectNewer[*v1alpha1.TiKVWorkerGroup]
common.ContextClusterNewer[*v1alpha1.TiKVWorkerGroup]
common.ContextSliceNewer[*v1alpha1.TiKVWorkerGroup, *v1alpha1.TiKVWorker]
common.RevisionStateInitializer[*runtime.TiKVWorkerGroup]
common.ClusterState
common.InstanceSliceState[*runtime.TiKVWorker]
common.SliceState[*v1alpha1.TiKVWorker]
common.RevisionState
common.GroupState[*runtime.TiKVWorkerGroup]
common.StatusUpdater
common.StatusPersister[*v1alpha1.TiKVWorkerGroup]
stateutil.IFeatureGates
}
func NewState ¶
func NewState(key types.NamespacedName) State
Click to show internal directories.
Click to hide internal directories.