work

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AppliedWorkFailedReason is the reason string of work condition when it failed to apply the work.
	AppliedWorkFailedReason = "AppliedWorkFailed"
	// AppliedWorkCompleteReason is the reason string of work condition when it finished applying work.
	AppliedWorkCompleteReason = "AppliedWorkComplete"
	// AppliedManifestFailedReason is the reason string of condition when it failed to apply manifest.
	AppliedManifestFailedReason = "AppliedManifestFailedReason"
)

WorkCondition condition reasons

View Source
const (
	// ManifestCreatedAction indicates that we created the manifest for the first time.
	ManifestCreatedAction applyAction = "ManifestCreated"

	// ManifestThreeWayMergePatchAction indicates that we updated the manifest using three-way merge patch.
	ManifestThreeWayMergePatchAction applyAction = "ManifestThreeWayMergePatched"

	// ManifestServerSideAppliedAction indicates that we updated the manifest using server side apply.
	ManifestServerSideAppliedAction applyAction = "ManifestServerSideApplied"

	// ManifestNoChangeAction indicates that we don't need to change the manifest.
	ManifestNoChangeAction applyAction = "ManifestNoChange"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyWorkReconciler

type ApplyWorkReconciler struct {
	// contains filtered or unexported fields
}

ApplyWorkReconciler reconciles a Work object

func NewApplyWorkReconciler

func NewApplyWorkReconciler(hubClient client.Client, spokeDynamicClient dynamic.Interface, spokeClient client.Client,
	restMapper meta.RESTMapper, recorder record.EventRecorder, concurrency int, workNameSpace string) *ApplyWorkReconciler

func (*ApplyWorkReconciler) Join

Join starts to reconcile

func (*ApplyWorkReconciler) Leave

func (r *ApplyWorkReconciler) Leave(ctx context.Context) error

Leave start

func (*ApplyWorkReconciler) Reconcile

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

Reconcile implement the control loop logic for Work object.

func (*ApplyWorkReconciler) SetupWithManager

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

SetupWithManager wires up the controller.

Jump to

Keyboard shortcuts

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