# Functions
ConstructRevisionName will generate revisionName from componentName will be <componentName>-v<RevisionNumber>, for example: comp-v1.
ExtractComponentName will extract componentName from revisionName.
IsRevisionWorkload check is a workload is an old revision Workload which shouldn't be garbage collected.
NewReconciler returns an OAMApplicationReconciler that reconciles ApplicationConfigurations by rendering and instantiating their Components and Traits.
Setup adds a controller that reconciles ApplicationConfigurations.
SetWorkloadInstanceName will set metadata.name for workload CR according to createRevision flag in traitDefinition.
WithApplicator specifies how the Reconciler should apply workloads and traits.
WithApplyOnceOnlyMode indicates whether workloads and traits should be affected if no spec change is made in the ApplicationConfiguration.
WithDependCheckWait set depend check wait.
WithGarbageCollector specifies how the Reconciler should garbage collect workloads and traits when an ApplicationConfiguration is edited to remove them.
WithLongWaitTime set next reconcile time interval.
WithPosthook register a post-hook to the Reconciler.
WithPrehook register a pre-hook to the Reconciler.
WithRecorder specifies how the Reconciler should record events.
WithRenderer specifies how the Reconciler should render workloads and traits.
# Constants
ControllerRevisionComponentLabel indicate which component the revision belong to This label is to filter revision by client api.
# Variables
ErrDataOutputNotExist is an error indicating the DataOutput specified doesn't not exist.
# Structs
ComponentHandler will watch component change and generate Revision automatically.
GenerationUnchanged indicates the resource being applied has no generation changed comparing to the existing one.
An OAMApplicationReconciler reconciles OAM ApplicationConfigurations by rendering and instantiating their Components and Traits.
A Parameter may be used to set the supplied paths to the supplied value.
RevisionHookRequest is request body for custom component revision hook.
A Trait produced by an OAM ApplicationConfiguration.
A Workload produced by an OAM ApplicationConfiguration.
A WorkloadApplyFns creates or updates or finalizes workloads and their traits.
# Interfaces
A ComponentRenderer renders an ApplicationConfiguration's Components into workloads and traits.
A ControllerHooks provide customized reconcile logic for an ApplicationConfiguration.
A GarbageCollector returns resource eligible for garbage collection.
A ParameterResolver resolves the parameters accepted by a component and the parameter values supplied to a component into configured parameters.
A ResourceRenderer renders a Kubernetes-compliant YAML resource into an Unstructured object, optionally setting the supplied parameters.
A WorkloadApplicator creates or updates or finalizes workloads and their traits.
# Type aliases
A ComponentRenderFn renders an ApplicationConfiguration's Components into workloads and traits.
ControllerHooksFn reconciles an ApplicationConfiguration.
A GarbageCollectorFn returns resource eligible for garbage collection.
A ParameterResolveFn resolves the parameters accepted by a component and the parameter values supplied to a component into configured parameters.
A ReconcilerOption configures a Reconciler.
A ResourceRenderFn renders a Kubernetes-compliant YAML resource into an Unstructured object, optionally setting the supplied parameters.