Documentation
¶
Overview ¶
Package reconciler reconciles workloads on the agent side: it watches the edge's Placements in the tenant workspace and materializes each as a local Deployment.
The edges workload types (Workload/Placement, group edges.faros.sh) live in the standalone edges provider module. To keep the core agent independent of that provider, this reconciler reads them as unstructured objects and decodes only the fields it needs into local mirror structs — no cross-module import.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkloadReconciler ¶
type WorkloadReconciler struct {
// contains filtered or unexported fields
}
WorkloadReconciler watches the edge's Placements in the tenant workspace and materializes each on the local cluster. When a Placement carries a rendered manifest bundle (spec.manifests) the agent applies it generically with server-side apply; otherwise it falls back to synthesizing a Deployment from the referenced Workload (legacy placements).
func NewWorkloadReconciler ¶
func NewWorkloadReconciler(edgeName string, hubDynamic dynamic.Interface, downstreamConfig *rest.Config) (*WorkloadReconciler, error)
NewWorkloadReconciler creates a workload reconciler. hubDynamic is a dynamic client scoped to the edge's tenant workspace; downstreamConfig targets the edge's local cluster.