<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Component Handlers :: Go Kure — Launcher</title><link>https://www.gokure.dev/launcher/dev/api-reference/oam-components/index.html</link><description>Package components implements oam.ComponentHandler for the built-in component types. Each handler parses a typed config from a component’s properties and produces the corresponding Kubernetes resources via kure’s builders. Handlers are registered with the transformer in pkg/cmd/kurel (newBuiltinTransformer), each mapping a component type string to a handler implementing CanHandle + ToApplicationConfig. Every built-in component handler also implements oam.PropertySchemaProvider (PropertySchema()), declaring a constrained schema for its user-facing properties so the downstream runtime can validate them before invocation. Nested Kubernetes shapes are modeled field-by-field at full fidelity — closed objects, enums where the API has them, and the same value validation real admission applies (ADR-036 L1: one PodSpec/ Container projection shared by every kind). Only genuine escape-hatch fields (passthrough.object, manifests/crd inline content) and key→value maps whose keys are data (nodeSelector, resources.requests/limits) stay open by design; the remaining open objects (probes, lifecycle, volumes) are a known gap, not the target shape; the volumeMounts and volumeDevices items inside an initContainers/sidecars entry (go-kure/launcher#1172 closed the first), and a sidecar’s ports items (go-kure/launcher#660), are closed, and so is the four-key affinity shorthand: its schema declares the four keys and no other, and since go-kure/launcher#790 its parser refuses any other key too. The initContainers/sidecars entries themselves are closed (go-kure/launcher#321, see “Common config”). The raw corev1 affinity of the raw kinds is a different schema and is not part of that gap — it is the upstream type. (The deployment, statefulset, daemonset, job, cronjob, replicaset and pod kinds carry no hand-modeled schema: each decodes its whole spec into the upstream type, and only webservice and worker are reshaped.) helmrelease takes the other route to the same strictness: its schema declares exactly the top-level HelmReleaseSpec keys and leaves the nested Flux blocks open, and its handler decodes the whole property map strictly into HelmReleaseSpec, refusing an unknown or wrongly typed key at any depth (see its entry under “Per-type highlights”). Every property (including nested object fields and array item schemas at every depth) carries a Description, surfaced in the downstream runtime’s generated Handler API Reference.</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://www.gokure.dev/launcher/dev/api-reference/oam-components/index.xml" rel="self" type="application/rss+xml"/><item><title>Common config</title><link>https://www.gokure.dev/launcher/dev/api-reference/oam-components/common-config/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.gokure.dev/launcher/dev/api-reference/oam-components/common-config/index.html</guid><description>The issues behind the entries on this page, and the sentences that told how an entry used to behave, are on the contributor page.&#10;Common config env, command, args, initContainers, sidecars and affinity each read their property with a bare comma-ok type assertion and, when that failed, returned the zero value with no error. So a property authored with the wrong container type — a mapping where the schema wants a list, a list or scalar where it wants an object — built cleanly and emitted nothing for the property, and nothing in the output said it had been seen. Closed by routing those six through presence-reporting helpers (common.go), which report presence separately from value, so each of the six now rejects a mistyped value by name instead of discarding it. Those helpers were already how several other properties on the same components are read — resources, workingDir and topologySpread on webservice and worker (webservice.go, worker.go) — so the six behaved differently from properties an author writes beside them in the same document. This covers those six parsers; it is not a claim that every property in this package is read through the helpers.</description></item><item><title>Policy defaults, endpoints and outputs</title><link>https://www.gokure.dev/launcher/dev/api-reference/oam-components/policy-and-endpoints/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.gokure.dev/launcher/dev/api-reference/oam-components/policy-and-endpoints/index.html</guid><description>Policy defaults &amp; enforcement ordering A container’s effective cpu/memory requests and limits are assembled in three tiers, in precedence order:&#10;Authored — whatever the component’s resources property set explicitly. The string unlimited under limits.cpu or limits.memory is an authored opt-out: the container gets no limit for that resource, because neither a policy default limit (tier 2) nor, for memory, the limit mirror (tier 3) is applied to it. It is accepted where a built-in default exists to opt out of: the main container of webservice and worker, and their initContainers and sidecars entries. It is refused by name under requests, under podResources and on postgresql (“no intrinsic default to opt out of”), under any resource name other than cpu and memory, and, with the resource-maximum refusal class, when the policy sets MaxCPU()/MaxMemory() for that resource: an absent limit is no bound, so it is never read as under the maximum. null is still absence, not an opt-out. A policy sub-option to accept unlimited as a policy default is not provided. Policy default — ApplyPolicy fills any request/limit the author left unset from oam.Policy.DefaultCPURequest()/DefaultMemoryRequest()/ DefaultCPULimit()/DefaultMemoryLimit(). A negative policy default fails the build, as a negative authored quantity does, since Kubernetes would refuse it at apply; zero is accepted. The defaults reach every container of the reshaped kinds below: the main container and each initContainers and sidecars entry, by the same rules. Each default that fills a value is reported to the provenance report as a policy entry, at the path the author would have written: resources.requests.cpu for the main container, initContainers[0].resources.requests.cpu for the first init container. A request lowered to the authored limit (tier 3 below) carries the detail capped-to-limit. A default limit that lands under the container’s request fails the build, since Kubernetes refuses a request above its limit (go-kure/launcher#1582): under an authored request the error names it and asks for a limit or a lower request, with the resource-default-limit refusal class (go-kure/launcher#1580), and where the policy’s default request is above its own default limit the error names the policy and carries no class. What the postgresql defaults step fills after the policy (enablePDB, and the 1Gi storage.size fallback) is reported as a builtin entry, not as policy. So is what the parser of webservice and worker fills when the author wrote no value (an explicit null counts as no value): replicas 1, ports[i].protocol TCP (also in a sidecars entry and in a restartable initContainers entry), the accessModes ReadWriteOnce of a pvc volume that references a claim. The raw deployment, statefulset, daemonset, job and cronjob fill none of these, and their fill reports hold no policy or builtin entry. The one value a raw statefulset has filled for it is the storage class of a claim template that authors none, from the ClusterProfile’s pvc capability, which the report names as the capability’s. A webservice or worker with a non-RWX claim and no authored strategy is built with the Recreate strategy, a decision taken when the object is generated; it is reported at strategy.type from the same predicate the generator uses. A path is reported by one source only, the one whose value stands: where the policy default fills replicas, the entry is policy, and under a scaler trait there is none, since the kind is then built without a count. The list is what the library reports today, not every default these kinds apply. Intrinsic handler default — buildResourceRequirements fills anything still unset at Generate() time: 100m CPU request, 128Mi memory request, and a memory limit mirroring the (possibly just-defaulted) memory request. A defaulted request never exceeds the limit authored for the same resource: it is the lower of the default and that limit, so limits.memory: 64Mi with no request renders a 64Mi request, not 128Mi. A limit at or above the default leaves the default request in place. The same holds for a policy default request (tier 2): it is held to the authored limit for that resource, and an authored request is never changed. Two consequences are easy to miss: a policy DefaultMemoryRequest() flows into the mirrored memory limit, and the handler never defaults a CPU limit. Each value this tier fills is reported to the provenance report as a builtin entry (go-kure/launcher#1580), at the path the author would have written and for every container: resources.requests.cpu, sidecars[0].resources.limits.memory. The report also holds automountServiceAccountToken where the kind switches the token mount off, which it does when the component sets neither serviceAccountName nor automountServiceAccountToken. A value the author wrote or a policy default filled is never a builtin entry. oam.Policy.MaxCPU()/MaxMemory() are enforced against the effective value — what Generate() will actually emit, after all three tiers — not just the authored/policy-defaulted resources field. When a value came from the intrinsic tier specifically (absent from the authored/policy- defaulted value, present only after the intrinsic fallback), the error names it as a “generated default” so the mismatch isn’t mysterious.</description></item><item><title>Kinds: core workloads</title><link>https://www.gokure.dev/launcher/dev/api-reference/oam-components/kinds-core-workloads/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.gokure.dev/launcher/dev/api-reference/oam-components/kinds-core-workloads/index.html</guid><description>Each kind below with a heading has the sections it needs from this list: Properties, Outputs, Validation and Example. Its implementation, history and tests are on the contributor page.&#10;webservice, worker Properties webservice / worker — image, replicas (default 1), port (webservice), plus the DeploymentSpec-level surface the two share — strategy, minReadySeconds, revisionHistoryLimit, paused and progressDeadlineSeconds (see “Deployment-level properties”). These two kinds own the reshaped form of a Deployment alone: the main container at the top level (image, env, resources, probes, sidecars), podMetadata, volumes[].mountPath and launcher’s builtin fills. The kind-named deployment does not take that form (see deployment). The two keep launcher’s own opinions: topologySpread and the four-key affinity shorthand, and on webservice the port that drives the Service. Neither publishes the raw corev1 affinity. Both publish tolerations and topologySpreadConstraints as the corev1 shapes (see “Raw scheduling properties”); authored constraints need topologySpread: false.</description></item><item><title>Kinds: networking</title><link>https://www.gokure.dev/launcher/dev/api-reference/oam-components/kinds-networking/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.gokure.dev/launcher/dev/api-reference/oam-components/kinds-networking/index.html</guid><description>Each kind below has the same sections: Properties, Outputs, Validation and Example. Its implementation, history and tests are on the contributor page.&#10;ingress ingress is the kind-named projection of a networking.k8s.io/v1 Ingress, on the recipe of resourcequota: one schema key per json field of networkingv1.IngressSpec (ingressClassName, defaultBackend, tls, rules), the property map decoded strictly into that type under the null contract, two spellings of one field refused, and TestCoreKindSchemas_CoverSpec holding the schema to the linked type.</description></item><item><title>Kinds: access and admission</title><link>https://www.gokure.dev/launcher/dev/api-reference/oam-components/kinds-access-and-admission/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.gokure.dev/launcher/dev/api-reference/oam-components/kinds-access-and-admission/index.html</guid><description>Each group of kinds below has the sections it needs from this list: Properties, Outputs, Validation and Example. Its implementation, history and tests are on the contributor page.&#10;apiservice, validatingwebhookconfiguration, mutatingwebhookconfiguration apiservice, validatingwebhookconfiguration, mutatingwebhookconfiguration are the kind-named projections of three cluster-scoped objects: an apiregistration.k8s.io/v1 APIService and an admissionregistration.k8s.io/v1 ValidatingWebhookConfiguration and MutatingWebhookConfiguration. No dimension of the environment policy reads them; its object kind rules (oam.ObjectKindPolicy) gate them as every emitted object, so a policy that forbids their group, their kind or cluster-scoped objects refuses them. What they do once applied is out of the build’s reach (see “Kind inventory”, “Cluster-wide admission and API registration”).</description></item><item><title>Kinds: Flux</title><link>https://www.gokure.dev/launcher/dev/api-reference/oam-components/kinds-flux/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.gokure.dev/launcher/dev/api-reference/oam-components/kinds-flux/index.html</guid><description>Each kind below has the same sections: Properties, Outputs, Validation and Example. Its implementation, history and tests are on the contributor page.&#10;fluxcd-alert, fluxcd-provider, fluxcd-receiver, imagepolicy, imagerepository, imageupdateautomation, artifactgenerator, resourcesetinputprovider fluxcd-alert, fluxcd-provider, fluxcd-receiver, imagepolicy, imagerepository, imageupdateautomation, artifactgenerator, resourcesetinputprovider are the kind-named projections of objects of the Flux APIs beside the sources, the HelmRelease and the Kustomization: a notification.toolkit.fluxcd.io/v1 Alert, Provider and Receiver, an image.toolkit.fluxcd.io/v1 ImagePolicy, ImageRepository and ImageUpdateAutomation, a source.extensions.fluxcd.io/v1beta1 ArtifactGenerator, and a fluxcd.controlplane.io/v1 ResourceSetInputProvider of the Flux Operator’s API. The type is fluxcd-alert rather than alert, which beside a prometheusrule would read as an alerting rule.</description></item><item><title>Kinds: Helm</title><link>https://www.gokure.dev/launcher/dev/api-reference/oam-components/kinds-helm/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.gokure.dev/launcher/dev/api-reference/oam-components/kinds-helm/index.html</guid><description>Each kind below has the same sections: Properties, Outputs, Validation and Example. Its implementation, history and tests are on the contributor page.&#10;helm helm is the role-named Helm component: a component-position lowering rule (HelmRule), not a handler, that lowers to the kind-named terminals.&#10;Properties Properties: chart, version, delivery (flux default | template), source (inline url with optional kind and, for a GitRepository, ref, for an OCI chart, digest; an inline Bucket’s kind, endpoint, bucketName, provider, region, prefix; beside any of these a name for the generated source; or a reference {name, kind, namespace} to an existing HelmRepository, GitRepository, Bucket, OCIRepository or HelmChart), values, valuesMode (inline | configMap), valuesConfigMapName, secretValues (the sensitive part of the values tree, see below), valuesSecretName, helmReleaseName (the name of the HelmRelease object, see below), scopeOverrides, hookGroupNamePrefix and layoutKustomizationName (each under delivery: template only, see below), and the HelmRelease keys interval, releaseName, targetNamespace, driftDetection, install, upgrade, valuesFrom.</description></item><item><title>Kinds: monitoring</title><link>https://www.gokure.dev/launcher/dev/api-reference/oam-components/kinds-monitoring/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.gokure.dev/launcher/dev/api-reference/oam-components/kinds-monitoring/index.html</guid><description>Each kind below has the same sections: Properties, Outputs, Validation and Example. Its implementation, history and tests are on the contributor page.&#10;alertmanager alertmanager is the kind-named projection of an Alertmanager of the Prometheus operator’s monitoring.coreos.com/v1 API. It is built on policyHeldKind (policyFreeKind with a policy check, see storageclass, below) and emits that one object in the build namespace, named after the component unless objectName names it; the handler adds no label, no annotation and no default, and declares the object as namespaced.</description></item><item><title>Kinds: MetalLB</title><link>https://www.gokure.dev/launcher/dev/api-reference/oam-components/kinds-metallb/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.gokure.dev/launcher/dev/api-reference/oam-components/kinds-metallb/index.html</guid><description>Each kind below has the same sections: Properties, Outputs, Validation and Example. Its implementation, history and tests are on the contributor page.&#10;metallb-bfdprofile metallb-bfdprofile is the kind-named projection of a fourth object of MetalLB’s metallb.io/v1beta1 API: a BFDProfile.&#10;Properties What it changes for others. A profile is the settings of a BFD session: the intervals at which control packets are sent and expected (receiveInterval, transmitInterval, echoInterval, in milliseconds), the multiplier that turns an interval into the time after which the connection to a peer is taken for lost (detectMultiplier), the echo and passive modes, and the minimum time-to-live of a multi-hop session’s packets (minimumTtl). On its own it changes nothing: a MetalLB BGPPeer names the profile its session uses (bfdProfile), and a peer that names none has no BFD session. The profile then decides how fast the loss of that peer is noticed.</description></item><item><title>Kinds: PostgreSQL and CloudNativePG</title><link>https://www.gokure.dev/launcher/dev/api-reference/oam-components/kinds-postgres/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.gokure.dev/launcher/dev/api-reference/oam-components/kinds-postgres/index.html</guid><description>Each kind below has the same sections: Properties, Outputs, Validation and Example. Its implementation, history and tests are on the contributor page.&#10;cnpg-imagecatalog, cnpg-clusterimagecatalog, cnpg-backup, cnpg-scheduledbackup, cnpg-databaserole, cnpg-publication, cnpg-subscription cnpg-imagecatalog, cnpg-clusterimagecatalog, cnpg-backup, cnpg-scheduledbackup, cnpg-databaserole, cnpg-publication, cnpg-subscription are the kind-named projections of seven objects of the CloudNativePG API, postgresql.cnpg.io/v1, beyond those of cnpg-cluster and cnpg-pooler, below: an ImageCatalog, a ClusterImageCatalog, a Backup, a ScheduledBackup, a DatabaseRole, a Publication and a Subscription. Each emits that one object, named after the component unless objectName names it; the handler adds no label, no annotation and no default of its own.</description></item><item><title>Kinds: secrets, certificates and backup</title><link>https://www.gokure.dev/launcher/dev/api-reference/oam-components/kinds-secrets-certs-backup/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.gokure.dev/launcher/dev/api-reference/oam-components/kinds-secrets-certs-backup/index.html</guid><description>Each kind below has the same sections: Properties, Outputs, Validation and Example. Its implementation, history and tests are on the contributor page.&#10;issuer, clusterissuer, certificate issuer, clusterissuer, certificate are the kind-named projections of three objects of cert-manager’s cert-manager.io/v1 API: an Issuer, a ClusterIssuer and a Certificate. The higher-level type tls-certificate builds the same Certificate and derives secretName as the component name followed by -tls when it is left out; certificate keeps requiring it. See Higher-level types over a kind.</description></item><item><title>Adding a kind component: where its lines go</title><link>https://www.gokure.dev/launcher/dev/api-reference/oam-components/adding-a-kind/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.gokure.dev/launcher/dev/api-reference/oam-components/adding-a-kind/index.html</guid><description>Adding a kind component: where its lines go A change that adds a kind component adds one entry to each of the lists below. Such changes are written side by side, and two of them merge without a conflict only where their new lines land between different neighbours. So a new entry goes at the position of its component type, in the order sort.Strings gives (cilium-nodeconfig before clusterissuer, pod before poddisruptionbudget), and never at the end of the list.</description></item><item><title>Upstream fields a hand-parsed kind does not read</title><link>https://www.gokure.dev/launcher/dev/api-reference/oam-components/upstream-fields-not-read/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.gokure.dev/launcher/dev/api-reference/oam-components/upstream-fields-not-read/index.html</guid><description>Upstream fields a hand-parsed kind does not read Five kinds read their properties key by key instead of decoding them into the Kubernetes type: service, persistentvolumeclaim, configmap, secret and serviceaccount. None of them builds pods; the pod-building kinds webservice and worker are the “pod-building kind” below. (The deployment, statefulset, daemonset, job and cronjob kinds are not among them: each decodes its properties strictly into the upstream DeploymentSpec, StatefulSetSpec, DaemonSetSpec, JobSpec or CronJobSpec, so it has no refusal map and drops no field; see the deployment, statefulset, daemonset, cronjob and job sections of Kinds: core workloads.) For such a kind an upstream field its parser does not know is no decode error; it is a key the parser never looks at. The rule that closes that gap:</description></item><item><title>Extending</title><link>https://www.gokure.dev/launcher/dev/api-reference/oam-components/extending/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.gokure.dev/launcher/dev/api-reference/oam-components/extending/index.html</guid><description>Extending Custom component types implement oam.ComponentHandler (CanHandle + ToApplicationConfig) and are registered alongside the built-ins. Exported helpers: ValidateImageRef (image policy, the tagged level) and ValidateImageRefAt (the level a handler reads from Component.ImageLevel()), BuildPVC (PVC from a PVCConfig), and the persistentvolumeclaim kind’s claim path, ParseClaimProperties, ApplyClaimPolicy and GenerateClaim, which the pvc trait builds through. A custom Generate() that builds standalone PVCs from a PVCConfig list should qualify their names with the component name the way the role kinds do — see roleClaims (unexported, role_members.go) — to avoid two components colliding on the same pod-local volume name.</description></item><item><title>The null contract and two spellings of one field</title><link>https://www.gokure.dev/launcher/dev/api-reference/oam-components/null-and-spellings/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.gokure.dev/launcher/dev/api-reference/oam-components/null-and-spellings/index.html</guid><description>The null contract Every table above answers “what does an explicit null mean here?” one field at a time. This is the rule they are all instances of:&#10;A value that serializes to JSON null is absent, at every depth, on every path; a null is never a member of any Items type, so a null array element is a type error; reservation is about the KEY being written.</description></item><item><title>Conventions</title><link>https://www.gokure.dev/launcher/dev/api-reference/oam-components/conventions/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.gokure.dev/launcher/dev/api-reference/oam-components/conventions/index.html</guid><description>Conventions Handlers use k8s.io/api constants for well-known Kubernetes enum values (access modes, restart policies, etc.) rather than string literals — never re-define values that already exist upstream.&#10;A property’s Description says what the property means and what an author may set. It never names an issue or a pull request: a consumer publishes each description verbatim, for example as JSON Schema text in a page or an editor tooltip, and a number tells its reader nothing. The reference goes in the Go comment beside the property, where a maintainer reads it. TestBuiltinDescriptionsCarryNoIssueNumber (in the registry package) walks the description of every property of every built-in component, trait and policy and fails on # followed by two or more digits, which a qualified reference such as go-kure/launcher#1050 also contains.</description></item></channel></rss>