controller

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: Apache-2.0 Imports: 60 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OCIArtifactOriginRevisionAnnotation = "org.opencontainers.image.revision"
	TerminalErrorMessage                = "Reconciliation failed terminally due to configuration error"
)

Variables

This section is empty.

Functions

func HasChanged added in v1.0.1

func HasChanged(action ssa.Action) bool

HasChanged evaluates the given action and returns true if the action type matches a resource mutation or deletion.

func MkdirTempAbs

func MkdirTempAbs(dir, pattern string) (string, error)

MkdirTempAbs creates a tmp dir and returns the absolute path to the dir. This is required since certain OSes like MacOS create temporary files in e.g. `/private/var`, to which `/var` is a symlink.

Types

type KustomizationReconciler

type KustomizationReconciler struct {
	client.Client
	kuberecorder.EventRecorder
	runtimeCtrl.Metrics

	APIReader      client.Reader
	ClusterReader  engine.ClusterReaderFactory
	ConcurrentSSA  int
	ControllerName string
	KubeConfigOpts runtimeClient.KubeConfigOptions
	Mapper         apimeta.RESTMapper
	StatusManager  string

	DefaultServiceAccount   string
	DisallowedFieldManagers []string
	NoCrossNamespaceRefs    bool
	NoRemoteBases           bool
	SOPSAgeSecret           string
	TokenCache              *cache.TokenCache

	ArtifactFetchRetries      int
	DependencyRequeueInterval time.Duration

	AdditiveCELDependencyCheck     bool
	AllowExternalArtifact          bool
	CancelHealthCheckOnNewRevision bool
	FailFast                       bool
	GroupChangeLog                 bool
	StrictSubstitutions            bool
}

KustomizationReconciler reconciles a Kustomization object

func (*KustomizationReconciler) Reconcile

func (r *KustomizationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, retErr error)

func (*KustomizationReconciler) SetupWithManager

SetupWithManager sets up the controller with the Manager. It indexes the Kustomizations by the source references, and sets up watches for changes in those sources, as well as for ConfigMaps and Secrets that the Kustomizations depend on.

type KustomizationReconcilerOptions

type KustomizationReconcilerOptions struct {
	RateLimiter            workqueue.TypedRateLimiter[reconcile.Request]
	WatchConfigsPredicate  predicate.Predicate
	WatchExternalArtifacts bool
}

KustomizationReconcilerOptions contains options for the KustomizationReconciler.

type SourceRevisionChangePredicate

type SourceRevisionChangePredicate struct {
	predicate.Funcs
}

func (SourceRevisionChangePredicate) Update

Jump to

Keyboard shortcuts

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