tasks

package
v2.2.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CondObjectIsOfflineForGracefulScaleIn

func CondObjectIsOfflineForGracefulScaleIn(state State) task.Condition

func CondOfflineScaleInDrainComplete

func CondOfflineScaleInDrainComplete(state State) task.Condition

func CondTiProxyNeedsScaleInRevive

func CondTiProxyNeedsScaleInRevive(state State) task.Condition

func ConfigMapName

func ConfigMapName(tiproxyName string) string

func PVCNewer

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

func TaskConfigMap

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

func TaskContextInfoFromTiProxy

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

func TaskDeleteOfflinedTiProxy

func TaskDeleteOfflinedTiProxy(state State, c client.Client) task.Task

func TaskDrainPodForDelete

func TaskDrainPodForDelete(state State, c client.Client) task.Task

func TaskOfflineScaleInDrain

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

func TaskPod

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

func TaskReviveFromScaleIn

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

func TaskStatus

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

TODO(liubo02): extract to common task

func TiProxyServiceURL

func TiProxyServiceURL(tiproxy *v1alpha1.TiProxy, scheme string) string

TiProxyServiceURL returns the service URL of a tiproxy member.

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 {
	State

	TiProxyClient tiproxyapi.TiProxyClient
}

Jump to

Keyboard shortcuts

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