Versions in this module Expand all Collapse all v1 v1.23.0 Oct 27, 2025 Changes in this version + const RenderingFailed + const RenderingInProgress + const RenderingNotRequired + const RenderingRequired + const RenderingSkipped + const RenderingSucceeded + func BadScopeErr(resource client.Object, want declared.Scope) status.ResourceError + func OptionsForScope(options validate.Options, scope declared.Scope) validate.Options + type EventHandler struct + Context context.Context + NSControllerState *namespacecontroller.State + Reconciler Reconciler + func NewEventHandler(ctx context.Context, r Reconciler, ...) *EventHandler + func (s *EventHandler) Handle(event events.Event) events.Result + type FileSource struct + HydratedLink string + HydratedRoot string + ReconcilerSignalsDir cmpath.Absolute + RepoRoot cmpath.Absolute + SourceBranch string + SourceDir cmpath.Absolute + SourceRepo string + SourceRev string + SourceType configsync.SourceType + SyncDir cmpath.Relative + type Files struct + type GitSourceSpec struct + Branch string + Dir string + Repo string + Revision string + func (g GitSourceSpec) Equals(other SourceSpec) bool + type HelmSourceSpec struct + Chart string + Repo string + Version string + func (h HelmSourceSpec) Equals(other SourceSpec) bool + type OCISourceSpec struct + Dir string + Image string + func (o OCISourceSpec) Equals(other SourceSpec) bool + type Options struct + Client client.Client + Clock clock.Clock + ClusterName string + ConfigParser filesystem.ConfigParser + Converter *declared.ValueConverter + DeclaredResources *declared.Resources + DiscoveryClient discovery.ServerResourcer + ReconcilerName string + Scope declared.Scope + SyncName string + WebhookEnabled bool + type Parser interface + ParseSource func(ctx context.Context, state *sourceState) ([]ast.FileObject, status.MultiError) + type ReconcileResult struct + SourceChanged bool + Success bool + type Reconciler interface + Options func() *ReconcilerOptions + Reconcile func(ctx context.Context, trigger string) ReconcileResult + ReconcilerState func() *ReconcilerState + UpdateSyncStatus func(context.Context) error + func NewRepoSyncReconciler(recOpts *ReconcilerOptions, parseOpts *Options) Reconciler + func NewRootSyncReconciler(recOpts *ReconcilerOptions, parseOpts *RootOptions) Reconciler + type ReconcilerOptions struct + FullSyncPeriod time.Duration + RenderingEnabled bool + StatusUpdatePeriod time.Duration + type ReconcilerState struct + func (s *ReconcilerState) IsFullSyncRequired(now metav1.Time, fullSyncPeriod time.Duration) bool + func (s *ReconcilerState) RecordFailure(c clock.Clock, errs status.MultiError) + func (s *ReconcilerState) RecordFullSyncStart(now metav1.Time) + func (s *ReconcilerState) RecordReadFailure() + func (s *ReconcilerState) RecordReadSuccess(source *sourceState) + func (s *ReconcilerState) RecordRenderInProgress() + func (s *ReconcilerState) RecordSyncSuccess(c clock.Clock) + func (s *ReconcilerState) SyncErrors() status.MultiError + type ReconcilerStatus struct + RenderingStatus *RenderingStatus + SourceStatus *SourceStatus + SyncStatus *SyncStatus + func (s *ReconcilerStatus) DeepCopy() *ReconcilerStatus + type RenderingStatus struct + Commit string + Errs status.MultiError + LastUpdate metav1.Time + Message string + RequiresRendering bool + Spec SourceSpec + func (rs *RenderingStatus) DeepCopy() *RenderingStatus + func (rs *RenderingStatus) Equals(other *RenderingStatus) bool + type RootOptions struct + DynamicNSSelectorEnabled bool + NSControllerState *namespacecontroller.State + NamespaceStrategy configsync.NamespaceStrategy + SourceFormat configsync.SourceFormat + type SourceSpec interface + Equals func(SourceSpec) bool + func SourceSpecFromFileSource(source FileSource, sourceType configsync.SourceType, commit string) SourceSpec + type SourceStatus struct + Commit string + Errs status.MultiError + LastUpdate metav1.Time + Spec SourceSpec + func (gs *SourceStatus) DeepCopy() *SourceStatus + func (gs *SourceStatus) Equals(other *SourceStatus) bool + type SyncErrorCache struct + func NewSyncErrorCache(conflictHandler conflict.Handler, fightHandler fight.Handler) *SyncErrorCache + func (s *SyncErrorCache) AddApplyError(err status.Error) + func (s *SyncErrorCache) ConflictHandler() conflict.Handler + func (s *SyncErrorCache) Errors() status.MultiError + func (s *SyncErrorCache) FightHandler() fight.Handler + func (s *SyncErrorCache) ResetApplyErrors() + func (s *SyncErrorCache) SetValidationErrs(errs status.MultiError) + func (s *SyncErrorCache) SetWatchErrs(errs status.MultiError) + type SyncStatus struct + Commit string + Errs status.MultiError + LastUpdate metav1.Time + Spec SourceSpec + Syncing bool + func (ss *SyncStatus) DeepCopy() *SyncStatus + func (ss *SyncStatus) Equals(other *SyncStatus) bool + type SyncStatusClient interface + GetReconcilerStatus func(ctx context.Context) (*ReconcilerStatus, status.Error) + SetImageToSyncAnnotation func(ctx context.Context, commit string) status.Error + SetRenderingStatus func(ctx context.Context, oldStatus, newStatus *RenderingStatus) status.Error + SetRequiresRenderingAnnotation func(ctx context.Context, renderingRequired bool) status.Error + SetSourceStatus func(ctx context.Context, newStatus *SourceStatus) status.Error + SetSyncStatus func(ctx context.Context, newStatus *SyncStatus) status.Error + type Updater struct + Applier applier.Applier + Remediator remediator.Interface + Resources *declared.Resources + Scope declared.Scope + SyncErrorCache *SyncErrorCache + func (u *Updater) HasManagementConflict() bool + func (u *Updater) ManagementConflicts() []status.ManagementConflictError + func (u *Updater) Remediating() bool + func (u *Updater) Update(ctx context.Context, cache *cacheForCommit) status.MultiError v1.23.0-rc.1 Oct 27, 2025