Documentation
¶
Index ¶
- func HeadlessServiceName(groupName string) string
- func InternalServiceName(groupName string) string
- func NotLeaderPolicy() updater.PreferPolicy[*runtime.PD]
- func PDNewer(pdg *v1alpha1.PDGroup, rev string, _ features.Gates) updater.NewFactory[*runtime.PD]
- func TaskBoot(state *ReconcileContext, c client.Client) task.Task
- func TaskContextPDClient(state *ReconcileContext, m pdm.PDClientManager) task.Task
- func TaskFinalizerDel(state State, c client.Client, m pdm.PDClientManager) task.Task
- func TaskService(state common.PDGroupState, c client.Client) task.Task
- func TaskUpdater(state *ReconcileContext, c client.Client, af tracker.AllocateFactory) task.Task
- type Member
- type Metadata
- type Patch
- type ReconcileContext
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HeadlessServiceName ¶
HeadlessServiceName is the name of the headless svc TODO(liubo02): fix length issue TODO(liubo02): extract into common utils
func InternalServiceName ¶
func NotLeaderPolicy ¶
func NotLeaderPolicy() updater.PreferPolicy[*runtime.PD]
func TaskContextPDClient ¶
func TaskContextPDClient(state *ReconcileContext, m pdm.PDClientManager) task.Task
func TaskFinalizerDel ¶
func TaskService ¶
func TaskUpdater ¶
func TaskUpdater(state *ReconcileContext, c client.Client, af tracker.AllocateFactory) task.Task
TaskUpdater is a task to scale or update PD when spec of PDGroup is changed.
Types ¶
type ReconcileContext ¶
type State ¶
type State interface {
common.PDSliceStateInitializer
common.RevisionStateInitializer[*runtime.PDGroup]
common.PDGroupState
common.ClusterState
common.PDSliceState
common.RevisionState
common.GroupState[*runtime.PDGroup]
common.ContextClusterNewer[*v1alpha1.PDGroup]
common.ContextObjectNewer[*v1alpha1.PDGroup]
common.ContextSliceNewer[*v1alpha1.PDGroup, *v1alpha1.PD]
common.InstanceSliceState[*runtime.PD]
common.SliceState[*v1alpha1.PD]
common.StatusUpdater
common.StatusPersister[*v1alpha1.PDGroup]
stateutil.IFeatureGates
}
func NewState ¶
func NewState(key types.NamespacedName) State
Click to show internal directories.
Click to hide internal directories.