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: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CondPDClientIsNotRegisterred

func CondPDClientIsNotRegisterred(state *ReconcileContext) task.Condition

func EnsureSubResourcesDeleted

func EnsureSubResourcesDeleted(ctx context.Context, c client.Client, pd *v1alpha1.PD) (wait bool, _ error)

func LongestHealthPeer

func LongestHealthPeer(pd *v1alpha1.PD, peers []*v1alpha1.PD) string

func PVCNewer

func PVCNewer() common.PVCNewer[*v1alpha1.PD]

func PersistentVolumeClaimName

func PersistentVolumeClaimName(podName, volName string) string

func TaskConfigMap

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

func TaskContextInfoFromPD

func TaskContextInfoFromPD(state *ReconcileContext, cm pdm.PDClientManager) task.Task

func TaskFinalizerDel

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

func TaskPod

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

func TaskStatus

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

func VolumeMount

func VolumeMount(name string, mount *v1alpha1.VolumeMount) *corev1.VolumeMount

func VolumeName

func VolumeName(volName string) string

VolumeName returns the real spec.volumes[*].name of pod TODO(liubo02): extract to namer pkg

Types

type ReconcileContext

type ReconcileContext struct {
	// TODO: replace all fields in ReconcileContext by State
	State

	PDClient pdm.PDClient
	// This is single truth whether pd is initialized
	Initialized bool

	ClusterID string
	MemberID  string
	IsLeader  bool
}

Jump to

Keyboard shortcuts

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