Component
core/compute/function
A generic event-driven compute primitive. Its operational type is `function` — event-driven compute that scales to zero — and it adds a required `runtime` value to the shared base schema's optional `display_name` and `description` knobs. An Aggregate whose work is event-triggered and idles at no capacity declares this rather than `server`, which expects inbound application traffic, or `task`, which runs once and ends. Declaring no `provides`, it publishes nothing across an edge. On Kubernetes it is realized two ways, chosen in the Manifest: as a Knative Service, or as a Deployment paired with a KEDA scaling resource; either control plane is a prerequisite the operator affirms in the Release, and the build halts while it is unaffirmed. Where the target is an AWS account, terraform/function-lambda and cloudformation/function-lambda run it as an AWS Lambda function from a container image in Amazon ECR, and emit no trigger and no URL: what invokes it is the operator's. Nothing renders until the Release sets `infra.image`. The image is the Release's own code, so an edge delivers what its `inject:` block dictates, and no declared socket narrows the mechanism: `env` entries become variables beside `FUNCTION_RUNTIME`, `runtime`'s default name, which the component's own `env` entries may replace and, while it is the default, no edge may dictate; `file` entries read-only files on Kubernetes only; and `arg` or any other mechanism is refused by name, as no realization renders a command line. A `core/secret-value` attachment's value is rendered in the clear; no realization delivers `core/referenced-secret` or `core/random-password` to it, and the two helm realizations refuse either by name.
来源
- 内容摘要
- sha256:f213d8a7c94a54aea28b7cbb39bfbe193bbce0cd92d917b2dfe76e2b7490bf1f
- 发布时间
- 2026-11-10T10:10:08Z
- 签名身份
- https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main
签名
- 官方application/vnd.dev.sigstore.bundle.v0.3+json
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main
sha256:a90266cb64063dbddda57b7aa49abfc3e0c13c7bc94ebcd420f5c198eb7243c6
此版本的引用
oci://hub.aggrega.ai/component/core/compute/function:1.0.0开发者参数
开发者在 Aggregate 中设置的值。
扩展 BaseComponents#/schemas/BaseComponentParameter
| 名称 | 类型 | 默认值 | 必需 | 描述 |
|---|---|---|---|---|
| runtime | string | — | 是 | — |
运维规格
运维人员按环境调整的基础设施规格。
| 名称 | 类型 | 默认值 | 必需 | 描述 |
|---|---|---|---|---|
| image | string | — | 否 | Container image serving the function. On AWS Lambda it is an image in Amazon ECR, in the function's Region, that implements Lambda's runtime API. |
| port | integer (min 1024, max 65535) | 8080 | 否 | Port the function's container listens on. Read on Kubernetes only: Lambda hands each invocation to the image through its runtime API rather than over a port. |
| compute | object | — | 否 | — |
| min_replicas | integer (min 0) | 0 | 否 | Replica floor. Zero is what lets the function occupy no compute between the events that invoke it. On Lambda a floor above zero is provisioned concurrency on the function's published version. |
| max_replicas | integer (min 1) | 5 | 否 | Replica ceiling the realization's autoscaler may reach. On Lambda it is the function's reserved concurrency. |
| control_plane_present | boolean | false | 否 | Operator affirmation that the control plane the chosen realization needs is installed in the target cluster. The build halts unless this is set true, so a custom resource is never emitted as an orphan into a cluster that cannot reconcile it. Read on Kubernetes only: Lambda needs no control plane of the operator's. |
| scaler | object | — | 否 | — |
| overrides | object (open) | — | 否 | Realization-specific overrides. Accepts any nested structure. Each Recipe documents which keys it reads: the AWS Lambda realizations read the function's execution role and the log group, time limit and VPC placement it runs with, each under its target's own spelling (lambda_role on terraform, Role on CloudFormation). |
输出契约
此组件通过 uses 拓扑向使用方发布的值。
未声明输出值。
uses 套接字
此组件用于建立连接的依赖套接字。通过某个套接字接入的每个连接,其目标都必须满足该套接字的标签选择器,且每个连接都可以在该套接字声明的槽位中携带附加项。必需槽位须由 Aggregate 或 Release 通过该套接字接入的每个连接来填充。
未声明 uses 套接字。
附加槽位
Feature 附加到此组件时所用的命名绑定点。槽位的选择器限定哪个 Feature 可以填充该槽位,其 inject 列表则指明 Feature 的内容可以如何交付。必需槽位必须在每个实例上完成绑定,可以通过实例上的附加,也可以通过其上层作用域的附加;敏感槽位则声明为用于处理机密内容。Feature 也可以以任何槽位都未声明的名称进行附加。
未声明附加槽位。
自注入允许列表
env
关系
与其他已发布实体之间的类型化边。没有已发布目标的引用会呈现为断开的边,而不是链接。
使用
- $ref扩展模式(values)
BaseComponents#/schemas/BaseComponentParameter
被使用
适用于
实现
实现
实现
实现