Documentation
¶
Index ¶
- func CheckPD(group *v1alpha1.PDGroup, instance *v1alpha1.PD) bool
- func CheckPDPod(instance *v1alpha1.PD, pod *corev1.Pod) bool
- func CheckScheduler(group *v1alpha1.SchedulerGroup, instance *v1alpha1.Scheduler) bool
- func CheckSchedulerPod(instance *v1alpha1.Scheduler, pod *corev1.Pod) bool
- func CheckScheduling(group *v1alpha1.SchedulingGroup, instance *v1alpha1.Scheduling) bool
- func CheckSchedulingPod(instance *v1alpha1.Scheduling, pod *corev1.Pod) bool
- func CheckTSO(group *v1alpha1.TSOGroup, instance *v1alpha1.TSO) bool
- func CheckTSOPod(instance *v1alpha1.TSO, pod *corev1.Pod) bool
- func CheckTiCDC(group *v1alpha1.TiCDCGroup, instance *v1alpha1.TiCDC) bool
- func CheckTiCDCPod(instance *v1alpha1.TiCDC, pod *corev1.Pod) bool
- func CheckTiDB(group *v1alpha1.TiDBGroup, instance *v1alpha1.TiDB) bool
- func CheckTiDBPod(instance *v1alpha1.TiDB, pod *corev1.Pod) bool
- func CheckTiFlash(group *v1alpha1.TiFlashGroup, instance *v1alpha1.TiFlash) bool
- func CheckTiFlashPod(instance *v1alpha1.TiFlash, pod *corev1.Pod) bool
- func CheckTiKV(group *v1alpha1.TiKVGroup, instance *v1alpha1.TiKV) bool
- func CheckTiKVPod(instance *v1alpha1.TiKV, pod *corev1.Pod) bool
- func CheckTiProxy(group *v1alpha1.TiProxyGroup, instance *v1alpha1.TiProxy) bool
- func CheckTiProxyPod(instance *v1alpha1.TiProxy, pod *corev1.Pod) bool
- func ConvertTiDBTemplate(tmpl *v1alpha1.TiDBTemplate) *v1alpha1.TiDBTemplate
- func EncodeLastPDTemplate(instance *v1alpha1.PD, pod *corev1.Pod) error
- func EncodeLastSchedulerTemplate(instance *v1alpha1.Scheduler, pod *corev1.Pod) error
- func EncodeLastSchedulingTemplate(instance *v1alpha1.Scheduling, pod *corev1.Pod) error
- func EncodeLastTSOTemplate(instance *v1alpha1.TSO, pod *corev1.Pod) error
- func EncodeLastTiCDCTemplate(instance *v1alpha1.TiCDC, pod *corev1.Pod) error
- func EncodeLastTiDBTemplate(instance *v1alpha1.TiDB, pod *corev1.Pod) error
- func EncodeLastTiFlashTemplate(instance *v1alpha1.TiFlash, pod *corev1.Pod) error
- func EncodeLastTiKVTemplate(instance *v1alpha1.TiKV, pod *corev1.Pod) error
- func EncodeLastTiProxyTemplate(instance *v1alpha1.TiProxy, pod *corev1.Pod) error
- func MustEncodeLastPDTemplate(instance *v1alpha1.PD, pod *corev1.Pod)
- func MustEncodeLastSchedulerTemplate(instance *v1alpha1.Scheduler, pod *corev1.Pod)
- func MustEncodeLastSchedulingTemplate(instance *v1alpha1.Scheduling, pod *corev1.Pod)
- func MustEncodeLastTSOTemplate(instance *v1alpha1.TSO, pod *corev1.Pod)
- func MustEncodeLastTiCDCTemplate(instance *v1alpha1.TiCDC, pod *corev1.Pod)
- func MustEncodeLastTiDBTemplate(instance *v1alpha1.TiDB, pod *corev1.Pod)
- func MustEncodeLastTiFlashTemplate(instance *v1alpha1.TiFlash, pod *corev1.Pod)
- func MustEncodeLastTiKVTemplate(instance *v1alpha1.TiKV, pod *corev1.Pod)
- func MustEncodeLastTiProxyTemplate(instance *v1alpha1.TiProxy, pod *corev1.Pod)
- func TemplateFromTiDB(db *v1alpha1.TiDB) *v1alpha1.TiDBTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPD ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 EncodeLastSchedulingTemplate ¶
func EncodeLastSchedulingTemplate(instance *v1alpha1.Scheduling, pod *corev1.Pod) error
func EncodeLastTSOTemplate ¶
func EncodeLastTiCDCTemplate ¶
func EncodeLastTiDBTemplate ¶
func EncodeLastTiKVTemplate ¶
func MustEncodeLastSchedulingTemplate ¶
func MustEncodeLastSchedulingTemplate(instance *v1alpha1.Scheduling, 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.