Documentation
¶
Index ¶
Constants ¶
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
HasChanged evaluates the given action and returns true if the action type matches a resource mutation or deletion.
func MkdirTempAbs ¶
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) SetupWithManager ¶
func (r *KustomizationReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, opts KustomizationReconcilerOptions) error
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]
WatchConfigs bool
WatchConfigsPredicate predicate.Predicate
WatchExternalArtifacts bool
}
KustomizationReconcilerOptions contains options for the KustomizationReconciler.
type SourceRevisionChangePredicate ¶
func (SourceRevisionChangePredicate) Update ¶
func (SourceRevisionChangePredicate) Update(e event.UpdateEvent) bool