clusterresourceplacement

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2022 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApplyFailedReason    = "ApplyFailed"
	ApplyPendingReason   = "ApplyPending"
	ApplySucceededReason = "ApplySucceeded"
)
View Source
const (
	LastUpdateAnnotationKey = "work.fleet.azure.com/last-update-time"
	SpecHashAnnotationKey   = "work.fleet.azure.com/spec-hash-value"
)

Variables

View Source
var (
	ErrStillPendingManifest = fmt.Errorf("there are still manifest pending to be processed by the member cluster")
	ErrFailedManifest       = fmt.Errorf("there are failed to apply manifests, please check the `failedResourcePlacements` status")
)

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	// the informer contains the cache for all the resources we need
	InformerManager informer.Manager

	RestMapper meta.RESTMapper

	// Client is used to update objects which goes to the api server directly
	Client client.Client

	// DisabledResourceConfig contains all the api resources that we won't select
	DisabledResourceConfig *utils.DisabledResourceConfig

	WorkPendingGracePeriod metav1.Duration
	Recorder               record.EventRecorder
}

Reconciler reconciles a cluster resource placement object

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, key controller.QueueKey) (ctrl.Result, error)

Jump to

Keyboard shortcuts

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