Documentation
¶
Index ¶
- func CondPDClientIsNotRegisterred(state *ReconcileContext) task.Condition
- func EnsureSubResourcesDeleted(ctx context.Context, c client.Client, pd *v1alpha1.PD) (wait bool, _ error)
- func LongestHealthPeer(pd *v1alpha1.PD, peers []*v1alpha1.PD) string
- func PVCNewer() common.PVCNewer[*v1alpha1.PD]
- func PersistentVolumeClaimName(podName, volName string) string
- func TaskConfigMap(state *ReconcileContext, c client.Client) task.Task
- func TaskContextInfoFromPD(state *ReconcileContext, 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 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 CondPDClientIsNotRegisterred ¶
func CondPDClientIsNotRegisterred(state *ReconcileContext) task.Condition
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 TaskStatus ¶
func TaskStatus(state *ReconcileContext, c client.Client) task.Task
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 State ¶
type State interface {
common.PDState
common.ClusterState
common.PDSliceState
common.PodState
common.PodStateUpdater
common.InstanceState[*runtime.PD]
common.ContextClusterNewer[*v1alpha1.PD]
common.ContextObjectNewer[*v1alpha1.PD]
common.ContextSliceNewer[*v1alpha1.PD, *v1alpha1.PD]
common.StatusUpdater
common.StatusPersister[*v1alpha1.PD]
common.HealthyState
common.HealthyStateUpdater
stateutil.IFeatureGates
}
func NewState ¶
func NewState(key types.NamespacedName) State
Click to show internal directories.
Click to hide internal directories.