reconciler

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

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.

func (*WorkloadReconciler) Run

Run starts the workload reconciler.

Jump to

Keyboard shortcuts

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