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 is used to convert between gvk and gvr on known resources. 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 // SkippedNamespaces contains the namespaces that we should not propagate. SkippedNamespaces map[string]bool 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)
Click to show internal directories.
Click to hide internal directories.