Documentation
¶
Overview ¶
Package apply wires the shared fluxcd/pkg/ssa apply path used by render adapters that don't have their own server-side-apply implementation. The Timoni adapter delegates to its upstream Manager.ApplyObject instead — that path predates this package and retains its own FieldManager identity for back-compat with components already deployed in production clusters.
Index ¶
Constants ¶
const FieldManager = "conure"
FieldManager is the server-side-apply field manager used by adapters built on this package. It is distinct from Timoni's own "timoni" FieldManager so the two paths don't conflict over field ownership in mixed-engine clusters.
const OwnerGroup = "component.core.conure.io"
OwnerGroup is the label-key prefix that ssa.ResourceManager uses for the apply-set ownership labels (e.g. <group>/name, <group>/namespace).
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager wraps a single ssa.ResourceManager for reuse across reconciles. Construct one at controller startup and inject into every engine adapter that needs to apply manifests.
func New ¶
New builds a Manager from a REST config. The REST config is typically the one exposed by the controller-runtime manager (mgr.GetConfig()).
func (*Manager) Apply ¶
func (m *Manager) Apply(ctx context.Context, obj *unstructured.Unstructured, force bool) (*ssa.ChangeSetEntry, error)
Apply performs a single SSA apply via the shared ResourceManager. The returned ChangeSetEntry surfaces drift / create / update outcomes through fluxcd's standard taxonomy.