tasks

package
v2.2.0-alpha.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CondPDMSProtected

func CondPDMSProtected(state PDMSProtectionState) task.Condition

func NotLeaderPolicy

func NotLeaderPolicy() updater.PreferPolicy[*runtime.TSO]

func TaskContextPDMSProtection

func TaskContextPDMSProtection(state *ReconcileContext, c client.Client) task.Task

func TaskContextTSOClient

func TaskContextTSOClient(state *ReconcileContext, m tsom.TSOClientManager) task.Task

func TaskPDMSProtectedRetry

func TaskPDMSProtectedRetry() task.Task

func TaskPDMSProtection

func TaskPDMSProtection(state *ReconcileContext) task.Task

func TaskService

func TaskService(state common.ObjectState[*v1alpha1.TSOGroup], c client.Client) task.Task

nolint:staticcheck TODO: extract svc to a common task

func TaskUpdater

func TaskUpdater(state *ReconcileContext, c client.Client, af tracker.AllocateFactory) task.Task

TaskUpdater is a task to scale or update TSO when spec of TSOGroup is changed.

Types

type PDMSProtectionState

type PDMSProtectionState interface {
	State
	SetPDMSProtected(bool)
	PDMSProtected() bool
}

type ReconcileContext

type ReconcileContext struct {
	State
}

Jump to

Keyboard shortcuts

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