tasks

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HeadlessServiceName

func HeadlessServiceName(groupName string) string

HeadlessServiceName is the name of the headless svc TODO(liubo02): fix length issue TODO(liubo02): extract into common utils

func InternalServiceName

func InternalServiceName(groupName string) string

func NotLeaderPolicy

func NotLeaderPolicy() updater.PreferPolicy[*runtime.PD]

func PDNewer

func TaskBoot

func TaskBoot(state *ReconcileContext, c client.Client) task.Task

func TaskContextPDClient

func TaskContextPDClient(state *ReconcileContext, m pdm.PDClientManager) task.Task

func TaskFinalizerDel

func TaskFinalizerDel(state State, c client.Client, m pdm.PDClientManager) task.Task

func TaskService

func TaskService(state common.PDGroupState, c client.Client) task.Task

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 Member

type Member struct {
	ID   string
	Name string
}

Member is a member of the PD. TODO: move to pdapi

type Metadata

type Metadata struct {
	ResourceVersion string             `json:"resourceVersion"`
	Annotations     map[string]*string `json:"annotations"`
}

type Patch

type Patch struct {
	Metadata Metadata `json:"metadata"`
}

type ReconcileContext

type ReconcileContext struct {
	State

	Members []Member

	// mark pdgroup is bootstrapped if cache of pd is synced
	IsBootstrapped bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL