apply

package
v0.0.0-...-257ac8b Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

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

View Source
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.

View Source
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

func New(cfg *rest.Config, scheme *runtime.Scheme) (*Manager, error)

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.

Jump to

Keyboard shortcuts

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