controller

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SnapshotPodReconciler

type SnapshotPodReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

SnapshotPodReconciler 按触发轮次创建各容器的快照任务,并汇总任务执行结果。

func (*SnapshotPodReconciler) Reconcile

func (r *SnapshotPodReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile 依次执行请求接纳、任务准备及结果同步,并将阶段错误写入 Conditions。 准备失败时仍同步已有任务结果,后续调谐再尝试补齐缺失任务。

func (*SnapshotPodReconciler) SetupWithManager

func (r *SnapshotPodReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager 注册 SnapshotPod 事件;任务进度由 Reconcile 定时查询。

type SnapshotPodTaskReconciler

type SnapshotPodTaskReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	NodeName string
	// contains filtered or unexported fields
}

SnapshotPodTaskReconciler reconciles a SnapshotPodTask object

func (*SnapshotPodTaskReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. the SnapshotPodTask object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.18.2/pkg/reconcile

func (*SnapshotPodTaskReconciler) SetupWithManager

func (r *SnapshotPodTaskReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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