Skip to Content
Workloads

App

Install an App from its template, read its status and its parts, change a value, roll back, run its hooks, and delete it.

This page lists the spec and status fields of App and AppRevision, each with its type, its limits and its description. The Platform page explains the concept, and the metadata of every kind is the same.

App

apiVersion: funcd.io/v1alpha1
kind: App
metadata:
  name: guestbook
  namespace: default
  resourceGroup: rg1
spec:
  version: 1.0.0
  kv:
    - name: guestbook-entries
      tables:
        - name: entries
          owner:
            kind: Function
            name: guestbook-api
  functions:
    - name: guestbook-api
      runtime: nodejs22
      handler: handle
      image: registry.example.com/guestbook-api:1.0.0
      bindings:
        kv:
          - alias: entries
            store: guestbook-entries
            table: entries
  routes:
    - name: guestbook-api
      rules:
        - path: /guestbook
          backend:
            function: guestbook-api
apiVersionkind
funcd.io/v1alpha1App

App.spec

FieldType and limitsDescription
addonsarray of App.spec.addons[]The objects of add-ons' kinds that the App declares or refers to; no two entries name the same one, whatever their kinds, since one name is one add-on object per namespace. An entry's kind is an Addon's, its config fits that Addon's schema, and each Secret it binds is one that the App's secrets declare. Its deletion is the object's own: what becomes of its engine's storage once it is deleted.
backupSchedulesarray of App.spec.backupSchedules[]The BackupSchedules that the App declares or refers to; no two entries name the same one. An entry with an empty scope backs up this App: each object that its kv, buckets, sql and lakes entries name, and its Functions' local volumes.
bucketsarray of App.spec.buckets[]The Buckets that the App declares or refers to; no two entries name the same one. A Bucket that an earlier App of this name kept is not this App's: refer to it with a ref entry, since declaring it by name stops the rollout with ChildNotOwned.
configMapsarray of App.spec.configMaps[]The ConfigMaps that the App defines or refers to, written before every other part; no two entries name the same one. A change to a defined entry's data writes a new ConfigMap, changes each part that names it to the new one, and prunes the old one with the other dropped parts.
eventSourcesarray of App.spec.eventSources[]The EventSources that the App declares or refers to; no two entries name the same one.
functionsarray of App.spec.functions[]The Functions that the App declares or refers to; no two entries name the same one. An entry leaves kv, buckets, sql, lakes, configMaps and secrets empty, and each store, Lake, ConfigMap and Secret it binds is one that the App's lists of those names declare. A workflows step that sets function.image is written as a Function named <workflow>-<step>, a name no entry may declare.
hooksobject, App.spec.hooksFunctions of this App that funcd calls for each new revision whose spec has them: preApply before the revision's parts change, postApply once it is current. Each call is recorded in the revision's status.hooks; a call that ends during a stop of funcd, a hold or a pause is not recorded and is made again, so a hook must be safe to repeat.
jobsarray of App.spec.jobs[]The Jobs that the App declares or refers to; no two entries name the same one. An entry leaves kv, buckets, sql, lakes, configMaps and secrets empty, and each store, Lake, ConfigMap and Secret it binds is one that the App's lists of those names declare. A Job part is Ready when its Job is, and its runs count for nothing in the App's readiness: an upgrade waits for no run, and a run that has not ended keeps the revision it pinned. Deleting the App, or dropping the entry, deletes the Job, which ends its runs that have not ended as deleting a Job does.
kvarray of App.spec.kv[]The KVStores that the App declares or refers to; no two entries name the same one. A store that an earlier App of this name kept is not this App's: refer to it with a ref entry, since declaring it by name stops the rollout with ChildNotOwned.
lakesarray of App.spec.lakes[]The Lakes that the App declares or refers to; no two entries name the same one. An entry leaves buckets, configMaps and secrets empty; each Bucket and Secret it binds is declared in the App's buckets and secrets.
pausedbooleanWhile true, funcd only sets the App's Paused condition: it creates no revision, writes or deletes no part and calls no hook. Changing it creates no revision, and a rollout in progress gets a full app.upgradeTimeout again on resume. An apply without it resumes the App; funcdctl app deploy and app rollback keep it as it is.
requiresarray of App.spec.requires[]The Apps of this namespace that this App needs. A new revision waits, with no time limit and no part written, until each one exists, is Ready with its spec rolled out and has a spec.version in the range. An App this one requires cannot be deleted, nor updated from inside the range to outside it once this App has started a rollout, and a requirement cycle is refused.
routesarray of App.spec.routes[]The Routes that the App declares or refers to; no two entries name the same one, and none declares a Route under the name of a Site that sites declares, since each Site writes a Route of its own name.
secretsarray of App.spec.secrets[]The Secrets that the App's parts read and the keys they read, never their values; no two entries name the same one. An apply whose parts name an undeclared Secret is refused, and while a declared Secret or key is missing, funcd writes no part and reports SecretNotFound or SecretKeyMissing. A Secret that one of the App's Jobs owns may lack a key without that stop: each part that names it, other than that Job and the preApply hook Functions, is Lagging with SecretKeyMissing and is not written until the Job writes the key.
sensorsarray of App.spec.sensors[]The Sensors that the App declares or refers to; no two entries name the same one.
sitesarray of App.spec.sites[]The Sites that the App declares or refers to; no two entries name the same one. An entry leaves buckets empty: the Site refers to the Bucket it serves, which the App's buckets declare or which exists already. Each declared Site writes a Route of its own name, which no routes entry may declare.
sqlarray of App.spec.sql[]The SQLDatabases that the App declares or refers to; no two entries name the same one. A database that an earlier App of this name kept is not this App's: refer to it with a ref entry, since declaring it by name stops the rollout with ChildNotOwned.
versionstringA free label for this version of the App, shown by funcdctl app history and passed to the hooks; funcdctl app deploy sets it to the template's version. A range in another App's spec.requires matches it only when it is a SemVer 2.0.0 version, such as 1.4.0 with no v prefix.
workflowsarray of App.spec.workflows[]The Workflows that the App declares or refers to; no two entries name the same one. An entry leaves kv, buckets, sql, lakes, configMaps and secrets empty, and each store, Lake, ConfigMap and Secret its steps bind is one that the App's lists of those names declare. A step that sets function.image is written as a Function named <workflow>-<step>, a name that no functions entry or other step may take.

App.spec.addons[]

FieldType and limitsDescription
bindingsobject, App.spec.addons[].bindingsWhat the object's engine uses, and what the Functions that funcd creates for the object from its kinds' images use. An object of a settings kind takes none, nor does one of an engineless kind whose Function is a ref.
configany JSON valueThe object's settings, which its kind's schema checks: the config schema of its Addon's kind entry when the object runs an engine, else the contract of the kind's Function. Unset is an empty object.
deletionstring, one of retain, deleteWhat becomes of the engine's storage once the object is deleted and its engine is gone: retain, the default, moves it into the quarantine for storage.quarantineRetention, from which it comes back by hand with funcd stopped; delete removes it. A new object of the same name starts empty either way. For an object of an Engineless kind, delete holds the object at its deletion, with metadata.deletionTimestamp set, until its Function answers ok to a call that carried it as deleting; retain lets it go at once, and the Function forgets it.
functionsarray of App.spec.addons[].functions[]The object's own Function for a settings kind of its Addon, or for its own kind when that kind is Engineless, in place of the kind's function, so each copy of an App template applies its own objects. The objects it applies have no schema. A settings object names none.
ingressobject, App.spec.addons[].ingressExposes the engine at the edge, on ingress.host under its Addon's basePath, while the object is Ready. Its own ingress.auth alone decides the stance, open when unset; ingress.path and the authenticated mode are refused. An object of a settings or an engineless kind takes none.
kindstringThe add-on's kind: one that an Addon registers, as the Addon writes it. A ref entry leaves it unset.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.
resourcesobject, App.spec.addons[].resourcesThe cpu and memory of the object's engine. An empty cpu or memory sets no limit, and a change replaces the running engine. An object of a settings or an engineless kind takes none.

App.spec.addons[].bindings

FieldType and limitsDescription
jobarray of App.spec.addons[].bindings.job[]The Jobs whose runs the Function that funcd creates for an engineless object starts and reads, by their alias. Only an object of an engineless kind whose function is an image takes them.
secretarray of string values, each a DNS-1123 labelSecrets of the namespace whose keys, those that its Addon's kind entry lists in secretKeys, reach the engine's environment. funcd asks Cedar, as the object, for secret::read on each: a missing Secret holds the object in Pending with SecretNotFound, and a forbidden one with BindingResolveFailed. A changed value replaces the engine. The Functions that funcd creates for the object read every key of them.

App.spec.addons[].bindings.job[]

FieldType and limitsDescription
aliasstring, required, a DNS-1123 labelThe name that the code passes to ctx.job.start and ctx.job.get. Unique in the list.
jobstring, required, a DNS-1123 labelA Job of the Function's namespace. While the Job is missing, a start on its alias answers 404, and a read still answers each run that a deleted Job left, until job.retention removes it.

App.spec.addons[].functions[]

FieldType and limitsDescription
kindstring, requiredA settings kind of the object's Addon, named once.
refstring, required, a DNS-1123 labelA Function of the object's namespace that binds the object in its bindings.addon, which funcd calls with the object's settings objects of the kind. In an App, a Function the App declares.

App.spec.addons[].ingress

FieldType and limitsDescription
authobject, App.spec.addons[].ingress.authHow the edge checks callers at the resource's own address; unset, the namespace's spec.edgeDefaults.auth decides, else open. A Lake refuses it, since the Lake gateway checks each caller.
enabledbooleanTurns the resource's own address on or off. Unset, it is on unless the namespace's spec.defaultExposure is explicit; a Lake's address is on only when this is true.
hoststringThe exact host of the resource's own address. Empty is the namespace's host, <namespace>.<server.baseDomain>, or, in the default namespace, any host that no other namespace reserves.
pathstringThe edge path of the resource's own address, which begins with / and does not end with / unless it is /. Empty is / when host is set, else /function/<name>, /site/<name> or /lake/<name> by kind.

App.spec.addons[].ingress.auth

FieldType and limitsDescription
modestring, one of "", authenticated, open, oidcHow the edge checks callers. authenticated requires a bearer token, or an X-Api-Key header, of an identity that RBAC lets get Functions in the namespace: 401 without a valid one, 403 when it may not; while server.auth.edge is off, every caller gets 401. open lets anonymous callers in. oidc signs callers in with the OIDCProvider that provider names, and passes the signed-in user to the code behind it in the X-Funcd-Principal headers. Empty takes the enclosing stance, if any, else the namespace's spec.edgeDefaults.auth.mode, else open.
providerstring, a DNS-1123 labelWith mode oidc, the OIDCProvider of the namespace that signs callers in; required with oidc and refused with another mode.
unauthenticatedstring, one of "", redirect, 401, allowWith mode oidc, what a call that is not signed in gets: redirect, the default, sends a GET or HEAD navigation to the provider with 302 and gives any other call 401; 401 gives every such call 401; allow passes every call, with no principal. Refused with another mode.

App.spec.addons[].resources

FieldType and limitsDescription
cpustringThe CPU cap of the worker or engine it sizes, as a number of cores of at least 0.01, such as 0.5 or 2. Empty takes the default of the resource that declares it, or no cap when there is none. Only the containerd runtime enforces it.
memorystringThe memory cap of the worker or engine it sizes, such as 256Mi or 4GiB: 1 to 15 digits and an optional binary unit, Ki, Mi, Gi or Ti, with or without a B, above zero. Empty takes the default of the resource that declares it, or no cap when there is none. Only the containerd runtime enforces it, and there a worker that uses more memory than the cap is killed.

App.spec.backupSchedules[]

FieldType and limitsDescription
encryptionobject, App.spec.backupSchedules[].encryptionThe age recipients that seal the member files of each Backup. It is required: a schedule with fewer than 2 recipients is refused.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
pausedbooleanWhile true, the schedule creates no Backup and rpoRisk stays false; a Backup created by hand still runs. Once it is false again, the slots missed meanwhile collapse into one Backup.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.
schedulestringThe cron slots at which the schedule creates a Backup: 5 fields (minute hour day-of-month month day-of-week) or a macro such as @daily, in timeZone. Slots missed during downtime, a pause or a hold collapse into one Backup, and a slot that comes while one of the schedule's Backups is Pending or Running creates none.
scopeobject, App.spec.backupSchedules[].scopeThe stores each Backup copies, in one form: the lists kvStores, buckets, lakes, databases, volumes and addons, or app, or resourceGroup. funcd resolves it at each run: a member or App it names that is missing then fails the Backup with reason MemberNotFound, and a scope of more than workloadBackup.maxCopyMembers members fails it with no copy written. In an App's spec.backupSchedules entry, an empty scope backs up that App.
targetobject, App.spec.backupSchedules[].targetWhere each Backup writes its copy: an S3 bucket and the Secret of its write key.
timeZonestringThe IANA time zone of schedule, such as Europe/Paris; UTC when empty.
ttlstring, a duration: whole numbers with the units h, m, s and ms, largest unit first (10m, 1h30m, 500ms)How long funcd keeps each Backup's record after its creation; 0s or unset means 720h. Only the record goes: the copy stays on the target until the target's own lifecycle rule expires it. A Backup may set a shorter spec.ttl, never a longer one.

App.spec.backupSchedules[].encryption

FieldType and limitsDescription
recipientsarray of string values, requiredThe age recipients, each entry one recipient: at least 2 distinct ones, such as an owner's and a recovery one, all X25519 or all hybrid (age1pq1). Every member file of each Backup is sealed to all of them, so the identity of any one opens it. The copy's manifest.yaml, which names the members, their files' sizes and these recipients' fingerprints, is not sealed.

App.spec.backupSchedules[].scope

FieldType and limitsDescription
addonsarray of string values, each a DNS-1123 labelAdd-on objects of the namespace to copy, by name, whatever their kind, each once: each copy is the newest snapshot that the object's engine wrote under its Addon's snapshot.path, copied as it is. An object whose Addon declares no snapshot, or whose engine has written none yet, fails the Backup with reason NoSnapshot.
appstring, a DNS-1123 labelAn App of the namespace: each Backup copies the stores of its kv, buckets, lakes and sql entries, ref entries included, and the local volumes of the Functions it declares. Set it alone, with no other scope field.
bucketsarray of string values, each a DNS-1123 labelBuckets of the namespace to copy, by name, each once. A Bucket's copy holds none of the data of the Lakes located on its prefixes: each of them is copied as a member of its own.
databasesarray of string values, each a DNS-1123 labelSQLDatabases of the namespace to copy, by name, each once. A database whose engine is not Ready fails the Backup with reason EngineNotReady.
kvStoresarray of string values, each a DNS-1123 labelKVStores of the namespace to copy, by name, each once.
lakesarray of string values, each a DNS-1123 labelLakes of the namespace to copy, by name, each once. A Lake located on a prefix of a listed Bucket is copied without being named here. A Lake that deletes files during each of a run's copies, as a busy one may, fails the Backup with reason LakeUnstable, and so does a Bucket that brings it in.
resourceGroupstring, a DNS-1123 labelA resource group of the namespace: each Backup copies its KVStores, Buckets, Lakes and SQLDatabases, and its add-on objects whose Addon declares a snapshot, but not its Functions' local volumes. Set it alone, with no other scope field.
volumesarray of string valuesLocal volumes of the namespace's Functions to copy, each as <function>/<name>, both DNS-1123 labels, and listed once. A volume is read live, file by file, so its copy is not a single point in time.

App.spec.backupSchedules[].target

FieldType and limitsDescription
credentialsSecretstring, required, a DNS-1123 labelA Secret of the namespace with AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and, optionally, AWS_SESSION_TOKEN: the key each Backup writes with. It needs only put and list on the bucket.
urlstring, requiredThe s3:// URL of the bucket that receives the copies, its options as query parameters, such as s3://backups?region=eu-west-3. The bucket of blob.target is refused, and another bucket on its endpoint is accepted with reason SameProvider on the schedule's Ready condition: one failure of that provider takes both. The bucket must accept a create-if-absent put (If-None-Match: *): a bucket that refuses it fails each Backup with reason TargetUnconditional.

App.spec.buckets[]

FieldType and limitsDescription
deletionstring, one of retain, deleteretain (the default) keeps the store and its data when the resource that declares it is deleted, and delete removes them. An App applies the same choice when it drops the entry.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
prefixesarray of App.spec.buckets[].prefixes[]The Bucket's prefixes, each a key space with its own owner and cap. Prefix names are unique within the Bucket. A Function or a Lake that binds a prefix the Bucket does not list waits, with the reason BucketNotFound.
quotaobject, App.spec.buckets[].quotaCaps on the Bucket's total size and on each object. While the Bucket has a size cap, funcd refuses to sign a presigned PUT URL for it, with 403.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.

App.spec.buckets[].prefixes[]

FieldType and limitsDescription
namestring, required, a DNS-1123 labelThe prefix's name, unique within the Bucket. Over S3, it is the first segment of each object's key.
ownerobject, App.spec.buckets[].prefixes[].ownerThe one Function, Lake or Job that may write the prefix, named with its kind, besides the writers that a RolesAssignment names. In a Bucket that a Function, a Lake or a Job declares by name, an omitted owner is that workload. In a Workflow's buckets, a Function owner names a step and a Lake owner a lake that the Workflow declares. The prefix that a Site serves its bundle from must have no owner, since the Site writes its builds there; the prefixes of a Site's ingress rules may have one.
quotaobject, App.spec.buckets[].prefixes[].quotaA cap on the prefix's total size: a write into the prefix must fit both this cap and the Bucket's, and while it is set funcd refuses to sign a presigned PUT URL into the prefix, with 403. It also caps a Lake's files under the prefix, though not the Lake's catalog.

App.spec.buckets[].prefixes[].owner

FieldType and limitsDescription
kindstring, required, one of Function, Lake, JobThe workload's kind. A Function, a Lake and a Job may share a name, so the kind says which one it is; each field names the kinds it accepts.
namestring, required, a DNS-1123 labelThe workload's name, in the object's namespace.

App.spec.buckets[].prefixes[].quota

FieldType and limitsDescription
maxBytesinteger, at least 0The same cap as a number of bytes. Set maxSize or maxBytes, not both.
maxSizestring, a size: 1 to 15 digits and an optional binary unit, Ki, Mi, Gi or Ti, with or without a B (512Ki, 2GiB)The cap on the total size held, above zero. Set maxSize or maxBytes, not both; neither means no cap. A write that would pass the cap gets 507 in a KV store or a Bucket; a SQL execute call gets 507 once the database holds the cap.

App.spec.buckets[].quota

FieldType and limitsDescription
maxBytesinteger, at least 0The same cap as a number of bytes. Set maxSize or maxBytes, not both.
maxObjectBytesinteger, at least 0The largest object a write may store, in bytes. A larger write gets 413, or EntityTooLarge over S3, and while it is set funcd refuses to sign a presigned PUT URL for the Bucket, with 403. 0 sets no cap of the Bucket's own, so only funcd's upload limits apply, such as s3gateway.maxUploadBytes.
maxSizestring, a size: 1 to 15 digits and an optional binary unit, Ki, Mi, Gi or Ti, with or without a B (512Ki, 2GiB)The cap on the total size held, above zero. Set maxSize or maxBytes, not both; neither means no cap. A write that would pass the cap gets 507 in a KV store or a Bucket; a SQL execute call gets 507 once the database holds the cap.

App.spec.configMaps[]

FieldType and limitsDescription
datamap of string to stringKeys and their string values, for settings that are not secret. Each key is an environment variable name: ASCII letters, digits and _, not starting with a digit. Each value must be UTF-8 text with no NUL byte: a Function or a Lake that binds a ConfigMap holding another value does not start. Each worker of a Function that lists the ConfigMap in bindings.config gets each key as an environment variable when it starts, except a key that starts with FUNCD_ or that a bound Secret also holds; and while the S3 gateway is on, a Function that binds a Bucket gets the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY that funcd issues it, in place of the ConfigMap's. A Lake that lists it gives its engine only the keys that the Lake's bindings.config lets through.
namestring, a DNS-1123 labelThe ConfigMap's name, at most 52 characters. It is stored as <name>-<hash of data>, and the config of each part that names it is set to that stored name.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.

App.spec.eventSources[]

FieldType and limitsDescription
blobobject, App.spec.eventSources[].blobEvents that fire on new and rewritten objects of a Bucket in this namespace, which funcd lists every eventing.blobPollInterval. A firing's data has the fields bucket, key, size, version and time, the object's modification time. Exactly one of timer, blob and sql.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.
sqlobject, App.spec.eventSources[].sqlEvents that fire on row changes in a SQLDatabase of this namespace. A firing's data has the fields op, table, rowId and index, and before, after and commitTimestamp when the change carries them; when before and after together pass 256 KiB, both are dropped and truncated is true. Exactly one of timer, blob and sql.
timerobject, App.spec.eventSources[].timerEvents that fire on a schedule, each on its own interval or cron expression; a firing's data is an empty object. Exactly one of timer, blob and sql.

App.spec.eventSources[].blob

FieldType and limitsDescription
bucketstring, required, a DNS-1123 labelThe Bucket, in this namespace, whose objects fire the events. Until it exists, the source is not Ready, with reason BucketNotFound, and watches nothing.
eventsarray of App.spec.eventSources[].blob.events[], requiredThe source's events: at least one, with unique names, each watching the objects under its prefix.

App.spec.eventSources[].blob.events[]

FieldType and limitsDescription
namestring, required, a DNS-1123 labelThe event's name, unique among the source's events: the type of each CloudEvent it fires, and the event a Sensor dependency names.
onarray of string valuesThe object changes that fire the event. Created, the only one, fires for each new object and again when an object is rewritten with another size or modification time; empty means Created.
prefixstringThe key prefix the event watches: only objects whose key starts with it fire, and empty means the whole Bucket. When the source is created or this prefix changes, the objects already under it fire too, to the Sensors subscribed then: an object that no Sensor got counts as seen.

App.spec.eventSources[].sql

FieldType and limitsDescription
databasestring, required, a DNS-1123 labelThe SQLDatabase, in this namespace, whose row changes fire the events. Until it exists, the source is not Ready, with reason DatabaseNotFound.
eventsarray of App.spec.eventSources[].sql.events[], requiredThe source's events: at least one, with unique names, each watching one table.

App.spec.eventSources[].sql.events[]

FieldType and limitsDescription
namestring, required, a DNS-1123 labelThe event's name, unique among the source's events: the type of each CloudEvent it fires, and the event a Sensor dependency names.
onarray of string valuesThe row changes that fire the event: Insert, Update or Delete. Empty means all three.
tablestring, requiredThe table whose row changes fire the event, matched by its exact name, case included.

App.spec.eventSources[].timer

FieldType and limitsDescription
eventsarray of App.spec.eventSources[].timer.events[], requiredThe timer's events: at least one, with unique names, each firing on its own schedule.

App.spec.eventSources[].timer.events[]

FieldType and limitsDescription
cronstringA cron expression: 5 fields (minute hour day-of-month month day-of-week) or a macro such as @daily. Exactly one of interval and cron.
intervalstring, a duration: whole numbers with the units h, m, s and ms, largest unit first (10m, 1h30m, 500ms)The tick period: 100ms to 24h. Exactly one of interval and cron.
namestring, required, a DNS-1123 labelThe event's name, unique among the source's events: the type of each CloudEvent it fires, and the event a Sensor dependency names.
timeZonestringThe IANA time zone of cron, such as Europe/Paris; UTC when empty. Only with cron.

App.spec.functions[]

FieldType and limitsDescription
bindingsobject, App.spec.functions[].bindingsWhat the code may use: KV tables, Bucket prefixes, SQL databases, Lakes and other Functions, each under an alias, and ConfigMaps and Secrets. A binding is the grant: a call on an alias with no binding is refused with 403. Each store, Lake, ConfigMap and Secret it names must be declared at the root, in this spec's kv, buckets, sql, lakes, configMaps or secrets, or in the App's for an App's part.
bucketsarray of App.spec.functions[].buckets[]The Buckets the Function declares: by name it creates and owns one, and a Bucket of that name that it does not own holds it in Pending with StoreNotOwned; by ref it uses an existing one. spec.bindings.blob binds only a declared Bucket, and a prefix with no owner gets the Function as its owner. An App's part declares none and binds those that the App declares.
configMapsarray of App.spec.functions[].configMaps[]The ConfigMaps the Function declares: by name it defines one from its data, which goes with the Function, by ref it uses an existing one. spec.bindings.config binds only a declared ConfigMap, and a defined one that the spec no longer defines is deleted once the Function is Ready again and nothing else names it. An App's part declares none.
handlerstring, matching ^[A-Za-z_][A-Za-z0-9_.]*$The name of the export that the shim calls in the code, such as handle. A Function without one, or whose code has no such export, fails with ShapeInvalid.
imagestringThe OCI reference of the code's artifact: a registry reference with a tag or a digest, or an oci-layout:// reference to a layout on the server's disk. A Function whose image is missing, or cannot be resolved or pulled, starts no worker.
imageDigeststring, a sha256 digestThe sha256 digest that funcd pulls the image by and checks it against. Unset, funcd resolves the image to its digest when it creates the Revision of a new spec and keeps that digest, so a tag that moves later changes nothing.
ingressobject, App.spec.addons[].ingressThe Function's own address at the edge. With no host and no path, it answers by name at /function/<name>; a host or a path gives it a Route of its own in place of that address, which its IngressReady condition reports. Its path may not be /function or under it.
kvarray of App.spec.functions[].kv[]The KVStores the Function declares: by name it creates and owns one, and a store of that name that it does not own holds it in Pending with StoreNotOwned; by ref it uses an existing one. spec.bindings.kv binds only a declared store. An App's part declares none and binds those that the App declares.
lakesarray of App.spec.functions[].lakes[]The Lakes the Function declares: by name it creates one that goes with the Function, by ref it uses an existing one. spec.bindings.lake binds only a declared Lake, and a Lake declared by name declares nothing at its own root: it binds the Function's buckets, configMaps and secrets. An App's part declares none.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
poolingobject, App.spec.functions[].poolingWhether the Function shares a worker with other Functions; unset, it runs in workers of its own.
protocolstring, one of "", cloudevent, httpHow funcd calls the code. cloudevent, the default, passes each call to the handler as a CloudEvent. http passes each edge request to the handler, an http(app) export: only the edge and another Function's ctx.fetch over a link reach it, and it needs a node runtime and no pooling.worker.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.
replicasinteger, 0 to 15How many workers run while the Function is awake: at least 1 once a call wakes it, and at least scaling.minReplicas. Every call goes to the lowest listening replica, and the others are spares. With minReplicas 0, replicas above 0 also starts workers before the first call, but not after a sleep. A local volume allows at most 1.
resourcesobject, App.spec.addons[].resourcesThe CPU and memory caps of each of the Function's workers; a field left empty takes functions.defaultResources. Only the containerd runtime enforces them, and they cannot be set with pooling.worker.
runtimestring, a DNS-1123 labelThe runtime that runs the code, such as nodejs22 or python314, or one that an Addon ships for Functions. A Function without one fails with ShapeInvalid, and one whose runtime this node cannot run fails with RuntimeUnavailable.
scalingobject, App.spec.functions[].scalingScale to zero: with minReplicas 0, the default, and an idleTimeout, a Function with no traffic goes Idle and its workers stop until the next call wakes it.
secretsarray of App.spec.functions[].secrets[]The Secrets of the namespace that the bindings may name, each with the keys the code reads; spec.bindings.secret names only a declared Secret. The Function waits in Pending, with SecretNotFound or SecretKeyMissing, until each one exists with every declared key. An App's part declares none and binds those that the App declares.
sqlarray of App.spec.functions[].sql[]The SQLDatabases the Function declares: by name it creates and owns one, and a database of that name that it does not own holds it in Pending with StoreNotOwned; by ref it uses an existing one. spec.bindings.sql binds only a declared database, and a database with no owner gets the Function as its owner. An App's part declares none and binds those that the App declares.
timeoutstring, a duration: whole numbers with the units h, m, s and ms, largest unit first (10m, 1h30m, 500ms)Bounds an external invoke until its response starts: 0s to 1h; 0s or unset means invoke.defaultTimeout.
volumesarray of App.spec.functions[].volumes[]The directories the Function's workers mount. Apply refuses a Function with one unless runtime.mode is containerd and volumes.capacity or volumes.capacityBytes is set. A Function with a volume runs solo, even with pooling.worker.

App.spec.functions[].bindings

FieldType and limitsDescription
addonarray of App.spec.functions[].bindings.addon[]The add-on objects whose engines the code calls, each under its alias: through ctx.addon.fetch, or with any HTTP client at FUNCD_ADDON_<ALIAS>_URL with the header X-Funcd-Addon-Token set to FUNCD_ADDON_<ALIAS>_TOKEN. Each call goes through funcd, which asks Cedar for addon::call and serves only the paths that the object's edge entry serves.
blobarray of App.spec.functions[].bindings.blob[]The Bucket prefixes the code reaches through ctx.blob, and over S3 while the S3 gateway is on, each under its alias. The binding grants reads; only the prefix's owner and the writers that a RolesAssignment names may write. A Bucket or prefix that does not exist yet holds the Function in Pending with BucketNotFound.
configarray of string values, each a DNS-1123 labelConfigMaps whose keys each worker gets as environment variables when it starts, a later ConfigMap's value winning for a key that both hold. A key that starts with FUNCD_, or that a bound Secret holds, is left out; and while the S3 gateway is on, a Function that binds a Bucket gets the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY that funcd issues it, in place of a ConfigMap's. A missing ConfigMap holds the Function Failed with ConfigResolveFailed.
jobarray of App.spec.addons[].bindings.job[]The Jobs whose runs the code starts with ctx.job.start and reads with ctx.job.get, each under its alias. The binding grants both, and a namespace Policy that forbids job::start or job::read to the Function revokes one. A run that the code starts passes the checks of a run that a person starts, and a Job's own spec refuses this list.
kvarray of App.spec.functions[].bindings.kv[]The KV tables the code reaches through ctx.kv, each under its alias. The binding grants reads; only the table's owner and the writers that a RolesAssignment names may write. A store or table that does not exist yet holds the Function in Pending with KVStoreNotFound.
lakearray of App.spec.functions[].bindings.lake[]The Lakes the code queries, each under its alias. The Function waits in Pending with LakeNotReady until every bound Lake is Ready.
linksarray of App.spec.functions[].bindings.links[]The Functions the code calls, each under its alias: through ctx.invoke one whose protocol is cloudevent, through ctx.fetch one whose protocol is http. Each target must exist in the namespace when this Function is applied, the namespace's links form no cycle, and a Function that a link targets cannot be deleted until the link goes.
secretarray of string values, each a DNS-1123 labelSecrets whose keys the code reads through ctx.secret, on each read and with no cache, a later Secret's value winning for a key that both hold. No value reaches the worker's environment. No worker starts while a bound Secret is missing, and a worker whose Function a Policy forbids to read one is not ready.
sqlarray of App.spec.functions[].bindings.sql[]The SQLDatabases the code queries through ctx.sql, each under its alias. The binding grants reads; only the database's owner and the writers that a RolesAssignment names may write. A database that does not exist yet holds the Function in Pending with SQLDatabaseNotFound.

App.spec.functions[].bindings.addon[]

FieldType and limitsDescription
aliasstring, required, a DNS-1123 labelThe name the handler calls the object by: ctx.addon.fetch takes it, and the worker gets FUNCD_ADDON_<ALIAS>_URL and FUNCD_ADDON_<ALIAS>_TOKEN for an HTTP SDK. Unique in the list.
objectstring, required, a DNS-1123 labelAn add-on object of the Function's namespace, declared by its App when an App holds the Function. A missing one holds the Function in Pending with AddonObjectNotFound.

App.spec.functions[].bindings.blob[]

FieldType and limitsDescription
aliasstring, required, a DNS-1123 labelThe binding's name, unique in the list; code that reaches the prefix through ctx.blob passes it.
bucketstring, required, a DNS-1123 labelThe Bucket, in the same namespace, that holds the prefix.
prefixstring, required, a DNS-1123 labelThe prefix, by its name in the Bucket's prefixes.

App.spec.functions[].bindings.kv[]

FieldType and limitsDescription
aliasstring, required, a DNS-1123 labelThe binding's name, unique in the list, which the code passes to ctx.kv.
storestring, required, a DNS-1123 labelThe KVStore, in the same namespace, that holds the table.
tablestring, required, a DNS-1123 labelThe table, by its name in the store's tables.

App.spec.functions[].bindings.lake[]

FieldType and limitsDescription
aliasstring, required, a DNS-1123 labelThe binding's name, unique in the list. Each worker reads the Lake's address and its token from FUNCD_LAKE_<ALIAS>_URL and FUNCD_LAKE_<ALIAS>_TOKEN, the alias upper-cased.
lakestring, required, a DNS-1123 labelThe Lake to query, in the same namespace.
FieldType and limitsDescription
aliasstring, required, a DNS-1123 labelThe link's name, unique in the list, which the code passes to ctx.invoke or ctx.fetch.
targetstring, required, a DNS-1123 labelThe Function to call, in the same namespace.
timeoutstring, a duration: whole numbers with the units h, m, s and ms, largest unit first (10m, 1h30m, 500ms)Bounds the synchronous call, a cold-start wake included: 0s to 5m; 0s or unset means the 30s link default.

App.spec.functions[].bindings.sql[]

FieldType and limitsDescription
aliasstring, required, a DNS-1123 labelThe binding's name, unique in the list, which the code passes to ctx.sql.
databasestring, required, a DNS-1123 labelThe SQLDatabase to query, in the same namespace.

App.spec.functions[].buckets[]

FieldType and limitsDescription
deletionstring, one of retain, deleteretain (the default) keeps the store and its data when the resource that declares it is deleted, and delete removes them. An App applies the same choice when it drops the entry.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
prefixesarray of App.spec.buckets[].prefixes[]The Bucket's prefixes, each a key space with its own owner and cap. Prefix names are unique within the Bucket. A Function or a Lake that binds a prefix the Bucket does not list waits, with the reason BucketNotFound.
quotaobject, App.spec.buckets[].quotaCaps on the Bucket's total size and on each object. While the Bucket has a size cap, funcd refuses to sign a presigned PUT URL for it, with 403.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.

App.spec.functions[].configMaps[]

FieldType and limitsDescription
datamap of string to stringKeys and their string values, for settings that are not secret. Each key is an environment variable name: ASCII letters, digits and _, not starting with a digit. Each value must be UTF-8 text with no NUL byte: a Function or a Lake that binds a ConfigMap holding another value does not start. Each worker of a Function that lists the ConfigMap in bindings.config gets each key as an environment variable when it starts, except a key that starts with FUNCD_ or that a bound Secret also holds; and while the S3 gateway is on, a Function that binds a Bucket gets the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY that funcd issues it, in place of the ConfigMap's. A Lake that lists it gives its engine only the keys that the Lake's bindings.config lets through.
namestring, a DNS-1123 labelThe ConfigMap's name, at most 52 characters. It is stored as <name>-<hash of data>, and the config of each part that names it is set to that stored name.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.

App.spec.functions[].kv[]

FieldType and limitsDescription
deletionstring, one of retain, deleteretain (the default) keeps the store and its data when the resource that declares it is deleted, and delete removes them. An App applies the same choice when it drops the entry.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
quotaobject, App.spec.functions[].kv[].quotaCaps on the store's total size, on each value and on each key.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.
tablesarray of App.spec.functions[].kv[].tables[]The store's tables. A table is a key space that only its owner and the writers that a RolesAssignment names may write. Table names are unique within the store, and a store with no table has nothing a Function can write.

App.spec.functions[].kv[].quota

FieldType and limitsDescription
maxBytesinteger, at least 0The same cap as a number of bytes. Set maxSize or maxBytes, not both.
maxKeyBytesinteger, 0 to 64000The longest key, in bytes. 0 means 1024 (1 KiB).
maxSizestring, a size: 1 to 15 digits and an optional binary unit, Ki, Mi, Gi or Ti, with or without a B (512Ki, 2GiB)The cap on the total size held, above zero. Set maxSize or maxBytes, not both; neither means no cap. A write that would pass the cap gets 507 in a KV store or a Bucket; a SQL execute call gets 507 once the database holds the cap.
maxValueBytesinteger, 0 to 1048576The largest value a write may store, in bytes. 0 means 1048576 (1 MiB).

App.spec.functions[].kv[].tables[]

FieldType and limitsDescription
namestring, required, a DNS-1123 labelThe table's name, unique within the store.
ownerobject, App.spec.buckets[].prefixes[].ownerThe Function or Job that owns the table, in the store's namespace, named with its kind. The owner writes the table, and so does a principal that a RolesAssignment grants kv::write on the table, its store or its namespace, such as the KV Data Writer role. In a store that a Function or a Job declares, the owner defaults to that workload; in one that a Workflow declares, a Function owner names a step, and the Function that funcd creates for that step is the owner; in a KVStore applied on its own, a table with no owner is written only through such a grant. Every workload, the owner included, reaches the table through an entry of its spec.bindings.kv.

App.spec.functions[].lakes[]

FieldType and limitsDescription
bindingsobject, App.spec.functions[].lakes[].bindingsWhat the Lake's engine uses: Bucket prefixes, and the ConfigMaps and Secrets of its environment.
bucketsarray of App.spec.functions[].lakes[].buckets[]The Buckets that a Lake applied on its own declares: by name the Lake creates the Bucket, an omitted prefix owner being the Lake, and a Bucket of that name that is not the Lake's holds it in Pending with StoreNotOwned; by ref it binds an existing one. Each Bucket that the Lake's bindings.blob names must be declared here. A lake that another resource declares sets none.
configMapsarray of App.spec.functions[].lakes[].configMaps[]The ConfigMaps that a Lake applied on its own declares: by name the Lake defines one, and a ConfigMap of its stored name that is not the Lake's holds it in Pending with StoreNotOwned; by ref it binds an existing one. Each ConfigMap that the Lake's bindings.config names must be declared here. A lake that another resource declares sets none.
ingressobject, App.spec.addons[].ingressExposes the Lake gateway at the edge, only when enabled is true and while the Lake is Ready. The path defaults to /lake/<name>, or / with a host. Setting auth is refused, since the Lake gateway checks each caller itself.
locationobject, App.spec.functions[].lakes[].locationThe Bucket prefix that holds the Lake's files, one of the Lake's bindings.blob. The Lake waits in Pending, with the reason PrefixNotOwned, until the prefix's owner is this Lake. The Lake's catalog is kept outside the Bucket, under the same location, so a Lake located where another was finds that Lake's files and catalog.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.
resourcesobject, App.spec.addons[].resourcesThe cpu and memory of the Lake's engine. An empty cpu or memory sets no limit on it, and a change replaces the running engine.
secretsarray of App.spec.functions[].lakes[].secrets[]The Secrets that a Lake applied on its own declares, with the keys its engine reads. Each Secret that the Lake's bindings.secret names must be declared here, and the Lake waits in Pending, with SecretNotFound or SecretKeyMissing, while one is missing or lacks a key. A lake that another resource declares sets none.

App.spec.functions[].lakes[].bindings

FieldType and limitsDescription
blobarray of App.spec.functions[].bindings.blob[], requiredThe Bucket prefixes the engine may read, each under an alias. It writes only a prefix whose owner is this Lake, and the Lake's location must be one of them.
configarray of string values, each a DNS-1123 labelConfigMaps whose data the engine gets as environment variables. Only QUACK_TOKEN and the DUCKDB_ keys pass, DUCKDB_EXTENSION_DIRECTORY excepted, and a bound Secret's value wins over a ConfigMap's for the same key. A missing ConfigMap holds the Lake in Pending, with the reason BindingResolveFailed.
secretarray of string values, each a DNS-1123 labelSecrets whose data the engine gets as environment variables, such as its QUACK_TOKEN; the same keys pass as for config. funcd asks Cedar, as the Lake, for secret::read on each: a forbidden Secret holds the Lake in Pending, with the reason BindingResolveFailed, as does a missing one in a lake that another resource declares. A changed value replaces the engine.

App.spec.functions[].lakes[].buckets[]

FieldType and limitsDescription
deletionstring, one of retain, deleteretain (the default) keeps the store and its data when the resource that declares it is deleted, and delete removes them. An App applies the same choice when it drops the entry.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
prefixesarray of App.spec.buckets[].prefixes[]The Bucket's prefixes, each a key space with its own owner and cap. Prefix names are unique within the Bucket. A Function or a Lake that binds a prefix the Bucket does not list waits, with the reason BucketNotFound.
quotaobject, App.spec.buckets[].quotaCaps on the Bucket's total size and on each object. While the Bucket has a size cap, funcd refuses to sign a presigned PUT URL for it, with 403.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.

App.spec.functions[].lakes[].configMaps[]

FieldType and limitsDescription
datamap of string to stringKeys and their string values, for settings that are not secret. Each key is an environment variable name: ASCII letters, digits and _, not starting with a digit. Each value must be UTF-8 text with no NUL byte: a Function or a Lake that binds a ConfigMap holding another value does not start. Each worker of a Function that lists the ConfigMap in bindings.config gets each key as an environment variable when it starts, except a key that starts with FUNCD_ or that a bound Secret also holds; and while the S3 gateway is on, a Function that binds a Bucket gets the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY that funcd issues it, in place of the ConfigMap's. A Lake that lists it gives its engine only the keys that the Lake's bindings.config lets through.
namestring, a DNS-1123 labelThe ConfigMap's name, at most 52 characters. It is stored as <name>-<hash of data>, and the config of each part that names it is set to that stored name.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.

App.spec.functions[].lakes[].location

FieldType and limitsDescription
bucketstring, required, a DNS-1123 labelA Bucket of the same namespace.
prefixstring, required, a DNS-1123 labelA prefix of that Bucket.

App.spec.functions[].lakes[].secrets[]

FieldType and limitsDescription
descriptionstringWhat the Secret is for, for the installer who provides it.
keysarray of string values, required, each matching ^[A-Za-z_][A-Za-z0-9_]*$The keys read from the Secret: its data must hold each of them.
namestring, required, a DNS-1123 labelThe name of a Secret in the namespace of the resource that declares it. funcd holds its value; the resource never writes it.

App.spec.functions[].pooling

FieldType and limitsDescription
workerstringA worker id, a DNS-1123 label: Functions of the namespace that name it, run the same runtime, are in the same resource group and have the same bindings, owned data and grants share one worker, which status.pool names. Empty, the default, runs the Function solo. Only the process runtime pools, for node runtimes and, when the server's Python is 3.14 or later, python ones; anywhere else the Function runs solo too. A pool takes the first 16 Functions by name, and the others wait in Pending with PoolFull.

App.spec.functions[].scaling

FieldType and limitsDescription
idleTimeoutstring, a duration: whole numbers with the units h, m, s and ms, largest unit first (10m, 1h30m, 500ms)The idle time before a worker is reclaimed: 0s to 24h; 0s or unset disables reclaim.
maxReplicasinteger, 0 to 15Above 0, the most that minReplicas may be; 0, the default, sets no bound. It starts no worker: replicas and minReplicas alone decide how many run.
minReplicasinteger, 0 to 15The fewest workers the Function keeps. 0, the default, lets idleTimeout scale it to zero; above 0, it never sleeps. It may not exceed maxReplicas when that is above 0, and a local volume allows at most 1.

App.spec.functions[].secrets[]

FieldType and limitsDescription
descriptionstringWhat the Secret is for, for the installer who provides it.
keysarray of string values, required, each matching ^[A-Za-z_][A-Za-z0-9_]*$The keys read from the Secret: its data must hold each of them.
namestring, required, a DNS-1123 labelThe name of a Secret in the namespace of the resource that declares it. funcd holds its value; the resource never writes it.

App.spec.functions[].sql[]

FieldType and limitsDescription
deletionstring, one of retain, deleteretain (the default) keeps the store and its data when the resource that declares it is deleted, and delete removes them. An App applies the same choice when it drops the entry.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
ownerobject, App.spec.buckets[].prefixes[].ownerThe one Function, Lake or Job that may write the database, in its namespace, named with its kind, besides the writers that a RolesAssignment names. In a database that a Function or a Job declares by name, it defaults to that workload, and in a Workflow's sql a Function owner names a step and a Lake owner a lake that the Workflow declares. A Lake writes no SQL, so a database a Lake owns is written by those writers only. With no owner, only those writers can write it.
quotaobject, App.spec.buckets[].prefixes[].quotaA cap on the database's total size, the bytes of its pages in use. Once it is reached, an execute gets 507 unless each of its statements is a DELETE or a DROP. A change keeps the engine running.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.
resourcesobject, App.spec.addons[].resourcesThe cpu and memory of the database's engine. An empty memory means 256Mi, and an empty cpu sets no cpu limit. A change replaces the running engine.

App.spec.functions[].volumes[]

FieldType and limitsDescription
deletionstring, one of retain, deleteOnly for a local volume declared by name: retain, the default, keeps the volume and its files with no owner when the Function drops it or is deleted, so that a ref can take it again; delete removes them.
namestring, a DNS-1123 labelThe volume's name, unique in the list; set name or ref, not both. The code reads the directory's path from FUNCD_VOLUME_<NAME>, the name or ref upper-cased.
refstring, a DNS-1123 labelInstead of name: a retained local volume that this Function, or an earlier Function of the same name, dropped with retain, and that the Function takes over; with no such volume, it waits in Pending with VolumeNotFound. Only a local volume takes a ref; it sets no deletion and states the retained volume's own size, since apply refuses another size.
sizestring, a size: 1 to 15 digits and an optional binary unit, Ki, Mi, Gi or Ti, with or without a B (512Ki, 2GiB)The volume's size, the most its directory may hold, above zero; set size or sizeBytes, not both. Apply refuses a local volume whose size changes, or that does not fit both the capacity that volumes.capacity or volumes.capacityBytes sets and the namespace's spec.volumeBudget.
sizeBytesinteger, at least 1The same size as a number of bytes. Set size or sizeBytes, not both.
typestring, required, one of emptyDir, localemptyDir is a new empty directory for each worker, removed with it; local is one durable directory that keeps its files through a crash, a redeploy and a scale to zero. A Function with a local volume runs at most 1 replica, and while it redeploys, its old and new workers hold the volume at once.

App.spec.hooks

FieldType and limitsDescription
postApplyarray of App.spec.hooks.postApply[]Called in order, one at a time, once the revision is current, with no deadline. A failed call makes the App Degraded with HookFailed and holds the later post-hooks until funcdctl app retry calls it again; dropped parts are deleted only once every post-hook has succeeded.
preApplyarray of App.spec.hooks.postApply[]Called in order, one at a time, before the revision's other parts change: until all have succeeded, funcd writes only the pre-hook Functions and what they bind. A failed call fails the revision with HookFailed, and funcdctl app retry calls it again; a pre-hook whose Function or SQL database is not ready when app.upgradeTimeout runs out fails it too. A pre-hook may not link to a functions entry that is neither a ref entry nor a pre-hook, which is written after them.

App.spec.hooks.postApply[]

FieldType and limitsDescription
functionstring, required, a DNS-1123 labelThe name of a functions entry of this App, not a ref entry, at most once per list. funcd calls it with a CloudEvent whose type is the list's name and whose data is the revision's spec.hookInput. The call fails on an answer of 400 or more, on a Function with protocol http, or when no answer starts within the Function's spec.timeout, else invoke.defaultTimeout, its wake included.

App.spec.jobs[]

FieldType and limitsDescription
approvalobject, App.spec.jobs[].approvalWhether a run waits for a person's approval of its preview before it runs. Unset, every run previews and waits.
bindingsobject, App.spec.functions[].bindingsWhat the code may use: KV tables, Bucket prefixes, SQL databases, Lakes and Functions, each under an alias, and ConfigMaps and Secrets. A binding is the grant: a call on an alias with no binding is refused with 403. Each store, Lake, ConfigMap and Secret it names must be declared at the root, in this spec's kv, buckets, sql, lakes, configMaps or secrets.
bucketsarray of App.spec.jobs[].buckets[]The Buckets the Job declares: by name it creates and owns one, and a Bucket of that name that it does not own holds it in Pending with StoreNotOwned; by ref it uses an existing one. spec.bindings.blob binds only a declared Bucket.
concurrencyinteger, 1 to 15How many of the Job's runs may hold a worker at once, those Previewing included: 1 to 15; unset means 1, and a local volume allows only 1. A run past it waits in Pending with Queued.
configMapsarray of App.spec.jobs[].configMaps[]The ConfigMaps the Job declares: by name it defines one from its data, which goes with the Job, by ref it uses an existing one. spec.bindings.config binds only a declared ConfigMap.
handlerstring, matching ^[A-Za-z_][A-Za-z0-9_.]*$The name of the export that the shim calls once for each run, such as handle. A Job without one, or whose code has no such export, is not Ready, with ShapeInvalid.
imagestringThe OCI reference of the code's artifact: a registry reference with a tag or a digest, or an oci-layout:// reference to a layout on the server's disk. A Job whose image is missing, or cannot be resolved or pulled, starts no run.
imageDigeststring, a sha256 digestThe sha256 digest that funcd pulls the image by and checks it against. Unset, funcd resolves the image to its digest when it creates the Revision of a new spec and keeps that digest, so a tag that moves later changes nothing.
kvarray of App.spec.jobs[].kv[]The KVStores the Job declares: by name it creates and owns one, and a store of that name that it does not own holds it in Pending with StoreNotOwned; by ref it uses an existing one. spec.bindings.kv binds only a declared store.
lakesarray of App.spec.jobs[].lakes[]The Lakes the Job declares: by name it creates one that goes with the Job, by ref it uses an existing one. spec.bindings.lake binds only a declared Lake, and a Lake declared by name declares nothing at its own root: it binds the Job's buckets, configMaps and secrets.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.
resourcesobject, App.spec.addons[].resourcesThe CPU and memory caps of each run's worker; a field left empty takes functions.defaultResources. Only the containerd runtime enforces them.
runtimestring, a DNS-1123 labelThe runtime that runs the code, such as nodejs22 or python314, or one that an Addon ships for Jobs. A Job without one is not Ready, with ShapeInvalid, and one whose runtime this node cannot run is not Ready, with RuntimeUnavailable.
secretsarray of App.spec.jobs[].secrets[]The Secrets of the namespace that the bindings may name, each with the keys the code reads; spec.bindings.secret names only a declared Secret. The Job waits in Pending, with SecretNotFound or SecretKeyMissing, until each one exists with every declared key.
sqlarray of App.spec.jobs[].sql[]The SQLDatabases the Job declares: by name it creates and owns one, and a database of that name that it does not own holds it in Pending with StoreNotOwned; by ref it uses an existing one. spec.bindings.sql binds only a declared database.
timeoutstring, a duration: whole numbers with the units h, m, s and ms, largest unit first (10m, 1h30m, 500ms)The bound on each call of a run's handler, its preview's and its apply's, from its worker's start: 0s to 168h; 0s or unset means none. A run past it ends Failed with RunTimedOut, and its worker stops.
volumesarray of App.spec.functions[].volumes[]The directories each run's worker mounts. Apply refuses a Job with one unless runtime.mode is containerd and volumes.capacity or volumes.capacityBytes is set. A local volume is the Job's own, never a same-named Function's, and allows a concurrency of at most 1.

App.spec.jobs[].approval

FieldType and limitsDescription
bypassbooleanWhen true, a run runs at once, with no preview and no approval. Unset or false, a run first calls the code's preview, then waits in AwaitingApproval until a person approves or rejects it. A Job for unattended work sets it.
expirystring, a duration: whole numbers with the units h, m, s and ms, largest unit first (10m, 1h30m, 500ms)How long a preview stays valid for its approval: 1m to 168h; unset means 24h. A preview older than this when it is approved, or when its run's slot frees after the approval, is previewed again: the run runs when the new preview is the same document, and waits for a new approval when it differs.

App.spec.jobs[].buckets[]

FieldType and limitsDescription
deletionstring, one of retain, deleteretain (the default) keeps the store and its data when the resource that declares it is deleted, and delete removes them. An App applies the same choice when it drops the entry.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
prefixesarray of App.spec.buckets[].prefixes[]The Bucket's prefixes, each a key space with its own owner and cap. Prefix names are unique within the Bucket. A Function or a Lake that binds a prefix the Bucket does not list waits, with the reason BucketNotFound.
quotaobject, App.spec.buckets[].quotaCaps on the Bucket's total size and on each object. While the Bucket has a size cap, funcd refuses to sign a presigned PUT URL for it, with 403.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.

App.spec.jobs[].configMaps[]

FieldType and limitsDescription
datamap of string to stringKeys and their string values, for settings that are not secret. Each key is an environment variable name: ASCII letters, digits and _, not starting with a digit. Each value must be UTF-8 text with no NUL byte: a Function or a Lake that binds a ConfigMap holding another value does not start. Each worker of a Function that lists the ConfigMap in bindings.config gets each key as an environment variable when it starts, except a key that starts with FUNCD_ or that a bound Secret also holds; and while the S3 gateway is on, a Function that binds a Bucket gets the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY that funcd issues it, in place of the ConfigMap's. A Lake that lists it gives its engine only the keys that the Lake's bindings.config lets through.
namestring, a DNS-1123 labelThe ConfigMap's name, at most 52 characters. It is stored as <name>-<hash of data>, and the config of each part that names it is set to that stored name.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.

App.spec.jobs[].kv[]

FieldType and limitsDescription
deletionstring, one of retain, deleteretain (the default) keeps the store and its data when the resource that declares it is deleted, and delete removes them. An App applies the same choice when it drops the entry.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
quotaobject, App.spec.functions[].kv[].quotaCaps on the store's total size, on each value and on each key.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.
tablesarray of App.spec.functions[].kv[].tables[]The store's tables. A table is a key space that only its owner and the writers that a RolesAssignment names may write. Table names are unique within the store, and a store with no table has nothing a Function can write.

App.spec.jobs[].lakes[]

FieldType and limitsDescription
bindingsobject, App.spec.functions[].lakes[].bindingsWhat the Lake's engine uses: Bucket prefixes, and the ConfigMaps and Secrets of its environment.
bucketsarray of App.spec.jobs[].lakes[].buckets[]The Buckets that a Lake applied on its own declares: by name the Lake creates the Bucket, an omitted prefix owner being the Lake, and a Bucket of that name that is not the Lake's holds it in Pending with StoreNotOwned; by ref it binds an existing one. Each Bucket that the Lake's bindings.blob names must be declared here. A lake that another resource declares sets none.
configMapsarray of App.spec.jobs[].lakes[].configMaps[]The ConfigMaps that a Lake applied on its own declares: by name the Lake defines one, and a ConfigMap of its stored name that is not the Lake's holds it in Pending with StoreNotOwned; by ref it binds an existing one. Each ConfigMap that the Lake's bindings.config names must be declared here. A lake that another resource declares sets none.
ingressobject, App.spec.addons[].ingressExposes the Lake gateway at the edge, only when enabled is true and while the Lake is Ready. The path defaults to /lake/<name>, or / with a host. Setting auth is refused, since the Lake gateway checks each caller itself.
locationobject, App.spec.functions[].lakes[].locationThe Bucket prefix that holds the Lake's files, one of the Lake's bindings.blob. The Lake waits in Pending, with the reason PrefixNotOwned, until the prefix's owner is this Lake. The Lake's catalog is kept outside the Bucket, under the same location, so a Lake located where another was finds that Lake's files and catalog.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.
resourcesobject, App.spec.addons[].resourcesThe cpu and memory of the Lake's engine. An empty cpu or memory sets no limit on it, and a change replaces the running engine.
secretsarray of App.spec.jobs[].lakes[].secrets[]The Secrets that a Lake applied on its own declares, with the keys its engine reads. Each Secret that the Lake's bindings.secret names must be declared here, and the Lake waits in Pending, with SecretNotFound or SecretKeyMissing, while one is missing or lacks a key. A lake that another resource declares sets none.

App.spec.jobs[].lakes[].buckets[]

FieldType and limitsDescription
deletionstring, one of retain, deleteretain (the default) keeps the store and its data when the resource that declares it is deleted, and delete removes them. An App applies the same choice when it drops the entry.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
prefixesarray of App.spec.buckets[].prefixes[]The Bucket's prefixes, each a key space with its own owner and cap. Prefix names are unique within the Bucket. A Function or a Lake that binds a prefix the Bucket does not list waits, with the reason BucketNotFound.
quotaobject, App.spec.buckets[].quotaCaps on the Bucket's total size and on each object. While the Bucket has a size cap, funcd refuses to sign a presigned PUT URL for it, with 403.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.

App.spec.jobs[].lakes[].configMaps[]

FieldType and limitsDescription
datamap of string to stringKeys and their string values, for settings that are not secret. Each key is an environment variable name: ASCII letters, digits and _, not starting with a digit. Each value must be UTF-8 text with no NUL byte: a Function or a Lake that binds a ConfigMap holding another value does not start. Each worker of a Function that lists the ConfigMap in bindings.config gets each key as an environment variable when it starts, except a key that starts with FUNCD_ or that a bound Secret also holds; and while the S3 gateway is on, a Function that binds a Bucket gets the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY that funcd issues it, in place of the ConfigMap's. A Lake that lists it gives its engine only the keys that the Lake's bindings.config lets through.
namestring, a DNS-1123 labelThe ConfigMap's name, at most 52 characters. It is stored as <name>-<hash of data>, and the config of each part that names it is set to that stored name.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.

App.spec.jobs[].lakes[].secrets[]

FieldType and limitsDescription
descriptionstringWhat the Secret is for, for the installer who provides it.
keysarray of string values, required, each matching ^[A-Za-z_][A-Za-z0-9_]*$The keys read from the Secret: its data must hold each of them.
namestring, required, a DNS-1123 labelThe name of a Secret in the namespace of the resource that declares it. funcd holds its value; the resource never writes it.

App.spec.jobs[].secrets[]

FieldType and limitsDescription
descriptionstringWhat the Secret is for, for the installer who provides it.
keysarray of string values, required, each matching ^[A-Za-z_][A-Za-z0-9_]*$The keys read from the Secret: its data must hold each of them.
namestring, required, a DNS-1123 labelThe name of a Secret in the namespace of the resource that declares it. funcd holds its value; the resource never writes it.

App.spec.jobs[].sql[]

FieldType and limitsDescription
deletionstring, one of retain, deleteretain (the default) keeps the store and its data when the resource that declares it is deleted, and delete removes them. An App applies the same choice when it drops the entry.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
ownerobject, App.spec.buckets[].prefixes[].ownerThe one Function, Lake or Job that may write the database, in its namespace, named with its kind, besides the writers that a RolesAssignment names. In a database that a Function or a Job declares by name, it defaults to that workload, and in a Workflow's sql a Function owner names a step and a Lake owner a lake that the Workflow declares. A Lake writes no SQL, so a database a Lake owns is written by those writers only. With no owner, only those writers can write it.
quotaobject, App.spec.buckets[].prefixes[].quotaA cap on the database's total size, the bytes of its pages in use. Once it is reached, an execute gets 507 unless each of its statements is a DELETE or a DROP. A change keeps the engine running.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.
resourcesobject, App.spec.addons[].resourcesThe cpu and memory of the database's engine. An empty memory means 256Mi, and an empty cpu sets no cpu limit. A change replaces the running engine.

App.spec.kv[]

FieldType and limitsDescription
deletionstring, one of retain, deleteretain (the default) keeps the store and its data when the resource that declares it is deleted, and delete removes them. An App applies the same choice when it drops the entry.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
quotaobject, App.spec.functions[].kv[].quotaCaps on the store's total size, on each value and on each key.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.
tablesarray of App.spec.functions[].kv[].tables[]The store's tables. A table is a key space that only its owner and the writers that a RolesAssignment names may write. Table names are unique within the store, and a store with no table has nothing a Function can write.

App.spec.lakes[]

FieldType and limitsDescription
bindingsobject, App.spec.functions[].lakes[].bindingsWhat the Lake's engine uses: Bucket prefixes, and the ConfigMaps and Secrets of its environment.
bucketsarray of App.spec.lakes[].buckets[]The Buckets that a Lake applied on its own declares: by name the Lake creates the Bucket, an omitted prefix owner being the Lake, and a Bucket of that name that is not the Lake's holds it in Pending with StoreNotOwned; by ref it binds an existing one. Each Bucket that the Lake's bindings.blob names must be declared here. A lake that another resource declares sets none.
configMapsarray of App.spec.lakes[].configMaps[]The ConfigMaps that a Lake applied on its own declares: by name the Lake defines one, and a ConfigMap of its stored name that is not the Lake's holds it in Pending with StoreNotOwned; by ref it binds an existing one. Each ConfigMap that the Lake's bindings.config names must be declared here. A lake that another resource declares sets none.
ingressobject, App.spec.addons[].ingressExposes the Lake gateway at the edge, only when enabled is true and while the Lake is Ready. The path defaults to /lake/<name>, or / with a host. Setting auth is refused, since the Lake gateway checks each caller itself.
locationobject, App.spec.functions[].lakes[].locationThe Bucket prefix that holds the Lake's files, one of the Lake's bindings.blob. The Lake waits in Pending, with the reason PrefixNotOwned, until the prefix's owner is this Lake. The Lake's catalog is kept outside the Bucket, under the same location, so a Lake located where another was finds that Lake's files and catalog.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.
resourcesobject, App.spec.addons[].resourcesThe cpu and memory of the Lake's engine. An empty cpu or memory sets no limit on it, and a change replaces the running engine.
secretsarray of App.spec.lakes[].secrets[]The Secrets that a Lake applied on its own declares, with the keys its engine reads. Each Secret that the Lake's bindings.secret names must be declared here, and the Lake waits in Pending, with SecretNotFound or SecretKeyMissing, while one is missing or lacks a key. A lake that another resource declares sets none.

App.spec.lakes[].buckets[]

FieldType and limitsDescription
deletionstring, one of retain, deleteretain (the default) keeps the store and its data when the resource that declares it is deleted, and delete removes them. An App applies the same choice when it drops the entry.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
prefixesarray of App.spec.buckets[].prefixes[]The Bucket's prefixes, each a key space with its own owner and cap. Prefix names are unique within the Bucket. A Function or a Lake that binds a prefix the Bucket does not list waits, with the reason BucketNotFound.
quotaobject, App.spec.buckets[].quotaCaps on the Bucket's total size and on each object. While the Bucket has a size cap, funcd refuses to sign a presigned PUT URL for it, with 403.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.

App.spec.lakes[].configMaps[]

FieldType and limitsDescription
datamap of string to stringKeys and their string values, for settings that are not secret. Each key is an environment variable name: ASCII letters, digits and _, not starting with a digit. Each value must be UTF-8 text with no NUL byte: a Function or a Lake that binds a ConfigMap holding another value does not start. Each worker of a Function that lists the ConfigMap in bindings.config gets each key as an environment variable when it starts, except a key that starts with FUNCD_ or that a bound Secret also holds; and while the S3 gateway is on, a Function that binds a Bucket gets the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY that funcd issues it, in place of the ConfigMap's. A Lake that lists it gives its engine only the keys that the Lake's bindings.config lets through.
namestring, a DNS-1123 labelThe ConfigMap's name, at most 52 characters. It is stored as <name>-<hash of data>, and the config of each part that names it is set to that stored name.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.

App.spec.lakes[].secrets[]

FieldType and limitsDescription
descriptionstringWhat the Secret is for, for the installer who provides it.
keysarray of string values, required, each matching ^[A-Za-z_][A-Za-z0-9_]*$The keys read from the Secret: its data must hold each of them.
namestring, required, a DNS-1123 labelThe name of a Secret in the namespace of the resource that declares it. funcd holds its value; the resource never writes it.

App.spec.requires[]

FieldType and limitsDescription
appstring, required, a DNS-1123 labelThe name of an App of this namespace that this App needs; no two entries name the same App. It need not exist yet: the revision waits for it.
versionstringAn npm-style version range, such as ^2.0.0, that the required App's spec.version must be in; empty accepts any version, even none. A range matches only a SemVer 2.0.0 version, and a prerelease only when the range holds one.

App.spec.routes[]

FieldType and limitsDescription
authobject, App.spec.addons[].ingress.authThe edge authentication of the rules that set none. Unset uses the Namespace's spec.edgeDefaults.auth, else open.
enabledbooleanfalse turns the Route off: it serves nothing, leaves its paths to other Routes and reports Disabled. Unset is true, except on a Route that a Site or a Function owns in a namespace whose defaultExposure is explicit.
hoststringThe host the rules answer on, matched in lower case and without a port or a trailing dot. Empty is the namespace host, <namespace>.<server.baseDomain>, or, in the default namespace, every host except another namespace's own host, <other>.<server.baseDomain> or a name under it, while that namespace uses it; a host that another namespace's Route names is not excluded, and the longer matching path wins there. In the default namespace, an explicit defaultExposure refuses an empty host (HostRequired). A host that names another namespace, <other>.<server.baseDomain> or a name under it, is refused (HostReserved) while that namespace uses it, and always for a rule at or under /function.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.
rulesarray of App.spec.routes[].rules[]The path rules, at least one; two rules may not have the same path and the same methods. Across all Routes, the longest matching path wins, and a rule with a host wins a tie. A Route serves all its rules or none: a missing backend or one conflicting rule keeps every rule off.

App.spec.routes[].rules[]

FieldType and limitsDescription
authobject, App.spec.addons[].ingress.authThe edge authentication of this rule's requests. Unset uses the Route's auth, then the Namespace's spec.edgeDefaults.auth, then open.
backendobject, App.spec.routes[].rules[].backend, requiredWhat the rule serves: set exactly one of function, static and site.
methodsarray of string values, each one of GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONSThe request methods the rule matches; empty matches every method.
pathstring, requiredThe path the rule matches, starting with /. In the default namespace, a Route with no host may not have a rule at or under /function, the path that calls Functions by name (ReservedPath).
pathTypestring, one of "", Prefix, ExactPrefix, the default, matches path and every path under it by whole segments, so /api matches /api/x but not /apix; a trailing slash changes nothing, and / matches every path. Exact matches path alone. The backend receives the rest of the path, or / for an Exact rule.

App.spec.routes[].rules[].backend

FieldType and limitsDescription
functionstring, a DNS-1123 labelA Function of the Route's namespace that the rule calls; the Route is not Ready (BackendNotFound) while it is missing. A request whose rest of the path lies under /health/ gets 404 and reaches no worker.
sitestring, a DNS-1123 labelA Site of this Route's namespace: the rule serves the build that Site serves now, and its config.json at <path>/config.json, following each new build. A Prefix rule; the Route may not carry the Site's own name.
staticobject, App.spec.routes[].rules[].backend.staticServes the objects of a Bucket prefix directly, with no Function. It answers GET and HEAD, and 405 to any other method.

App.spec.routes[].rules[].backend.static

FieldType and limitsDescription
bucketstring, required, a DNS-1123 labelA Bucket of the Route's namespace whose objects the rule serves; the Route is not Ready (BucketNotFound) while it is missing.
indexstringThe object, relative to prefix, served at the rule's root; index.html when empty. A path ending in / gets the file of the index's name in that folder. It may not start with /.
prefixstringThe key prefix in the Bucket that the rule serves, ending in /; empty serves the whole Bucket. A request reads the object at this prefix plus the rest of its path.
spabooleanServe the index, with 200, for a path that matches no object, so that a client-side router handles it; when false, such a path gets 404.

App.spec.secrets[]

FieldType and limitsDescription
descriptionstringWhat the Secret is for, for the installer who provides it.
keysarray of string values, required, each matching ^[A-Za-z_][A-Za-z0-9_]*$The keys read from the Secret: its data must hold each of them.
namestring, required, a DNS-1123 labelThe name of a Secret in the namespace of the resource that declares it. funcd holds its value; the resource never writes it.

App.spec.sensors[]

FieldType and limitsDescription
doarray of App.spec.sensors[].do[]The actions the Sensor runs: at least one, with unique names. An event runs every action whose on names its dependency; a failed action is tried eventing.deliveryAttempts times in all, then stored as a dead letter, which funcdctl eventing dlq list shows; while eventing.maxQueuedPerSensor deliveries wait, a new one becomes a dead letter with no attempt.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
onarray of App.spec.sensors[].on[]The events the Sensor subscribes to, as named dependencies: at least one, with unique names.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.

App.spec.sensors[].do[]

FieldType and limitsDescription
functionstring, a DNS-1123 labelEach event calls this Function, in the Sensor's namespace, with the CloudEvent, whose data is the action's input; funcd starts a worker first when none runs. A Function whose protocol is http is never called: the Sensor is not Ready, with reason TargetServesHTTP, and each event for this action ends as a dead letter. Exactly one of workflow and function.
inputany JSON valueWhat the action passes: the run's input, or the data of the CloudEvent the Function receives. Absent or null, it is the event's data; otherwise it is a JSON object whose top-level values are literals, or strings that are a single ${{ }} expression reading event.id, event.source, event.type, event.time or event.data. An input that is not an object, or holds an invalid expression, makes the Sensor not Ready, with reason InvalidInput, and then none of its actions runs.
namestring, required, a DNS-1123 labelThe action's name, unique among the Sensor's actions. Dead letters record it, and a WorkflowRun it starts is named after the Sensor and this name, with a random suffix.
onstring, required, a DNS-1123 labelThe name of the dependency whose events run this action, one of the Sensor's on entries.
workflowstring, a DNS-1123 labelEach event starts a WorkflowRun of this Workflow, in the Sensor's namespace and resource group, with the action's input. The action succeeds once the run is created; a run whose input breaks the Workflow's contract or passes workflow.payloadLimit fails at its start. Exactly one of workflow and function.

App.spec.sensors[].on[]

FieldType and limitsDescription
eventstring, required, a DNS-1123 labelThe name of one of that EventSource's events, which is the type of each CloudEvent the dependency receives.
namestring, required, a DNS-1123 labelThe dependency's name, unique among the Sensor's dependencies; an action's on names it.
sourcestring, required, a DNS-1123 labelThe name of an EventSource in the Sensor's namespace.

App.spec.sites[]

FieldType and limitsDescription
bindingsobject, App.spec.sites[].bindingsWhere the Site stores and serves its bundles: one Bucket prefix, in blob.
bucketsarray of App.spec.sites[].buckets[]Exactly the one Bucket that bindings.blob names, never with deletion: delete; a Site in an App sets none and refers to that Bucket by ref. By name, the Site creates the Bucket with that prefix, without an owner, and the prefixes listed here, which may not repeat it; a Bucket of that name that the Site did not create leaves the Site not Ready. By ref, the Site is Ready only once the Bucket holds that prefix without an owner, and it never changes the Bucket.
imagestringThe OCI artifact of the Site's static files, which funcdctl push --site makes, named by a tag or a digest. funcd resolves a tag to a digest when the spec changes, so a tag that moves after a deploy changes nothing until the spec changes again. Each deployed bundle stays in the Bucket, so pointing image back at an earlier one serves it again without an upload. A bundle with a _runtime entry at its root does not deploy: funcd keeps that name for the files it generates.
indexstringThe bundle's file served for /, by its file name for any other path that ends in /, and with spa for a path that matches no file. It is a path in the bundle, with no leading /; a bundle without it does not deploy, and the previous one keeps serving. Empty means site.defaultIndex, index.html by default.
ingressobject, App.spec.sites[].ingressWhere the edge serves the Site: its own address and its rules, through a Route of the Site's name that the Site writes. A Route of that name that the Site does not own leaves the Site not Ready.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.
runtimeConfigobject, App.spec.sites[].runtimeConfigValues each deployment sets without a rebuild, served as config.json beside the bundle. Every client that can load the Site can read it: never put a secret in it.
spabooleanServe the index, with status 200, for a path under the bundle's path that matches no file, so that a client-side router handles it. ingress.rules never fall back to it: a missing file there is 404.

App.spec.sites[].bindings

FieldType and limitsDescription
blobarray of App.spec.sites[].bindings.blob[], requiredExactly one entry: the Bucket and the prefix that hold the Site's bundles.

App.spec.sites[].bindings.blob[]

FieldType and limitsDescription
bucketstring, required, a DNS-1123 labelThe Bucket that holds the Site's bundles, in the Site's namespace.
prefixstring, required, a DNS-1123 labelThe prefix of that Bucket under which the Site stores each bundle, at <prefix>/sha256-<hex>/, and the config.json that runtimeConfig generates. It cannot change once the Site exists: a new prefix needs a new Site.

App.spec.sites[].buckets[]

FieldType and limitsDescription
deletionstring, one of retain, deleteretain (the default) keeps the store and its data when the resource that declares it is deleted, and delete removes them. An App applies the same choice when it drops the entry.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
prefixesarray of App.spec.buckets[].prefixes[]The Bucket's prefixes, each a key space with its own owner and cap. Prefix names are unique within the Bucket. A Function or a Lake that binds a prefix the Bucket does not list waits, with the reason BucketNotFound.
quotaobject, App.spec.buckets[].quotaCaps on the Bucket's total size and on each object. While the Bucket has a size cap, funcd refuses to sign a presigned PUT URL for it, with 403.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.

App.spec.sites[].ingress

FieldType and limitsDescription
authobject, App.spec.addons[].ingress.authHow the edge checks callers at the resource's own address; unset, the namespace's spec.edgeDefaults.auth decides, else open. A Lake refuses it, since the Lake gateway checks each caller.
baseHrefbooleanServe a copy of the bundle's index whose <base href> is the Site's mount, so a bundle built with relative URLs runs at any path, deep links included.
enabledbooleanTurns the resource's own address on or off. Unset, it is on unless the namespace's spec.defaultExposure is explicit; a Lake's address is on only when this is true.
hoststringThe exact host of the resource's own address. Empty is the namespace's host, <namespace>.<server.baseDomain>, or, in the default namespace, any host that no other namespace reserves.
pathstringThe edge path of the resource's own address, which begins with / and does not end with / unless it is /. Empty is / when host is set, else /function/<name>, /site/<name> or /lake/<name> by kind.
rulesarray of App.spec.sites[].ingress.rules[]More Bucket prefixes the Site serves, each at its own path, with the bundle's host, auth and enabled. A rule may sit below the bundle's path, since the longest matching path wins, and a missing file there is 404, never the bundle's index.

App.spec.sites[].ingress.rules[]

FieldType and limitsDescription
bucketstring, a DNS-1123 labelA Bucket of the Site's namespace, which buckets need not declare; empty means the Bucket of bindings.blob. While it does not exist, the Site's Route serves nothing, the bundle included, and the Site is not Ready.
pathstring, requiredThe path where the prefix is served, matching it and every path below it. It begins with / and may not be /, another rule's path or the bundle's path, which is ingress.path or its default. With runtimeConfig, it may not be the path of config.json either.
prefixstring, required, a DNS-1123 labelThe prefix of that Bucket served at path: <path>/<key> reads the object <prefix>/<key> as the Bucket holds it, since nothing is copied.

App.spec.sites[].runtimeConfig

FieldType and limitsDescription
configMapstring, a DNS-1123 labelA ConfigMap of the Site's namespace whose data adds keys to config.json; a key of values wins over the same key here. In an App, it may name one of the App's configMaps entries. While it does not exist, the Site is not Ready, though its bundle still deploys and its last config.json, if any, keeps serving; a change to it rewrites only the file.
valuesmap of string to stringKeys and the string values that config.json gives them; a key here wins over the same key from configMap. Each key is an environment variable name: ASCII letters, digits and _, not starting with a digit. The file holds at most 32768 bytes (32 KiB): values that alone pass it are refused, and a file that configMap takes past it leaves the Site not Ready, serving its last config.json, if any.

App.spec.sql[]

FieldType and limitsDescription
deletionstring, one of retain, deleteretain (the default) keeps the store and its data when the resource that declares it is deleted, and delete removes them. An App applies the same choice when it drops the entry.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
ownerobject, App.spec.buckets[].prefixes[].ownerThe one Function, Lake or Job that may write the database, in its namespace, named with its kind, besides the writers that a RolesAssignment names. In a database that a Function or a Job declares by name, it defaults to that workload, and in a Workflow's sql a Function owner names a step and a Lake owner a lake that the Workflow declares. A Lake writes no SQL, so a database a Lake owns is written by those writers only. With no owner, only those writers can write it.
quotaobject, App.spec.buckets[].prefixes[].quotaA cap on the database's total size, the bytes of its pages in use. Once it is reached, an execute gets 507 unless each of its statements is a DELETE or a DROP. A change keeps the engine running.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.
resourcesobject, App.spec.addons[].resourcesThe cpu and memory of the database's engine. An empty memory means 256Mi, and an empty cpu sets no cpu limit. A change replaces the running engine.

App.spec.workflows[]

FieldType and limitsDescription
bucketsarray of App.spec.workflows[].buckets[]The Buckets for the steps to bind. An entry with a name defines a bucket, each prefix owner naming a step or a declared lake; a ref entry declares an existing one. An App's spec.workflows[] entry must leave it empty: its steps bind what the App declares.
configMapsarray of App.spec.workflows[].configMaps[]The ConfigMaps for the steps to bind: an entry with a name defines one, deleted with the Workflow, and a ref entry declares an existing one. An App's spec.workflows[] entry must leave it empty: its steps bind what the App declares.
contractobject, App.spec.workflows[].contractA contract the author declares for the run input and output. funcd checks its schemas at apply, but runs are checked against the contract it derives from the steps, in status.contract, not against this one.
kvarray of App.spec.workflows[].kv[]The KV stores for the steps to bind. An entry with a name defines a store, each table owner naming a step; a ref entry declares an existing one. An App's spec.workflows[] entry must leave it empty: its steps bind what the App declares.
lakesarray of App.spec.workflows[].lakes[]The Lakes for the steps to bind: an entry with a name defines one, deleted with the Workflow, and a ref entry declares an existing one. A defined lake may not share a step's name, and its buckets, ConfigMaps and Secrets are declared at the Workflow's root. An App's spec.workflows[] entry must leave it empty: its steps bind what the App declares.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
onFailurestring, a DNS-1123 labelThe name of a function step that funcd calls once, without retry, when a run fails. Its input is an object of workflow, run, failedStep, reason and input, the run input. It is not part of the step order, so it sets no dependsOn, when or params and no step depends on it; its result never changes the run's phase, and a cancelled run does not call it.
poolingobject, App.spec.workflows[].poolingHow the image steps' Functions share workers and stay warm. A step's function.pooling replaces it for that step.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.
secretsarray of App.spec.workflows[].secrets[]The Secrets the steps bind, with the keys they read. Until each Secret exists and holds its keys, the Workflow is not Ready and no run of it starts. An App's spec.workflows[] entry must leave it empty: its steps bind what the App declares.
sqlarray of App.spec.workflows[].sql[]The SQL databases for the steps to bind. An entry with a name defines a database, its owner naming a step or a declared lake; a ref entry declares an existing one. An App's spec.workflows[] entry must leave it empty: its steps bind what the App declares.
stepsarray of App.spec.workflows[].steps[]The steps each run executes, at least one. They run in list order unless dependsOn says otherwise, and the first step takes the run input.
timeoutstring, a duration: whole numbers with the units h, m, s and ms, largest unit first (10m, 1h30m, 500ms)The wall-clock bound on a whole run, paused time excluded: 0s to 168h; 0s or unset means no bound.

App.spec.workflows[].buckets[]

FieldType and limitsDescription
deletionstring, one of retain, deleteretain (the default) keeps the store and its data when the resource that declares it is deleted, and delete removes them. An App applies the same choice when it drops the entry.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
prefixesarray of App.spec.buckets[].prefixes[]The Bucket's prefixes, each a key space with its own owner and cap. Prefix names are unique within the Bucket. A Function or a Lake that binds a prefix the Bucket does not list waits, with the reason BucketNotFound.
quotaobject, App.spec.buckets[].quotaCaps on the Bucket's total size and on each object. While the Bucket has a size cap, funcd refuses to sign a presigned PUT URL for it, with 403.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.

App.spec.workflows[].configMaps[]

FieldType and limitsDescription
datamap of string to stringKeys and their string values, for settings that are not secret. Each key is an environment variable name: ASCII letters, digits and _, not starting with a digit. Each value must be UTF-8 text with no NUL byte: a Function or a Lake that binds a ConfigMap holding another value does not start. Each worker of a Function that lists the ConfigMap in bindings.config gets each key as an environment variable when it starts, except a key that starts with FUNCD_ or that a bound Secret also holds; and while the S3 gateway is on, a Function that binds a Bucket gets the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY that funcd issues it, in place of the ConfigMap's. A Lake that lists it gives its engine only the keys that the Lake's bindings.config lets through.
namestring, a DNS-1123 labelThe ConfigMap's name, at most 52 characters. It is stored as <name>-<hash of data>, and the config of each part that names it is set to that stored name.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.

App.spec.workflows[].contract

FieldType and limitsDescription
dialectstringThe URI of the JSON Schema dialect that input and output follow. funcd checks nothing against it.
inputany JSON valueThe JSON Schema of the input. A declared one must be an object, and each property it does not require must declare a default.
outputany JSON valueThe JSON Schema of the output. A declared one must be an object, and each property it does not require must declare a default.

App.spec.workflows[].kv[]

FieldType and limitsDescription
deletionstring, one of retain, deleteretain (the default) keeps the store and its data when the resource that declares it is deleted, and delete removes them. An App applies the same choice when it drops the entry.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
quotaobject, App.spec.functions[].kv[].quotaCaps on the store's total size, on each value and on each key.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.
tablesarray of App.spec.functions[].kv[].tables[]The store's tables. A table is a key space that only its owner and the writers that a RolesAssignment names may write. Table names are unique within the store, and a store with no table has nothing a Function can write.

App.spec.workflows[].lakes[]

FieldType and limitsDescription
bindingsobject, App.spec.functions[].lakes[].bindingsWhat the Lake's engine uses: Bucket prefixes, and the ConfigMaps and Secrets of its environment.
bucketsarray of App.spec.workflows[].lakes[].buckets[]The Buckets that a Lake applied on its own declares: by name the Lake creates the Bucket, an omitted prefix owner being the Lake, and a Bucket of that name that is not the Lake's holds it in Pending with StoreNotOwned; by ref it binds an existing one. Each Bucket that the Lake's bindings.blob names must be declared here. A lake that another resource declares sets none.
configMapsarray of App.spec.workflows[].lakes[].configMaps[]The ConfigMaps that a Lake applied on its own declares: by name the Lake defines one, and a ConfigMap of its stored name that is not the Lake's holds it in Pending with StoreNotOwned; by ref it binds an existing one. Each ConfigMap that the Lake's bindings.config names must be declared here. A lake that another resource declares sets none.
ingressobject, App.spec.addons[].ingressExposes the Lake gateway at the edge, only when enabled is true and while the Lake is Ready. The path defaults to /lake/<name>, or / with a host. Setting auth is refused, since the Lake gateway checks each caller itself.
locationobject, App.spec.functions[].lakes[].locationThe Bucket prefix that holds the Lake's files, one of the Lake's bindings.blob. The Lake waits in Pending, with the reason PrefixNotOwned, until the prefix's owner is this Lake. The Lake's catalog is kept outside the Bucket, under the same location, so a Lake located where another was finds that Lake's files and catalog.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.
resourcesobject, App.spec.addons[].resourcesThe cpu and memory of the Lake's engine. An empty cpu or memory sets no limit on it, and a change replaces the running engine.
secretsarray of App.spec.workflows[].lakes[].secrets[]The Secrets that a Lake applied on its own declares, with the keys its engine reads. Each Secret that the Lake's bindings.secret names must be declared here, and the Lake waits in Pending, with SecretNotFound or SecretKeyMissing, while one is missing or lacks a key. A lake that another resource declares sets none.

App.spec.workflows[].lakes[].buckets[]

FieldType and limitsDescription
deletionstring, one of retain, deleteretain (the default) keeps the store and its data when the resource that declares it is deleted, and delete removes them. An App applies the same choice when it drops the entry.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
prefixesarray of App.spec.buckets[].prefixes[]The Bucket's prefixes, each a key space with its own owner and cap. Prefix names are unique within the Bucket. A Function or a Lake that binds a prefix the Bucket does not list waits, with the reason BucketNotFound.
quotaobject, App.spec.buckets[].quotaCaps on the Bucket's total size and on each object. While the Bucket has a size cap, funcd refuses to sign a presigned PUT URL for it, with 403.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.

App.spec.workflows[].lakes[].configMaps[]

FieldType and limitsDescription
datamap of string to stringKeys and their string values, for settings that are not secret. Each key is an environment variable name: ASCII letters, digits and _, not starting with a digit. Each value must be UTF-8 text with no NUL byte: a Function or a Lake that binds a ConfigMap holding another value does not start. Each worker of a Function that lists the ConfigMap in bindings.config gets each key as an environment variable when it starts, except a key that starts with FUNCD_ or that a bound Secret also holds; and while the S3 gateway is on, a Function that binds a Bucket gets the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY that funcd issues it, in place of the ConfigMap's. A Lake that lists it gives its engine only the keys that the Lake's bindings.config lets through.
namestring, a DNS-1123 labelThe ConfigMap's name, at most 52 characters. It is stored as <name>-<hash of data>, and the config of each part that names it is set to that stored name.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.

App.spec.workflows[].lakes[].secrets[]

FieldType and limitsDescription
descriptionstringWhat the Secret is for, for the installer who provides it.
keysarray of string values, required, each matching ^[A-Za-z_][A-Za-z0-9_]*$The keys read from the Secret: its data must hold each of them.
namestring, required, a DNS-1123 labelThe name of a Secret in the namespace of the resource that declares it. funcd holds its value; the resource never writes it.

App.spec.workflows[].pooling

FieldType and limitsDescription
minReplicasinteger, 0 to 15The workers kept warm for each image step's Function. 0, the default, scales a step's Function to zero after 5 minutes without a call, so its next call waits for a cold start.
modestring, one of shared, isolatedshared, the default, runs each image step's Function in the pool worker that worker names, shared with the steps of the same runtime that bind and own the same data; isolated gives each step's Function a worker of its own. Only the process runtime pools, for node runtimes and, with Python 3.14 or later, python ones; elsewhere shared runs each step's Function solo too.
workerstring, a DNS-1123 labelThe pool worker's name when mode is shared; empty means the Workflow's name. isolated ignores it.

App.spec.workflows[].secrets[]

FieldType and limitsDescription
descriptionstringWhat the Secret is for, for the installer who provides it.
keysarray of string values, required, each matching ^[A-Za-z_][A-Za-z0-9_]*$The keys read from the Secret: its data must hold each of them.
namestring, required, a DNS-1123 labelThe name of a Secret in the namespace of the resource that declares it. funcd holds its value; the resource never writes it.

App.spec.workflows[].sql[]

FieldType and limitsDescription
deletionstring, one of retain, deleteretain (the default) keeps the store and its data when the resource that declares it is deleted, and delete removes them. An App applies the same choice when it drops the entry.
namestring, a DNS-1123 labelThe object's name. It takes the namespace and resource group of the resource that declares it.
ownerobject, App.spec.buckets[].prefixes[].ownerThe one Function, Lake or Job that may write the database, in its namespace, named with its kind, besides the writers that a RolesAssignment names. In a database that a Function or a Job declares by name, it defaults to that workload, and in a Workflow's sql a Function owner names a step and a Lake owner a lake that the Workflow declares. A Lake writes no SQL, so a database a Lake owns is written by those writers only. With no owner, only those writers can write it.
quotaobject, App.spec.buckets[].prefixes[].quotaA cap on the database's total size, the bytes of its pages in use. Once it is reached, an execute gets 507 unless each of its statements is a DELETE or a DROP. A change keeps the engine running.
refstring, a DNS-1123 labelThe name of an existing object of this kind in the namespace of the resource that declares it. A ref entry sets no other field.
resourcesobject, App.spec.addons[].resourcesThe cpu and memory of the database's engine. An empty memory means 256Mi, and an empty cpu sets no cpu limit. A change replaces the running engine.

App.spec.workflows[].steps[]

FieldType and limitsDescription
builtinobject, App.spec.workflows[].steps[].builtinA step that funcd runs itself, with no Function: a wait or a pass. Exactly one of function, builtin and workflow.
dependsOnarray of string values, each a DNS-1123 labelThe steps this step follows; empty means the step listed before it, not counting the onFailure step. With one parent the step's input is that parent's output, with several an object of their outputs keyed by step name. Each name is another step, not the onFailure step, and the steps form no cycle.
functionobject, App.spec.workflows[].steps[].functionA step that calls a Function: one funcd creates from an image for this step, or an existing one by ref. Exactly one of function, builtin and workflow.
joinstring, one of all, anyHow the step waits on its parents: all, the default, runs it when every parent succeeded and skips it otherwise; any waits until every parent has ended, then runs it on the outputs of those that succeeded, or skips it if none did.
namestring, required, a DNS-1123 labelThe step's name, unique among the steps. dependsOn, onFailure, store owners and step.<name>.output in expressions refer to the step by it, and an image step's Function is named <workflow>-<step>.
paramsany JSON valueA JSON object merged over the step's input, its keys winning: a function step gets the result as its input, and a workflow step passes it to the child run. Its values must fit the step's input contract, and a field it sets need not come from a parent. A wait ignores it, and the onFailure step sets none.
whenobject, App.spec.workflows[].steps[].whenA condition the step runs on: when it is false, the step is Skipped, and so are the steps after it that need it to succeed. The onFailure step has none.
workflowobject, App.spec.workflows[].steps[].workflowA step that runs another Workflow as a child run: the step's input, params included, is the child's input, and the child's output is the step's output. A child that does not succeed fails the step, and a Workflow that reaches itself through such steps is never Ready. Exactly one of function, builtin and workflow.

App.spec.workflows[].steps[].builtin

FieldType and limitsDescription
passstringA ${{ }} JavaScript expression whose value is the step's output, over input, the run input, and step.<name>.output of each step it follows. It is checked only when the step runs: an error fails the step. Exactly one of wait and pass.
waitstringHow long the step waits before it succeeds with its input as its output: a duration such as 30s, checked at apply, or a ${{ }} expression that must yield one when the step runs. The wait counts toward the run's timeout, and a cancel ends it. Exactly one of wait and pass.

App.spec.workflows[].steps[].function

FieldType and limitsDescription
bindingsobject, App.spec.workflows[].steps[].function.bindingsWhat the step's code uses, copied onto an image step's Function: each store, lake, ConfigMap and Secret it names must be declared at the root of the Workflow or of its App. A ref step ignores it: the Function it names keeps its own.
imagestringThe artifact of the step's own Function, <workflow>-<step>, which funcd creates with the runtime the artifact declares and its handle export. That name must fit in 63 characters. Exactly one of image and ref.
poolingobject, App.spec.workflows[].poolingReplaces the Workflow's pooling for this step's Function, as a whole: a field it leaves unset takes its default, not the Workflow's value. A ref step ignores it.
refstring, a DNS-1123 labelThe name of an existing Function in the namespace that the step calls; funcd does not create or change it, and a run waits while it is missing. A Function whose protocol is http fails the step. Exactly one of image and ref.
retryobject, App.spec.workflows[].steps[].function.retryHow a failed call is tried again. A 5xx answer, a timeout or a transport error is retried, while a 4xx answer or an output over workflow.payloadLimit fails the step at once. Unset, the step gets workflow.defaultRetry attempts with workflow.defaultRetryBackoff; the onFailure step is called once.
timeoutstring, a duration: whole numbers with the units h, m, s and ms, largest unit first (10m, 1h30m, 500ms)The per-step invocation bound: 0s to 24h; 0s or unset means workflow.defaultStepTimeout.

App.spec.workflows[].steps[].function.bindings

FieldType and limitsDescription
blobarray of App.spec.functions[].bindings.blob[]The Bucket prefixes the step's code reaches through ctx.blob, and over S3 while the S3 gateway is on, each under its alias; each Bucket must be declared at the root, in buckets. The binding grants reads; only the prefix's owner and the writers that a RolesAssignment names may write.
configarray of string values, each a DNS-1123 labelConfigMaps whose keys each worker of the step gets as environment variables when it starts; each must be declared at the root, in configMaps. A key that starts with FUNCD_, or that a bound Secret holds, is left out.
kvarray of App.spec.functions[].bindings.kv[]The KV tables the step's code reaches through ctx.kv, each under its alias; each store must be declared at the root, in kv. The binding grants reads; only the table's owner and the writers that a RolesAssignment names may write.
lakearray of App.spec.functions[].bindings.lake[]The Lakes the step's code queries, each under its alias; each must be declared at the root, in lakes. The step's Function waits until every bound Lake is Ready.
secretarray of string values, each a DNS-1123 labelSecrets whose keys the step's code reads through ctx.secret, on each read; each must be declared at the root, in secrets. No value reaches the worker's environment.
sqlarray of App.spec.functions[].bindings.sql[]The SQLDatabases the step's code queries through ctx.sql, each under its alias; each must be declared at the root, in sql. The binding grants reads; only the database's owner and the writers that a RolesAssignment names may write.

App.spec.workflows[].steps[].function.retry

FieldType and limitsDescription
backoffstring, a duration: whole numbers with the units h, m, s and ms, largest unit first (10m, 1h30m, 500ms)The base of the exponential retry backoff: 0s to 1h; 0s or unset means workflow.defaultRetryBackoff.
maxAttemptsinteger, 1 to 100How many calls the step may make, the first included: 1 means no retry. Unset means workflow.defaultRetry. A call that a funcd restart cuts runs again, even past this count.

App.spec.workflows[].steps[].when

FieldType and limitsDescription
conditionstring, requiredA ${{ }} JavaScript expression that yields true or false, over input, the run input, and step.<name>.output of each step it follows. It is type-checked against the steps' contracts before the Workflow is Ready; one that cannot be evaluated when the step is reached fails the run.

App.spec.workflows[].steps[].workflow

FieldType and limitsDescription
refstring, a DNS-1123 labelThe child Workflow's name, in the same namespace; it must be set. A run waits while the child is missing or not Ready, then runs it as it was when the run started.

App.status

FieldType and limitsDescription
childrenarray of App.status.children[]One line per entry of configMaps, kv, buckets, sql, addons, functions, jobs, workflows, eventSources, sensors, routes, sites, lakes and backupSchedules, ref entries included, in that order, which is the order funcd writes them; an addons line names the add-on's kind. Then one Pruning line per dropped object not deleted yet.
conditionsarray of ConditionThe conditions that explain the phase.
currentRevisionstring, a DNS-1123 labelThe AppRevision whose rollout last completed, empty until one has. After a failed rollout the parts keep the newer spec, so it names the last complete rollout, not what runs.
lagEndedAtstring, an RFC3339 UTC timestamp with exactly 3 fractional digits (2026-10-07T20:03
.965Z)
When a part last stopped being Lagging while the latest revision was rolling out. The rollout's deadline counts from it too, so a part written once its wait ends has a full app.upgradeTimeout to turn Ready.
lastSelfHealobject, App.status.lastSelfHealThe last part that funcd wrote back after another writer changed or deleted it, and when.
latestRevisionstring, a DNS-1123 labelThe newest AppRevision, created for the latest spec. It differs from currentRevision while a rollout waits or runs, and after one fails.
observedGenerationintegerThe generation of the spec that funcd last acted on.
phasestring, one of Pending, Deploying, Ready, Idle, Degraded, Failed, TerminatingWhere the object is in its lifecycle.
planobject, App.status.planWhat the write would make the rollout do, set only in the answer to a dry-run write (dryRun=true) and never stored. It leaves timing out: a hold, a pause or an unmet requirement does not show.
requiredByarray of string values, each a DNS-1123 labelThe Apps of this namespace whose spec.requires names this App, sorted by name.
requiresarray of App.status.requires[]The state of each spec.requires entry, in its order.
versionstringThe spec.version of the current revision.

App.status.children[]

FieldType and limitsDescription
kindstring, requiredThe object's kind.
namestring, required, a DNS-1123 labelThe object's name: a ref entry's target, and for a defined ConfigMap its stored name.
reasonstringWhy the part is not Ready, such as RefNotFound, Progressing, ChildNotOwned, ChildInvalid, StepNotReady or the part's own reason, such as AwaitingApproval for a stack. For a part that waits for a Secret's key, SecretKeyMissing: Secret/<name> <key>. For a Pruning object, why it is kept, such as NotCurrent until the new revision is current, RunHeld while a run holds the Function, or InUse: <Kind>/<name>.
statestring, required, one of Ready, NotStarted, Pending, Lagging, PruningReady when the part exists and is ready. NotStarted for a Function that has not run since it changed, such as one scaled to zero: it does not hold up the rollout, and it makes the App's Ready condition Unknown rather than True. Pending while the part is missing or not ready. Lagging for a part that waits for what funcd does not run: an add-on part whose kind runs no engine, such as a stack, while it is not Ready at its generation, or a part that names a Secret one of the App's Jobs owns while that Secret lacks a declared key, which funcd does not write until then. Pruning for a dropped object not deleted yet. The App's Ready condition, its rollout and its deadline leave out a Lagging part and a Pruning object, while its post-hooks and prune wait for every Lagging part.

App.status.lastSelfHeal

FieldType and limitsDescription
atstring, required, an RFC3339 UTC timestamp with exactly 3 fractional digits (2026-10-07T20:03
.965Z)
When funcd wrote it back.
kindstring, requiredThe kind of the part written back.
namestring, required, a DNS-1123 labelThe name of the part written back.

App.status.plan

FieldType and limitsDescription
hooksarray of string valuesThe hook Functions the new revision would call, in call order: preApply, then postApply, a Function in both lists twice. Empty when the write would create no revision.
partsarray of App.status.plan.parts[]The parts the write would create or update, in the order of status.children, then the objects it would prune. Where the rollout would stop, it holds only the line of that stop.
revisionstring, a DNS-1123 labelThe AppRevision the write would create. Empty when the latest revision has this spec already, or when an object of another owner holds that name, which parts then shows.

App.status.plan.parts[]

FieldType and limitsDescription
actionstring, one of create, update, pruneWhat the write would do to the object. Empty on the line of a declared Secret where the rollout would stop.
kindstring, requiredThe object's kind.
namestring, required, a DNS-1123 labelThe object's name; for a defined ConfigMap, its stored name.
reasonstringSet only on the line where the rollout would stop: ChildNotOwned when an object of another owner holds the name, SecretNotFound or SecretKeyMissing for a declared Secret.

App.status.requires[]

FieldType and limitsDescription
appstring, required, a DNS-1123 labelThe required App, as its spec.requires entry names it.
metboolean, requiredWhether the required App exists, has a spec.version the range accepts, and is Ready with that spec rolled out.
versionstringThe required App's spec.version, empty when it sets none or does not exist.

AppRevision

apiVersionkind
funcd.io/v1alpha1AppRevision

AppRevision.spec

FieldType and limitsDescription
addonRevisionsarray of AppRevision.spec.addonRevisions[]The AddonRevision of each add-on kind of the App's addons parts, set when the revision was created: the Addon's current revision, or for the spec of a kept revision that was current once, that revision's records. A part runs its kind's record once this revision is applied.
appobject, AppRevision.spec.app, requiredThe App this revision belongs to.
hookInputobject, AppRevision.spec.hookInputThe data that each hook call of this revision receives, fixed when the revision was created. Set only when its spec has a hook.
numberinteger, required, 1 to 9999999999The revision's number: 1 for the App's first revision, then one more than the latest. The revision is named <app>-<number>, and funcdctl app rollback takes this number.
specobject, App.spec, requiredThe App's spec when this revision was created, without spec.paused. It never changes.

AppRevision.spec.addonRevisions[]

FieldType and limitsDescription
kindstring, requiredThe add-on's kind.
revisionstring, required, a DNS-1123 labelThe AddonRevision the App's parts of that kind run.

AppRevision.spec.app

FieldType and limitsDescription
kindstring, requiredThe kind of the object it names.
namestring, required, a DNS-1123 labelThe name of the object it names.
namespacestring, a DNS-1123 labelThe namespace of the object it names.

AppRevision.spec.hookInput

FieldType and limitsDescription
addonRevisionsarray of AppRevision.spec.hookInput.addonRevisions[]Each addons part whose AddonRevision this revision changes: the revision it runs when this one was created, and the one it runs once this one is applied. A pre-hook runs while the part runs from, a post-hook once it runs to.
appstring, required, a DNS-1123 labelThe App's name.
eventstring, required, one of install, upgrade, rollbackinstall when the App had no current revision, rollback when the spec equals that of a kept revision that was current once, upgrade otherwise.
fromstring, a DNS-1123 labelThe App's current revision when this one was created, empty on an install.
fromVersionstringThe spec.version of the from revision, empty on an install or when it sets none.
tostring, required, a DNS-1123 labelThis revision's name.
toVersionstringThis revision's spec.version, empty when it sets none.

AppRevision.spec.hookInput.addonRevisions[]

FieldType and limitsDescription
fromstring, a DNS-1123 labelThe AddonRevision the part ran when the App revision was created; empty for a part that ran none yet.
kindstring, requiredThe part's add-on kind.
objectstring, required, a DNS-1123 labelThe part's name.
tostring, required, a DNS-1123 labelThe AddonRevision the part runs once the App revision is applied.

AppRevision.status

FieldType and limitsDescription
conditionsarray of ConditionThe conditions that explain the phase.
hooksarray of AppRevision.status.hooks[]The hook calls of this revision in call order, a retried call included. A call that ends during a stop of funcd, a hold or a pause of the App is not recorded and is made again.
observedGenerationintegerThe generation of the spec that funcd last acted on.
phasestring, one of Pending, Deploying, Ready, Idle, Degraded, Failed, TerminatingWhere the object is in its lifecycle.
startedAtstring, an RFC3339 UTC timestamp with exactly 3 fractional digits (2026-10-07T20:03
.965Z)
When the rollout started: when the revision was created, or, when it waited for required Apps, once they were all met; unset while it waits. The rollout fails if it is not complete app.upgradeTimeout after the latest of this time, a resume of the App, the release of a hold, the end of the last pre-hook call and the end of a part's wait, the App's status.lagEndedAt, unless a pre-hook call is running.

AppRevision.status.hooks[]

FieldType and limitsDescription
endTimestring, required, an RFC3339 UTC timestamp with exactly 3 fractional digits (2026-10-07T20:03
.965Z)
When the call ended.
functionstring, required, a DNS-1123 labelThe hook Function that was called.
invocationstring, required, a DNS-1123 labelThe Invocation that records the call, with its start, end and error. It belongs to this revision and is deleted with it.
phasestring, required, one of Pending, Deploying, Ready, Idle, Degraded, Failed, TerminatingReady when the call succeeded and Failed when it did not; no other phase appears here.
pointstring, required, one of preApply, postApplyThe hook list the call was made for.

HTTP API

The table lists each described operation of these kinds, with its method and path. The operation's page in the API reference gives its parameters, its body, its authentication and every answer, with when it happens and what to do.

MethodPathOperation
GET/apis/funcd.io/v1alpha1/namespaces/{namespace}/appsList the Apps of a namespace
POST/apis/funcd.io/v1alpha1/namespaces/{namespace}/appsCreate an App
GET/apis/funcd.io/v1alpha1/namespaces/{namespace}/apps/{name}Read an App
PUT/apis/funcd.io/v1alpha1/namespaces/{namespace}/apps/{name}Replace an App
DELETE/apis/funcd.io/v1alpha1/namespaces/{namespace}/apps/{name}Delete an App
POST/apis/funcd.io/v1alpha1/namespaces/{namespace}/apps/{name}/retryRetry the failed hook of an App
GET/apis/funcd.io/v1alpha1/namespaces/{namespace}/apprevisionsList the AppRevisions of a namespace
GET/apis/funcd.io/v1alpha1/namespaces/{namespace}/apprevisions/{name}Read an AppRevision

On this page

AppApp.specApp.spec.addons[]App.spec.addons[].bindingsApp.spec.addons[].bindings.job[]App.spec.addons[].functions[]App.spec.addons[].ingressApp.spec.addons[].ingress.authApp.spec.addons[].resourcesApp.spec.backupSchedules[]App.spec.backupSchedules[].encryptionApp.spec.backupSchedules[].scopeApp.spec.backupSchedules[].targetApp.spec.buckets[]App.spec.buckets[].prefixes[]App.spec.buckets[].prefixes[].ownerApp.spec.buckets[].prefixes[].quotaApp.spec.buckets[].quotaApp.spec.configMaps[]App.spec.eventSources[]App.spec.eventSources[].blobApp.spec.eventSources[].blob.events[]App.spec.eventSources[].sqlApp.spec.eventSources[].sql.events[]App.spec.eventSources[].timerApp.spec.eventSources[].timer.events[]App.spec.functions[]App.spec.functions[].bindingsApp.spec.functions[].bindings.addon[]App.spec.functions[].bindings.blob[]App.spec.functions[].bindings.kv[]App.spec.functions[].bindings.lake[]App.spec.functions[].bindings.links[]App.spec.functions[].bindings.sql[]App.spec.functions[].buckets[]App.spec.functions[].configMaps[]App.spec.functions[].kv[]App.spec.functions[].kv[].quotaApp.spec.functions[].kv[].tables[]App.spec.functions[].lakes[]App.spec.functions[].lakes[].bindingsApp.spec.functions[].lakes[].buckets[]App.spec.functions[].lakes[].configMaps[]App.spec.functions[].lakes[].locationApp.spec.functions[].lakes[].secrets[]App.spec.functions[].poolingApp.spec.functions[].scalingApp.spec.functions[].secrets[]App.spec.functions[].sql[]App.spec.functions[].volumes[]App.spec.hooksApp.spec.hooks.postApply[]App.spec.jobs[]App.spec.jobs[].approvalApp.spec.jobs[].buckets[]App.spec.jobs[].configMaps[]App.spec.jobs[].kv[]App.spec.jobs[].lakes[]App.spec.jobs[].lakes[].buckets[]App.spec.jobs[].lakes[].configMaps[]App.spec.jobs[].lakes[].secrets[]App.spec.jobs[].secrets[]App.spec.jobs[].sql[]App.spec.kv[]App.spec.lakes[]App.spec.lakes[].buckets[]App.spec.lakes[].configMaps[]App.spec.lakes[].secrets[]App.spec.requires[]App.spec.routes[]App.spec.routes[].rules[]App.spec.routes[].rules[].backendApp.spec.routes[].rules[].backend.staticApp.spec.secrets[]App.spec.sensors[]App.spec.sensors[].do[]App.spec.sensors[].on[]App.spec.sites[]App.spec.sites[].bindingsApp.spec.sites[].bindings.blob[]App.spec.sites[].buckets[]App.spec.sites[].ingressApp.spec.sites[].ingress.rules[]App.spec.sites[].runtimeConfigApp.spec.sql[]App.spec.workflows[]App.spec.workflows[].buckets[]App.spec.workflows[].configMaps[]App.spec.workflows[].contractApp.spec.workflows[].kv[]App.spec.workflows[].lakes[]App.spec.workflows[].lakes[].buckets[]App.spec.workflows[].lakes[].configMaps[]App.spec.workflows[].lakes[].secrets[]App.spec.workflows[].poolingApp.spec.workflows[].secrets[]App.spec.workflows[].sql[]App.spec.workflows[].steps[]App.spec.workflows[].steps[].builtinApp.spec.workflows[].steps[].functionApp.spec.workflows[].steps[].function.bindingsApp.spec.workflows[].steps[].function.retryApp.spec.workflows[].steps[].whenApp.spec.workflows[].steps[].workflowApp.statusApp.status.children[]App.status.lastSelfHealApp.status.planApp.status.plan.parts[]App.status.requires[]AppRevisionAppRevision.specAppRevision.spec.addonRevisions[]AppRevision.spec.appAppRevision.spec.hookInputAppRevision.spec.hookInput.addonRevisions[]AppRevision.statusAppRevision.status.hooks[]HTTP API