Documentation
¶
Index ¶
- func TaskConfigMap(state State, c client.Client) task.Task
- func TaskPod(state State, c client.Client) task.Task
- func TaskStatus(state State, 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 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
}
type State ¶
type State interface {
common.TiKVWorkerState
common.ClusterState
common.PodState
common.PodStateUpdater
common.InstanceState[*runtime.TiKVWorker]
common.ContextClusterNewer[*v1alpha1.TiKVWorker]
common.ContextObjectNewer[*v1alpha1.TiKVWorker]
common.StatusPersister[*v1alpha1.TiKVWorker]
common.StatusUpdater
common.HealthyState
stateutil.IFeatureGates
stateutil.IPDClient
}
func NewState ¶
func NewState(key types.NamespacedName) State
Click to show internal directories.
Click to hide internal directories.