Documentation
¶
Index ¶
- func ConfigMapName(tiproxyName string) string
- func EnsureSubResourcesDeleted(ctx context.Context, c client.Client, tiproxy *v1alpha1.TiProxy) (wait bool, _ error)
- func PVCNewer() common.PVCNewer[*v1alpha1.TiProxy]
- func PersistentVolumeClaimName(podName, volName string) string
- func TaskConfigMap(state *ReconcileContext, c client.Client) task.Task
- func TaskContextInfoFromPDAndTiProxy(state *ReconcileContext, c client.Client, cm pdm.PDClientManager) task.Task
- func TaskFinalizerDel(state *ReconcileContext, c client.Client) task.Task
- func TaskPod(state *ReconcileContext, c client.Client) task.Task
- func TaskStatus(state *ReconcileContext, c client.Client) task.Task
- func TiProxyServiceURL(tiproxy *v1alpha1.TiProxy, scheme string) string
- func VolumeMount(name string, mount *v1alpha1.VolumeMount) *corev1.VolumeMount
- func VolumeName(volName string) string
- type ReconcileContext
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigMapName ¶
func TaskConfigMap ¶
func TaskConfigMap(state *ReconcileContext, c client.Client) task.Task
func TaskContextInfoFromPDAndTiProxy ¶
func TaskContextInfoFromPDAndTiProxy(state *ReconcileContext, c client.Client, cm pdm.PDClientManager) task.Task
func TaskFinalizerDel ¶
func TaskFinalizerDel(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 ¶
TiProxyServiceURL returns the service URL of a tiproxy member.
func VolumeMount ¶
func VolumeMount(name string, mount *v1alpha1.VolumeMount) *corev1.VolumeMount
func VolumeName ¶
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
}
type State ¶
type State interface {
common.TiProxyState
common.ClusterState
common.PodState
common.PodStateUpdater
common.InstanceState[*runtime.TiProxy]
common.ContextClusterNewer[*v1alpha1.TiProxy]
common.ContextObjectNewer[*v1alpha1.TiProxy]
common.StatusPersister[*v1alpha1.TiProxy]
common.StatusUpdater
common.HealthyState
common.HealthyStateUpdater
common.ServerLabelsState
stateutil.IFeatureGates
stateutil.IPDClient
}
func NewState ¶
func NewState(key types.NamespacedName) State
Click to show internal directories.
Click to hide internal directories.