reloadable

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPD

func CheckPD(group *v1alpha1.PDGroup, instance *v1alpha1.PD) bool

CheckPD returns whether changes are reloadable. No change also means reloadable. We assume that only when the instance template is changed, the pod spec will change. Instance copies the template spec from group directly, so we can use the template of instance directly as the last template. This function is used in the group controller.

func CheckPDPod

func CheckPDPod(instance *v1alpha1.PD, pod *corev1.Pod) bool

CheckPDPod returns whether changes are reloadable. No change also means reloadable. Pod records the last template in annotation. We use a same way to check whether changes are reloadable. This function is used in the instance controller.

func CheckScheduler

func CheckScheduler(group *v1alpha1.SchedulerGroup, instance *v1alpha1.Scheduler) bool

CheckScheduler returns whether changes are reloadable. No change also means reloadable. We assume that only when the instance template is changed, the pod spec will change. Instance copies the template spec from group directly, so we can use the template of instance directly as the last template. This function is used in the group controller.

func CheckSchedulerPod

func CheckSchedulerPod(instance *v1alpha1.Scheduler, pod *corev1.Pod) bool

CheckSchedulerPod returns whether changes are reloadable. No change also means reloadable. Pod records the last template in annotation. We use a same way to check whether changes are reloadable. This function is used in the instance controller.

func CheckScheduling

func CheckScheduling(group *v1alpha1.SchedulingGroup, instance *v1alpha1.Scheduling) bool

CheckScheduling returns whether changes are reloadable. No change also means reloadable. We assume that only when the instance template is changed, the pod spec will change. Instance copies the template spec from group directly, so we can use the template of instance directly as the last template. This function is used in the group controller.

func CheckSchedulingPod

func CheckSchedulingPod(instance *v1alpha1.Scheduling, pod *corev1.Pod) bool

CheckSchedulingPod returns whether changes are reloadable. No change also means reloadable. Pod records the last template in annotation. We use a same way to check whether changes are reloadable. This function is used in the instance controller.

func CheckTSO

func CheckTSO(group *v1alpha1.TSOGroup, instance *v1alpha1.TSO) bool

CheckTSO returns whether changes are reloadable. No change also means reloadable. We assume that only when the instance template is changed, the pod spec will change. Instance copies the template spec from group directly, so we can use the template of instance directly as the last template. This function is used in the group controller.

func CheckTSOPod

func CheckTSOPod(instance *v1alpha1.TSO, pod *corev1.Pod) bool

CheckTSOPod returns whether changes are reloadable. No change also means reloadable. Pod records the last template in annotation. We use a same way to check whether changes are reloadable. This function is used in the instance controller.

func CheckTiCDC

func CheckTiCDC(group *v1alpha1.TiCDCGroup, instance *v1alpha1.TiCDC) bool

CheckTiCDC returns whether changes are reloadable. No change also means reloadable. We assume that only when the instance template is changed, the pod spec will change. Instance copies the template spec from group directly, so we can use the template of instance directly as the last template. This function is used in the group controller.

func CheckTiCDCPod

func CheckTiCDCPod(instance *v1alpha1.TiCDC, pod *corev1.Pod) bool

CheckTiCDCPod returns whether changes are reloadable. No change also means reloadable. Pod records the last template in annotation. We use a same way to check whether changes are reloadable. This function is used in the instance controller.

func CheckTiDB

func CheckTiDB(group *v1alpha1.TiDBGroup, instance *v1alpha1.TiDB) bool

CheckTiDB returns whether changes are reloadable. No change also means reloadable. We assume that only when the instance template is changed, the pod spec will change. Instance copies the template spec from group directly, so we can use the template of instance directly as the last template. This function is used in the group controller.

func CheckTiDBPod

func CheckTiDBPod(instance *v1alpha1.TiDB, pod *corev1.Pod) bool

CheckTiDBPod returns whether changes are reloadable. No change also means reloadable. Pod records the last template in annotation. We use a same way to check whether changes are reloadable. This function is used in the instance controller.

func CheckTiFlash

func CheckTiFlash(group *v1alpha1.TiFlashGroup, instance *v1alpha1.TiFlash) bool

CheckTiFlash returns whether changes are reloadable. No change also means reloadable. We assume that only when the instance template is changed, the pod spec will change. Instance copies the template spec from group directly, so we can use the template of instance directly as the last template. This function is used in the group controller.

func CheckTiFlashPod

func CheckTiFlashPod(instance *v1alpha1.TiFlash, pod *corev1.Pod) bool

CheckTiFlashPod returns whether changes are reloadable. No change also means reloadable. Pod records the last template in annotation. We use a same way to check whether changes are reloadable. This function is used in the instance controller.

func CheckTiKV

func CheckTiKV(group *v1alpha1.TiKVGroup, instance *v1alpha1.TiKV) bool

CheckTiKV returns whether changes are reloadable. No change also means reloadable. We assume that only when the instance template is changed, the pod spec will change. Instance copies the template spec from group directly, so we can use the template of instance directly as the last template. This function is used in the group controller.

func CheckTiKVPod

func CheckTiKVPod(instance *v1alpha1.TiKV, pod *corev1.Pod) bool

CheckTiKVPod returns whether changes are reloadable. No change also means reloadable. Pod records the last template in annotation. We use a same way to check whether changes are reloadable. This function is used in the instance controller.

func CheckTiProxy

func CheckTiProxy(group *v1alpha1.TiProxyGroup, instance *v1alpha1.TiProxy) bool

CheckTiProxy returns whether changes are reloadable. No change also means reloadable. We assume that only when the instance template is changed, the pod spec will change. Instance copies the template spec from group directly, so we can use the template of instance directly as the last template. This function is used in the group controller.

func CheckTiProxyPod

func CheckTiProxyPod(instance *v1alpha1.TiProxy, pod *corev1.Pod) bool

CheckTiProxyPod returns whether changes are reloadable. No change also means reloadable. Pod records the last template in annotation. We use a same way to check whether changes are reloadable. This function is used in the instance controller.

func ConvertTiDBTemplate

func ConvertTiDBTemplate(tmpl *v1alpha1.TiDBTemplate) *v1alpha1.TiDBTemplate

ConvertTiDBTemplate will ignore some fields TODO: set default for some empty fields

func EncodeLastPDTemplate

func EncodeLastPDTemplate(instance *v1alpha1.PD, pod *corev1.Pod) error

func EncodeLastSchedulerTemplate

func EncodeLastSchedulerTemplate(instance *v1alpha1.Scheduler, pod *corev1.Pod) error

func EncodeLastSchedulingTemplate

func EncodeLastSchedulingTemplate(instance *v1alpha1.Scheduling, pod *corev1.Pod) error

func EncodeLastTSOTemplate

func EncodeLastTSOTemplate(instance *v1alpha1.TSO, pod *corev1.Pod) error

func EncodeLastTiCDCTemplate

func EncodeLastTiCDCTemplate(instance *v1alpha1.TiCDC, pod *corev1.Pod) error

func EncodeLastTiDBTemplate

func EncodeLastTiDBTemplate(instance *v1alpha1.TiDB, pod *corev1.Pod) error

func EncodeLastTiFlashTemplate

func EncodeLastTiFlashTemplate(instance *v1alpha1.TiFlash, pod *corev1.Pod) error

func EncodeLastTiKVTemplate

func EncodeLastTiKVTemplate(instance *v1alpha1.TiKV, pod *corev1.Pod) error

func EncodeLastTiProxyTemplate

func EncodeLastTiProxyTemplate(instance *v1alpha1.TiProxy, pod *corev1.Pod) error

func MustEncodeLastPDTemplate

func MustEncodeLastPDTemplate(instance *v1alpha1.PD, pod *corev1.Pod)

func MustEncodeLastSchedulerTemplate

func MustEncodeLastSchedulerTemplate(instance *v1alpha1.Scheduler, pod *corev1.Pod)

func MustEncodeLastSchedulingTemplate

func MustEncodeLastSchedulingTemplate(instance *v1alpha1.Scheduling, pod *corev1.Pod)

func MustEncodeLastTSOTemplate

func MustEncodeLastTSOTemplate(instance *v1alpha1.TSO, pod *corev1.Pod)

func MustEncodeLastTiCDCTemplate

func MustEncodeLastTiCDCTemplate(instance *v1alpha1.TiCDC, pod *corev1.Pod)

func MustEncodeLastTiDBTemplate

func MustEncodeLastTiDBTemplate(instance *v1alpha1.TiDB, pod *corev1.Pod)

func MustEncodeLastTiFlashTemplate

func MustEncodeLastTiFlashTemplate(instance *v1alpha1.TiFlash, pod *corev1.Pod)

func MustEncodeLastTiKVTemplate

func MustEncodeLastTiKVTemplate(instance *v1alpha1.TiKV, pod *corev1.Pod)

func MustEncodeLastTiProxyTemplate

func MustEncodeLastTiProxyTemplate(instance *v1alpha1.TiProxy, pod *corev1.Pod)

func TemplateFromTiDB

func TemplateFromTiDB(db *v1alpha1.TiDB) *v1alpha1.TiDBTemplate

TemplateFromTiDB gets tidb template from tidb instance TODO: ignore inherited labels and annotations

Types

This section is empty.

Jump to

Keyboard shortcuts

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