resourceset

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package resourceset reconciles flux-operator ResourceSets as first-class DAG nodes: wait on dependsOn / inputsFrom RSIPs / the structural parent KS, render the RS via the resourceset package, and emit every child through the shared emission transaction.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	*base.Controller

	// Inputs fetches registry-backed provider content through the shared OCI owner.
	Inputs *oci.Fetcher
	// Retry controls transient failures during provider acquisition.
	Retry cache.RetryConfig
	// AllowMissingSecrets applies the source credential policy to provider inputs.
	AllowMissingSecrets bool
	// contains filtered or unexported fields
}

Controller orchestrates ResourceSet reconciliation. Reconcile-shaping state (Filter, Index, Existence) flows in via Configure exactly once before StartLifecycle — the same "config is read-only after StartLifecycle" invariant the KS and HR controllers carry, encoded in the embedded *base.Controller.

func New

func New(s *store.Store, t *task.Service, owner *cache.Cache) *Controller

New constructs a ResourceSet controller.

func (*Controller) Owns added in v0.7.3

Owns reports whether id belongs to the ResourceSet controller.

func (*Controller) ReconcileNode

func (c *Controller) ReconcileNode(
	ctx context.Context,
	id manifest.NamedResource,
	level manifest.DrainLevel,
	previous schedule.Result,
) *base.Execution

ReconcileNode captures one ResourceSet execution for the scheduler.

Jump to

Keyboard shortcuts

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