workv1alpha1

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: 38 Imported by: 0

Documentation

Index

Constants

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"
)
View Source
const (

	// TODO: move this to work api definition
	ConditionTypeApplied   = "Applied"
	ConditionTypeAvailable = "Available"
)

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 CreateControllers

func CreateControllers(ctx context.Context, hubCfg, spokeCfg *rest.Config, setupLog logr.Logger, opts ctrl.Options) (manager.Manager, *ApplyWorkReconciler, error)

CreateControllers create the controllers with the supplied config

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