Skip to main content

Component Handlers

Go Reference Go Reference

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.

The kind-named Flux source components (helmrepository, ocirepository, gitrepository, bucket, helmchart) reach the same strictness another way: each schema declares exactly the top-level keys of its source-controller spec type and leaves the nested Flux blocks open, and each handler decodes the whole property map strictly into that type, refusing an unknown or wrongly typed key at any depth (see their entry under “Per-type highlights”). fluxcd-kustomization does the same with kustomize-controller’s KustomizationSpec.

Every built-in component handler and component lowering rule implements oam.ContractDescriber (go-kure/launcher#789): family is the component type, version is builtin.ContractVersion (v1alpha1), no capability key is required and none is deprecated. Only postgresql declares Prerequisites: what its backup and recovery need in the cluster (see its entry under “Per-type highlights”). It is also the only one that declares Readiness (go-kure/launcher#1144), one entry for each kind it lowers into, each signal read from the status type of the CloudNativePG v1.30.1 or Barman Cloud plugin v0.15.1 module go.mod pins (nothing checks it against a live resource). A consumer’s naming hook can answer another name for any kind:

KindNamedSignalGeneric check
postgresql.cnpg.io Clusterthe component name, or clusterObjectNamecondition Ready (ClusterStatus.Conditions)judges it
barmancloud.cnpg.io ObjectStorethe component name, or backup.objectStoreObjectName; <component>-recovery-source for an inline recovery.source.objectStorenone: ObjectStoreStatus holds only a backup historycannot judge
postgresql.cnpg.io Pooler<component>-pooler, or poolerNamestatus.phase is active (PoolerStatus.Phase)cannot judge
postgresql.cnpg.io Database<component>-<database>, or databases[].objectNamestatus.applied is true (DatabaseStatus.Applied)cannot judge
postgresql.cnpg.io ScheduledBackup<component>-<schedule>none: ScheduledBackupStatus holds schedule times and an errorcannot judge

The rules (webservice, worker, helm, postgresql, oci, and the six types of the derived-defaults table) also implement oam.LoweringTargetDeclarer, naming every type they lower into:

RuleComponentsTraitsPolicies
webservicerole-deployment, service, serviceaccounttopology-spread, pvc
workerrole-deployment, serviceaccounttopology-spread, pvc
helmhelmrelease, helmtemplate, helmrepository, ocirepository, gitrepository, bucketconfigmap, secret
postgresqlcnpg-cluster, cnpg-objectstore, cnpg-pooler, cnpg-database, cnpg-scheduledbackupdependency, placement
ociocirepository, fluxcd-kustomization
tls-certificate, hardened-cronjob, hardened-daemonset, hardened-deployment, hardened-job, hardened-statefulsetthe one kind each is named for

Transformer.Seal, which every transform runs first, refuses a registry that holds a rule without all of its targets, whatever the document: registry incomplete: lowering rule component/webservice@v1alpha1 lowers into component type "service", which is not registered. Breaking library change: a consumer that registers one of these rules with only the handlers its own documents reach (a postgresql without the pooler, say) now fails at the first transform, and registers the rest. See Contract metadata in pkg/oam.

webservice and worker also implement oam.LoweringKeyDeclarer: for every key of their schema, where its value lands in the members, which is where the provenance report speaks. Which keys the rule forwards is one decision the map and the rule share (roleKeys in role_keys.go), so they cannot disagree on it. The places of the keys the rule evaluates itself are a table beside it, held to the rule by tests. Every key not listed lands unchanged at the same key of the role-deployment member (the type webservice and worker lower into, go-kure/launcher#1629):

KeyLands atUnchanged
port (webservice)role-deployment ports[0].containerPort, service ports[0].portno
affinityrole-deployment affinity, as a Kubernetes affinityno
volumesrole-deployment volumes, and a pvc trait on it for each claim a volume generatesno
topologySpreadthe topology-spread trait on role-deployment, which holds no propertyno
serviceAccountObjectNamerole-deployment serviceAccountName: the pods run as the account under the name it was givenno
deploymentObjectName, serviceObjectName (webservice)no place: they name objects

A worker with an authored serviceAccountName emits its role-deployment alone, and the report then names no member: the same places are read under the plain owner. oci publishes a map too: its rule has no loop over its schema, so the places are declared beside the code that builds its two members (oci_keys.go) and held to what the rule emits by a test that authors every key. The access keys of source are listed once, in the slice the schema and the map both read; the lowering names each of them again. helm publishes one (helm_keys.go) whose places are conditional on delivery, some also on valuesMode: the forwarded keys come from the slices the rule forwards and refuses with, and the rest are declared beside it. The report names the helmrelease or helmtemplate with no member, so its places are read under the plain owner. postgresql publishes one (postgresql_keys.go) whose places are declared beside the builders of its members; the table is under Lowering keys. The map says where to read, never which source supplied the value: an omitted port and an authored one are both rendered at ports[0].containerPort, and no report tells them apart: whether the author wrote such a key is read from the document.

Each of these types also publishes its plain owner, the member emitted under the component’s own name in every document (Transformer.ComponentPlainOwners(), declared by the rule’s PlainOwners() beside its LoweringKeys()): role-deployment for webservice and worker, fluxcd-kustomization for oci, cnpg-cluster for postgresql, and for helm the helmrelease, or the helmtemplate under delivery: template. It is the member’s name that is meant: an objectName can name the object it generates otherwise. An entry that the report gives under the component’s own name with no member is read under this member; a member emitted under another name (a generated source, a Pooler, a database) is a component of its own and the report speaks of it by that name. The table is under The plain owner.

Traits a lowering rule forwards

A rule that emits several components decides which of them carries each authored trait, and a trait acts where it is carried: on that member’s objects, or on the bundle that member’s group is applied in. The rules of this package forward by what a trait covers (go-kure/launcher#794, item 8):

  • A trait that covers every object the component generates (prune-protection, force-replace: a delivery intent on the application of the member that carries it) goes to every member the rule emits for that component: each member of webservice and worker, the Kustomization and the own source of oci, the Cluster and every other member of postgresql. A source helm generates, and a source several oci components share, belongs to the document and carries no trait.
  • A trait that configures how a bundle is delivered (fluxcd-patches, fluxcd-postbuild: not built in; a consumer that delivers through Flux registers them) goes to one member per bundle, never to two members of one group, so its handler sees it once per bundle. webservice, worker and an oci with its own source emit one same-name sibling group, which is one bundle: the role-deployment member carries the trait for the first two, the Kustomization for the third. helm, and an oci on a shared source, emit one component beside the source, and that component carries it.
  • Any other trait goes to the one member whose objects or contracts it acts on; each rule’s entry under “Per-type highlights” says which. webservice forwards monitoring to its service member with the routing traits, since the trait scrapes the Service by its port name; worker has no Service, so the trait stays with its role-deployment and scrapes the pods (go-kure/launcher#1736).

A rule whose members can land in different groups forwards a bundle trait only where it can tell the groups, and refuses the document where it cannot. Groups are computed after lowering has settled, so a rule cannot ask which bundle a member will be applied in. Applying a forwarded trait once per resulting bundle, whatever the grouping turns out to be, is not offered: it would have to happen in the engine, after grouping, and the refusal was kept instead.

postgresql is the one built-in case. Its Cluster carries every authored trait. Unless the document orders its components (a dependency policy with a rule), the other members stay in the Cluster’s bundle, which the Cluster’s copy configures. When it does, the Pooler, the Databases and the ScheduledBackups are ordered after the Cluster, wait for nothing else and are placed where it is, so they share one later group, and the first of them carries a second copy for that group’s bundle. A policy of the document that orders or places one of those members on its own (a dependency rule or a placement whose component is a generated name) could move it to a group neither copy reaches, so a document that authors one of the two traits on the postgresql component and holds such a policy is refused, with this cause:

trait "fluxcd-patches" configures the bundle of every object this component generates, but placement policy "pooler-last" names "db-pooler", a component generated for it, on its own: that component could be applied in a bundle the trait does not reach; name "db" in the policy instead, or remove the trait

A policy that makes another component wait for a member separates nothing and is left alone. A rule an extension registers owes the same: one copy per bundle where the members provably share a group, a refusal naming the trait and the policy where a document could separate them.

How to read the wrong-type notes below

This document states wrong-type handling per field, and makes no blanket guarantee across the package. Where a field says a present-but-wrong-type value is rejected, that is a claim about the helper named beside it — parseStringField, parseBoolField, parseInt32Field, parseInt64Field, parseObjectField, parseStringList — each of which reports presence separately from value and returns an error naming the field. A parser that does not use one of those helpers may still reject a wrong type on its own — several do, with their own error — so its behavior is left unspecified here. Some fields may still fall through a bare type assertion and silently discard a wrongly typed value instead of erroring. The shared parseAffinity’s four sub-fields (enablePodAntiAffinity, topologyKey, podAntiAffinityType, nodeSelector) were the documented example until go-kure/launcher#452 moved them onto the helpers; the absence of a named example is not a claim that none remain. Do not generalize a rejection note from one field to its neighbours: adjudicate against the parser that actually reads it.

Higher-level types over a kind

A kind component keeps no launcher opinion, so a default that follows from the component belongs to a higher-level type built on the kind (go-kure/launcher#1631; the design is docs/oam/design-derived-defaults.md). One table holds every row and one rule, DerivedDefaultsRule, applies the rows of its type: it fills each row’s field when the author left it out (an absent key and a null both count), and emits the kind component under the component’s own name. The kind then parses what the rule wrote, so its checks, its environment policy and its bounds apply unchanged, and the published schema is the kind’s with the row’s field optional and described. The object name (objectName, and the Naming hook), the endpoints and the outputs are the kind’s, and the two queries are prepared as the engine prepares them for the kind: objectName is read as a name, and labels and annotations are checked (oam.ReadObjectMetadata), so a value the kind’s query refuses is refused by the type’s.

A type takes a role name of its own, so the plain kind keeps its short name and its meaning: certificate still requires secretName. A row fills only where every parent map on its path is authored, and it addresses a map path in the grammar of ParsePodSpecPath, from the root of the emitted object, as the field markers of a component definition do. The one guard, unless the pod names a service account, reads the effective name: serviceAccountName, or the deprecated alias serviceAccount; a key written as "" or null names none. The walk and the guard read a value as the kind’s decode reads it, as the JSON it serializes to: a Go caller’s named map type is walked as a map, and a named string type holding "" names none. A filled path is reported as builtin in the provenance report, with the reference <type>.<path>, and a value the author wrote as copied from authored, with the rule as its reference. The rule returns true from EmitsAuthoredComponents (oam.AuthoredComponentEmitter), so the engine treats the kind component it emits as the kind’s own authored component: the kind’s capability fill (a StatefulSet claim template takes the pvc capability’s storage class) and its authored checks run as they do on the kind. The table, generated from the rows (DerivedDefaultsTable, held equal to this text by a test):

TypeBuilds onPathValueClass
tls-certificatecertificatespec.secretNamethe component name followed by “-tls”derived
hardened-deploymentdeploymentspec.template.spec.automountServiceAccountTokenfalse, unless the pod names a service account (serviceAccountName or the alias serviceAccount)constant
hardened-statefulsetstatefulsetspec.template.spec.automountServiceAccountTokenfalse, unless the pod names a service account (serviceAccountName or the alias serviceAccount)constant
hardened-daemonsetdaemonsetspec.template.spec.automountServiceAccountTokenfalse, unless the pod names a service account (serviceAccountName or the alias serviceAccount)constant
hardened-jobjobspec.template.spec.automountServiceAccountTokenfalse, unless the pod names a service account (serviceAccountName or the alias serviceAccount)constant
hardened-cronjobcronjobspec.jobTemplate.spec.template.spec.automountServiceAccountTokenfalse, unless the pod names a service account (serviceAccountName or the alias serviceAccount)constant

A constant row changes what a document that uses its type builds, and nothing else: no document that writes a plain kind builds differently. The five hardened-* types are the constant of the service-account token the raw workload kinds stopped writing (go-kure/launcher#1629), on a type of its own. Transformer.TypeCatalog lists each type with its qualified name and its level (base-kind for a kind, higher-level-model for a type like these, webservice or postgresql).

Component types

typeProducesSummary
alertmanagerAlertmanagerKind-named Prometheus operator Alertmanager: the whole AlertmanagerSpec, strictly decoded; no top-level field is required. The operator runs the pods: what the spec says of them (image, replicas, resources, storage, containers, initContainers, volumes, securityContext, hostNetwork) is held to the environment policy as a workload’s is, and the deprecated baseImage, tag and sha are not in the schema, and are refused when not empty (an empty one writes nothing where the properties are not first validated against the schema, which refuses all three). The replica count and memory request the operator fills where they are unset are held, not written. An image the operator chooses, for alertmanager or one of its two reloaders, is refused under a policy with allowed registries. No capability is required — see below.
apiserviceAPIServiceKind-named APIService: the whole APIServiceSpec, strictly decoded; group, version, groupPriorityMinimum and versionPriority are required, and a service names its namespace and name. The object must be named <version>.<group>, by the component’s name or objectName. It hands a group and version of the API to the Service it names, which is not resolved at build. Cluster-scoped; only the environment policy’s object kind rules apply — see below.
artifactgeneratorArtifactGeneratorKind-named Flux ArtifactGenerator: the whole ArtifactGeneratorSpec, strictly decoded; sources, each with its alias, kind and name, and artifacts, each with its name and a copy of from and to, are required. A source may be one of another namespace, whose content the generator copies into its artifacts, and an artifact may be written into another namespace, checked only against the RBAC of the account serviceAccountName names; launcher gates neither. The API’s expression rules are not checked, and managedNamespaces is refused. No environment policy applies — see below.
backendtlspolicyBackendTLSPolicyKind-named Gateway API BackendTLSPolicy: the whole BackendTLSPolicySpec, strictly decoded; at least one of targetRefs, and validation with its hostname, are required. No capability is required and no environment policy applies — see below.
bucketBucketKind-named: the full Flux BucketSpec.
certificateCertificateKind-named cert-manager Certificate: the whole CertificateSpec, strictly decoded; secretName and issuerRef with its name are required. A keystore password written into the object is refused under an environment policy that forbids explicit secrets. The issuer is the author’s, and no capability is required. Under a delivery whose groups wait for their Flux objects, a Certificate in a later group than a Flux object requiring its secretName Secret is refused (go-kure/launcher#1086). Shares its name with the certificate trait — see below.
cilium-bgpadvertisementCiliumBGPAdvertisementKind-named Cilium BGP advertisement: the whole CiliumBGPAdvertisementSpec (advertisements, required), strictly decoded; an entry’s advertisementType is required, and its service, interface and selector are held to the type. Cluster-scoped; no environment policy applies and no capability is required — see below.
cilium-bgpclusterconfigCiliumBGPClusterConfigKind-named Cilium BGP cluster configuration: the whole CiliumBGPClusterConfigSpec (nodeSelector, bgpInstances), strictly decoded; bgpInstances, an instance’s name and a peer’s name are required. The node selector is the author’s. Cluster-scoped; no environment policy applies and no capability is required — see below.
cilium-bgpnodeconfigoverrideCiliumBGPNodeConfigOverrideKind-named Cilium BGP per-node override: the whole CiliumBGPNodeConfigOverrideSpec (bgpInstances, required), strictly decoded; an instance’s name and a peer’s name are required. It overrides the CiliumBGPNodeConfig of the same name: objectName sets that name. Cluster-scoped; no environment policy applies and no capability is required — see below.
cilium-bgppeerconfigCiliumBGPPeerConfigKind-named Cilium BGP peer configuration: the whole CiliumBGPPeerConfigSpec (transport, timers, authSecretRef, gracefulRestart, ebgpMultihop, families), strictly decoded; no top-level field is required. Cluster-scoped; no environment policy applies and no capability is required — see below.
cilium-cidrgroupCiliumCIDRGroupKind-named Cilium CIDR group: the whole CiliumCIDRGroupSpec (externalCIDRs, required), strictly decoded. A Cilium network policy refers to the group by its name: objectName sets that name. Cluster-scoped; no environment policy applies and no capability is required — see below.
cilium-clusterwidenetworkpolicyCiliumClusterwideNetworkPolicyKind-named Cilium cluster-wide network policy: spec, specs or both (published as an atLeastOne group), each a Cilium rule, strictly decoded as the cilium-networkpolicy kind decodes them. A rule takes exactly one of endpointSelector and nodeSelector, and at least one of ingress, ingressDeny, egress and egressDeny. Cluster-scoped; no environment policy applies and no capability is required — see below.
cilium-egressgatewaypolicyCiliumEgressGatewayPolicyKind-named Cilium egress gateway policy: the whole CiliumEgressGatewayPolicySpec (selectors, destinationCIDRs, excludedCIDRs, egressGateway, egressGateways), strictly decoded; selectors, destinationCIDRs, egressGateway and a gateway’s nodeSelector are required. The selectors are the author’s. Cluster-scoped; no environment policy applies and no capability is required — see below.
cilium-loadbalancerippoolCiliumLoadBalancerIPPoolKind-named Cilium load balancer address pool: the whole CiliumLoadBalancerIPPoolSpec (serviceSelector, allowFirstLastIPs, blocks, disabled), strictly decoded; no top-level field is required. The Service selector is the author’s. Cluster-scoped; no environment policy applies and no capability is required — see below.
cilium-localredirectpolicyCiliumLocalRedirectPolicyKind-named Cilium local redirect policy: the whole CiliumLocalRedirectPolicySpec (redirectFrontend, redirectBackend, skipRedirectFromBackend, description), strictly decoded; the frontend, the backend, its selector and its ports are required, and the frontend takes exactly one of addressMatcher and serviceMatcher. Namespaced; no environment policy applies and no capability is required — see below.
cilium-networkpolicyCiliumNetworkPolicyKind-named CiliumNetworkPolicy: its spec (one rule) and specs (a list of rules), each the whole Cilium rule, strictly decoded. At least one is required, published as an atLeastOne group; each rule needs an endpointSelector and an entry in ingress, ingressDeny, egress or egressDeny, and nodeSelector is refused. An authored object, not the cilium-networkpolicy trait; no environment policy applies — see below.
cilium-nodeconfigCiliumNodeConfigKind-named Cilium per-node configuration: the whole CiliumNodeConfigSpec (defaults, nodeSelector, both required), strictly decoded. The keys and values of defaults are written as authored. Namespaced; no environment policy applies and no capability is required — see below.
clusterexternalsecretClusterExternalSecretKind-named External Secrets Operator ClusterExternalSecret: the whole ClusterExternalSecretSpec, strictly decoded; externalSecretSpec is required, with what an externalsecret requires and what it refuses of a target.manifest under the environment policy. Cluster-scoped; no capability is required — see below.
clusterissuerClusterIssuerKind-named cert-manager ClusterIssuer: the IssuerSpec of issuer, strictly decoded, and its policy check. Cluster-scoped. No capability is required — see below.
clusterroleClusterRoleKind-named RBAC ClusterRole: the object’s own fields (rules, aggregationRule), strictly decoded; a rule’s verbs are required, and either its apiGroups and resources or its nonResourceURLs; an aggregationRule needs a selector. Cluster-scoped. Ungated: no capability and no environment-policy check restricts what a role grants — see below.
clusterrolebindingClusterRoleBindingKind-named RBAC ClusterRoleBinding: the object’s own fields (subjects; roleRef, required with its kind and name), strictly decoded; a subject’s kind and name are required, and a ServiceAccount subject’s namespace. Cluster-scoped. Ungated: no capability and no environment-policy check restricts what a role grants — see below.
clustersecretstoreClusterSecretStoreKind-named External Secrets Operator ClusterSecretStore: the SecretStoreSpec of secretstore, strictly decoded, and its policy check. Cluster-scoped. No capability is required — see below.
cnpg-backupCNPG BackupKind-named CloudNativePG Backup: the whole BackupSpec, strictly decoded; cluster.name is required. A one-shot request with a spec the API never lets change: a backup that recurs is a cnpg-scheduledbackup. Namespaced; no environment policy applies and no capability is required — see below.
cnpg-clusterCNPG ClusterOperator-CR kind component: the whole postgresql.cnpg.io/v1 ClusterSpec, strictly decoded, with no launcher opinions — see below.
cnpg-clusterimagecatalogCNPG ClusterImageCatalogKind-named CloudNativePG cluster-wide image catalog: the same ImageCatalogSpec, strictly decoded, and the same policy check and tag rule. Cluster-scoped. No capability is required — see below.
cnpg-databaseCNPG DatabaseOperator-CR kind component: the whole DatabaseSpec, strictly decoded — see below.
cnpg-databaseroleCNPG DatabaseRoleKind-named CloudNativePG DatabaseRole: the whole DatabaseRoleSpec, strictly decoded; cluster.name and name are required, and the names the CRD reserves, ensure: absent, a password Secret beside disablePassword: true and a client certificate without login: true are refused. Its password is a Secret’s name, never a value. Namespaced; no environment policy applies and no capability is required — see below.
cnpg-imagecatalogCNPG ImageCatalogKind-named CloudNativePG image catalog: the whole ImageCatalogSpec (images, required, and componentImages), strictly decoded; an image’s image and major and a component image’s key and image are required. Every image the catalog names is held to the environment policy’s allowed registries and, with or without a policy, to the tag rule (a tag or a digest, no :latest). Namespaced; no capability is required — see below.
cnpg-objectstoreBarman Cloud ObjectStoreOperator-CR kind component: the whole barmancloud.cnpg.io/v1 ObjectStoreSpec, strictly decoded — see below.
cnpg-poolerCNPG PoolerOperator-CR kind component: the whole PoolerSpec, strictly decoded — see below.
cnpg-publicationCNPG PublicationKind-named CloudNativePG Publication: the whole PublicationSpec, strictly decoded; cluster.name, name, dbname and target are required, and the target publishes all tables or a list of objects, not both. Namespaced; no environment policy applies and no capability is required — see below.
cnpg-scheduledbackupCNPG ScheduledBackupKind-named CloudNativePG ScheduledBackup: the whole ScheduledBackupSpec, strictly decoded; schedule and cluster.name are required. The schedule is the operator’s to read. Namespaced; no environment policy applies and no capability is required — see below.
cnpg-subscriptionCNPG SubscriptionKind-named CloudNativePG Subscription: the whole SubscriptionSpec, strictly decoded; cluster.name, name, dbname, publicationName and externalClusterName are required. Namespaced; no environment policy applies and no capability is required — see below.
configmapConfigMapKind-named ConfigMap: data, binaryData, immutable. A workload reads it through a configMap volume or envFrom — see below.
crdCustomResourceDefinition(s)CRDs from inline/url; rejects non-CRD docs.
cronjobCronJobKind-named CronJob: the whole CronJobSpec, strictly decoded; schedule and jobTemplate are required and the pod is jobTemplate.spec.template.spec (go-kure/launcher#1629). It fills no default and adds only the app label on the pod template — see below.
csidriverCSIDriverKind-named CSIDriver: the whole CSIDriverSpec, strictly decoded. Cluster-scoped, and the object’s name (the component’s, or its objectName) is the driver’s name; no environment policy applies — see below.
daemonsetDaemonSetKind-named DaemonSet: the whole DaemonSetSpec, strictly decoded; selector and template are required. The pod template is held to what the pod kind holds its spec to, less activeDeadlineSeconds, and it gains the app label; the template is held to environment policy, no default filled (go-kure/launcher#1629). Emits no Service. Declares one endpoint per port of template.spec.containers[0]. Breaking: the reshaped form is gone from the kind — see below.
deploymentDeploymentKind-named Deployment: the whole DeploymentSpec, strictly decoded; selector and template are required. The pod template is held to what the pod kind holds its spec to, less activeDeadlineSeconds, and it gains the app label; replicas and the template are held to environment policy, no default filled (go-kure/launcher#1629). A scaler builds it without spec.replicas. Declares one endpoint per port of template.spec.containers[0]. Breaking: the reshaped form moved to webservice and worker — see below.
endpointsliceEndpointSliceKind-named EndpointSlice: the object’s own fields (addressType, required; endpoints; ports), strictly decoded; an endpoint’s addresses are required. It belongs to a Service through the kubernetes.io/service-name label, authored under labels as a literal that does not follow a Service’s objectName. Namespaced; no environment policy applies and no capability is required — see below.
externalsecretExternalSecretKind-named External Secrets Operator ExternalSecret: the whole ExternalSecretSpec (secretStoreRef, target, refreshPolicy, refreshInterval, syncWindows, data, dataFrom), strictly decoded; no top-level field is required. The store is the author’s. The environment policy reaches one field: a target.manifest of a kind the policy checks is refused. No capability is required. Under a delivery whose groups wait for their Flux objects, an ExternalSecret in a later group than a Flux object requiring its target Secret is refused, unless creationPolicy is Merge or None, a target.manifest is set, or the document holds that Secret by the Flux object’s group (go-kure/launcher#1086). Beside the external-secret trait — see below.
fluxcd-alertAlertKind-named Flux Alert: the whole AlertSpec, strictly decoded; providerRef with its name and eventSources, each with its kind and name, are required. A source may name the objects of another namespace, and nothing gates it. No environment policy applies — see below.
fluxcd-kustomizationKustomizationKind-named: the full Flux KustomizationSpec, against an existing source; what oci lowers to beside an ocirepository (OCIRule, see below). An authored Flux object, not how an application is delivered. Under a delivery whose groups wait for their Flux objects, a component of a later group making the source its sourceRef names is refused (go-kure/launcher#1088).
fluxcd-providerProviderKind-named Flux Provider: the whole ProviderSpec, strictly decoded; type is required, and of an authored Secret reference its name. A user or a password in address is refused under every policy and under none, and an address that is itself the credential under a policy that forbids explicit secrets; the host is written as authored, and nothing gates serviceAccountName — see below.
fluxcd-receiverReceiverKind-named Flux Receiver: the whole ReceiverSpec, strictly decoded; type and resources, each with its kind and name, are required, and of an authored secretRef its name. A resource without apiVersion is refused unless its kind is one the notification controller gives a default version (Bucket, GitRepository, HelmChart, HelmRepository, OCIRepository, ImageRepository, ArtifactGenerator; go-kure/launcher#984), and the refusal names the kind’s own apiVersion for a kind the API’s kind enum admits (go-kure/launcher#1010). The Receiver opens an inbound path on the notification controller, and a resource may name the objects of another namespace; nothing gates either. The API’s expression rules are not checked. No environment policy applies — see below.
gatewayGatewayKind-named Gateway API Gateway: the whole GatewaySpec, strictly decoded; gatewayClassName and listeners are required, and of a listener its name, port and protocol. It is not the Gateway a capability names for the httproute trait. No capability is required and no environment policy applies — see below.
gatewayclassGatewayClassKind-named Gateway API GatewayClass: the whole GatewayClassSpec (controllerName, required, parametersRef and description), strictly decoded. Cluster-scoped. No capability is required and no environment policy applies — see below.
gitrepositoryGitRepositoryKind-named: the full Flux GitRepositorySpec.
grpcrouteGRPCRouteKind-named GRPCRoute: the whole GRPCRouteSpec (parentRefs, useDefaultGateways, hostnames, rules), strictly decoded, on the httproute kind’s recipe: nothing required or filled, no NetworkPolicy allow rule and no environment policy — see below.
hardened-cronjobCronJobHigher-level model over the cronjob kind: the kind’s whole schema and checks, plus one default: the pod’s automountServiceAccountToken is false when the pod names no service account. See “Higher-level types over a kind”.
hardened-daemonsetDaemonSetHigher-level model over the daemonset kind, with the service-account token default of hardened-cronjob. See “Higher-level types over a kind”.
hardened-deploymentDeploymentHigher-level model over the deployment kind, with the service-account token default of hardened-cronjob. See “Higher-level types over a kind”.
hardened-jobJobHigher-level model over the job kind, with the service-account token default of hardened-cronjob. See “Higher-level types over a kind”.
hardened-statefulsetStatefulSetHigher-level model over the statefulset kind, with the service-account token default of hardened-cronjob. See “Higher-level types over a kind”.
helmvia helmrelease (+ a values configmap trait, a secretValues secret trait) + a generated helmrepository/ocirepository/gitrepository/bucket, or via helmtemplateRole-named Helm component: Flux (flux) or client-side template delivery. Lowered to the kind-named terminals (HelmRule), sharing one generated source per content identity within a document. endpoints declares the pods the chart renders (see “Declared endpoints of a chart” below). secretValues declares explicit-secret in boundedBy under both deliveries; under delivery: template values is bounded as helmtemplate’s is. See below.
helmchartHelmChartKind-named: the full Flux HelmChartSpec, a chart from an existing source. Not the composite removed under this name (go-kure/launcher#350); that is helm. Under a delivery whose groups wait for their Flux objects, a component of a later group making the source its sourceRef names is refused (go-kure/launcher#1088).
helmreleaseHelmReleaseKind-named: the full Flux HelmReleaseSpec, against an existing source, or an OCI chart helm-controller fetches itself (chart.kind: OCIRepository). Under a delivery whose groups wait for their Flux objects, a component of a later group making the source its chartRef or its chart template’s sourceRef names is refused (go-kure/launcher#1088). Beside the Flux fields it takes launcher’s own endpoints (the pods the chart renders), split off before the decode and never part of the emitted spec.
helmrepositoryHelmRepositoryKind-named: the full Flux HelmRepositorySpec, and nothing else.
helmtemplaterendered manifestsKind-named client-side Helm render: source.url, chart, version, values, secretValues, scopeOverrides, and endpoints (the pods the chart renders). What helm lowers to under delivery: template, authorable directly. The source host and every rendered workload are checked against the environment policy — see below; values and secretValues publish the classes of the rendered objects in boundedBy (go-kure/launcher#1711). The volumeMounts of every rendered workload are held to the app.yaml mount rules, whatever the policy (go-kure/launcher#1223). A container name used by more than one init or regular container of a rendered workload’s pod is refused, whatever the policy, naming both entries (go-kure/launcher#1253). A lifecycle or probe on an init container of a rendered workload without restartPolicy: Always is refused the same way (go-kure/launcher#1237), as is a lifecycle sleep below zero or longer than the pod’s terminationGracePeriodSeconds (30 when unset; go-kure/launcher#1236); a refused render is not kept (go-kure/launcher#1238). With secretValues set, a refusal by these checks, by the component’s policy check on a rendered object, of a contradicted scope override, of a hook-group name, by the transform’s ownership checks on a rendered object (oam.SensitiveRenderer), by the in-document collision check, and a forced-volume warning, is reported only when the render without them reads the same; otherwise the object’s name and the cause are withheld. A trait’s refusal is withheld without that comparison. The cross-document collision check, an inventory a caller built itself and the base library’s layout writer are not covered (go-kure/launcher#1784). With more than one hook group, AugmentLayout refuses a layout holding an object the chart did not render, which the hook-group partition would drop, and withholds that object’s kind, namespace and name under secretValues (go-kure/launcher#1852).
horizontalpodautoscalerHorizontalPodAutoscalerKind-named HorizontalPodAutoscaler: the whole HorizontalPodAutoscalerSpec, strictly decoded; scaleTargetRef and maxReplicas are required. maxReplicas is held to the environment policy’s replica maximum, no default filled; the target is the author’s and is not checked — see below.
httprouteHTTPRouteKind-named HTTPRoute: the whole HTTPRouteSpec (parentRefs, useDefaultGateways, hostnames, rules), strictly decoded. An authored object, not the httproute trait: no parent is synthesized from a capability, no NetworkPolicy allow rule is synthesized for it and no environment policy applies — see below.
imagepolicyImagePolicyKind-named Flux ImagePolicy: the whole ImagePolicySpec, strictly decoded; imageRepositoryRef with its name and policy are required, and of a semver policy its range. The policy may name the ImageRepository of another namespace, and nothing gates it. The API’s expression rules are not checked. No environment policy applies — see below.
imagerepositoryImageRepositoryKind-named Flux ImageRepository: the whole ImageRepositorySpec, strictly decoded; image and interval are required, and of an authored Secret reference its name. The registry of image is held to the environment policy’s allowed registries; the tag rule is not applied, and nothing gates accessFrom, serviceAccountName or insecure — see below.
imageupdateautomationImageUpdateAutomationKind-named Flux ImageUpdateAutomation: the whole ImageUpdateAutomationSpec, strictly decoded; sourceRef with its kind and name and interval are required, and of an authored git its commit with the author’s email. The automation commits and pushes to the repository of the GitRepository it names, which may be one of another namespace, and nothing gates it. Under a delivery whose groups wait for their Flux objects, a component of a later group making the GitRepository is refused (go-kure/launcher#1088). No environment policy applies — see below.
ingressIngressKind-named Ingress: the whole IngressSpec (ingressClassName, defaultBackend, tls, rules), strictly decoded. An authored object, not the ingress trait: no NetworkPolicy allow rule is synthesized for it and no environment policy applies — see below.
ingressclassIngressClassKind-named IngressClass: the whole IngressClassSpec (controller, required, and parameters), strictly decoded. Cluster-scoped; no environment policy applies — see below.
issuerIssuerKind-named cert-manager Issuer: the whole IssuerSpec (acme, ca, vault, selfSigned, venafi), strictly decoded; no top-level field is required. The cpu and memory of an ACME HTTP01 solver’s pod template are held to the environment policy’s maxima. No capability is required — see below.
jobJobKind-named Job: the whole JobSpec, strictly decoded; template is required and the pod is template.spec (go-kure/launcher#1629). It fills no default and adds only the app label on the pod template — see below.
limitrangeLimitRangeKind-named LimitRange: the whole LimitRangeSpec (limits, required), strictly decoded — see below.
listenersetListenerSetKind-named Gateway API ListenerSet: the whole ListenerSetSpec, strictly decoded; parentRef with its name and at least one of listeners, each with its name, port and protocol, are required. No capability is required and no environment policy applies — see below.
manifestsanyRaw manifests from inline/url with namespace stamping + scopeOverrides. Every object is checked against the environment policy — see below. Under a policy that forbids explicit secrets, an object of a kind with a typed component that refuses a credential (SecretStore, ClusterSecretStore, ExternalSecret, ClusterExternalSecret, Certificate, BGPPeer, Provider, Prometheus, ThanosRuler, VMAgent, VMAlert, VMSingle, Alertmanager, Pooler) is held to that component’s own check and refused with its class, explicit-secret; the workload and pod kinds’ credential headers are held by the Secret check below (go-kure/launcher#1860); one in another version than the typed component reads, or whose spec its decode refuses or its check cannot finish on, is refused as unreadable-object (enforceTypedExplicitSecret, go-kure/launcher#1830). The volumeMounts of every container and init container of a Pod, PodTemplate, ReplicationController, Deployment, StatefulSet, DaemonSet, ReplicaSet, Job or CronJob are held to the app.yaml mount rules, whatever the policy (go-kure/launcher#1212). A lifecycle or probe on an init container of those objects without restartPolicy: Always is refused the same way (go-kure/launcher#1237), as is a lifecycle sleep below zero or longer than the pod’s terminationGracePeriodSeconds (30 when unset; go-kure/launcher#1236). A container name used by more than one init or regular container of one of those objects is refused the same way, naming both entries (go-kure/launcher#1253). An object that fails several of these checks is refused by the container-name check first, then the mount rules, then the pod rules (the order the typed pod reader applies them in, and a chart render and a passthrough component the same), and the first object that fails any check is the one refused (go-kure/launcher#1297).
mariadbMariaDBKind-named mariadb-operator MariaDB (k8s.mariadb.com/v1alpha1, operator release 26.10.2): the whole MariaDBSpec, strictly decoded; no top-level field is required. The operator runs the pods, so the environment policy is applied by one walk of the decoded type (mariadb_common.go): the replicas maximum, the registry allowlist on image, on each init and sidecar container, on the metrics exporter and on the agent and init container of replication and galera (an image left out of an enabled section is refused under an allowlist, since the operator then chooses it), the cpu and memory maxima of every resources, privileged and the capabilities of every securityContext, the storage maximum on storage.size and on every volume claim template, and a hostPath volume unless the policy allows it. Namespaced; no capability is required — see below.
mariadb-backupBackupKind-named mariadb-operator Backup: the whole BackupSpec, strictly decoded. The operator runs it as a Job (a CronJob with schedule); the pod is held as mariadb holds its own: the maxima on resources, securityContext, the storage request of a claim in storage or stagingStorage, and a hostPath volume. It names no image: the job pods also run the operator’s own image, chosen in the operator’s configuration, and the referenced MariaDB’s; launcher’s registry policy does not see either. Namespaced; no capability is required — see below.
mariadb-physicalbackupPhysicalBackupKind-named mariadb-operator PhysicalBackup: the whole PhysicalBackupSpec, strictly decoded, held as mariadb-backup is. Namespaced; no capability is required — see below.
mariadb-restoreRestoreKind-named mariadb-operator Restore: the whole RestoreSpec, strictly decoded, held as mariadb-backup is (its volume and stagingStorage take the host path and claim checks). Namespaced; no capability is required — see below.
mariadb-sqljobSqlJobKind-named mariadb-operator SqlJob: the whole SqlJobSpec, strictly decoded; only its resources and securityContext reach the policy. Namespaced; no capability is required — see below.
metallb-bfdprofileBFDProfileKind-named MetalLB BFD profile: the whole BFDProfileSpec (receiveInterval, transmitInterval, echoInterval, detectMultiplier, echoMode, passiveMode and minimumTtl, none required), strictly decoded. It is the timers of the BFD session of the BGP peers that name it, and so how fast the loss of such a peer is noticed. Namespaced; no environment policy applies and no capability is required — see below.
metallb-bgpadvertisementBGPAdvertisementKind-named MetalLB advertisement over BGP: the whole BGPAdvertisementSpec (ipAddressPools, ipAddressPoolSelectors, peers, nodeSelectors, serviceSelectors, aggregationLength, aggregationLengthV6, localPref, asPathPrepend and communities, none required), strictly decoded. It says which pools’ addresses MetalLB announces to which BGP peers, for which Services, and with which route attributes; one that authors nothing limits none of them. serviceSelectors is refused beside an aggregation length other than 32 (IPv4) or 128 (IPv6), the CRD’s expression rule. Namespaced; no environment policy applies and no capability is required — see below.
metallb-bgppeerBGPPeerKind-named MetalLB BGP peer, at metallb.io/v1beta2: the whole BGPPeerSpec (myASN, required; the peer’s AS number, its address or interface, its port and timers, nodeSelectors, password, passwordSecret, bfdProfile and the switches of the session), strictly decoded. It is a router the cluster’s nodes hold a BGP session with, and so one MetalLB announces addresses to. A connectTime outside 1 to 65535 seconds, or not a whole number of seconds read in whole milliseconds, is refused, the CRD’s two expression rules on a create, and so is a peerPort: 0. A password written into the object is refused under an environment policy that forbids explicit secrets. Namespaced; no capability is required — see below.
metallb-communityCommunityKind-named MetalLB Community: the whole CommunitySpec (communities, a list of aliases of a name and a value, none required), strictly decoded. It gives names to BGP community values; a BGP advertisement that names one attaches its value to what it announces. Namespaced; no environment policy applies and no capability is required — see below.
metallb-ipaddresspoolIPAddressPoolKind-named MetalLB address pool: the whole IPAddressPoolSpec (addresses, required, autoAssign, avoidBuggyIPs and serviceAllocation), strictly decoded. It says which Services, in which namespaces, MetalLB gives an address of which range. Namespaced; no environment policy applies and no capability is required — see below.
metallb-l2advertisementL2AdvertisementKind-named MetalLB advertisement on the local network: the whole L2AdvertisementSpec (ipAddressPools, ipAddressPoolSelectors, nodeSelectors, preferredNodeSelectors, interfaces and serviceSelectors, none required), strictly decoded. It says which pools’ addresses MetalLB announces on the local network, from which nodes and interfaces, for which Services; one that authors nothing limits none of them. Namespaced; no environment policy applies and no capability is required — see below.
mutatingadmissionpolicyMutatingAdmissionPolicyKind-named MutatingAdmissionPolicy: its MutatingAdmissionPolicySpec, strictly decoded; matchConstraints with at least one rule, at least one of mutations, each with its patchType and the patch of that type, and reinvocationPolicy are required. It changes objects of any namespace after the build. Served from Kubernetes 1.36. Cluster-scoped; only the environment policy’s object kind rules apply — see below.
mutatingadmissionpolicybindingMutatingAdmissionPolicyBindingKind-named MutatingAdmissionPolicyBinding: its MutatingAdmissionPolicyBindingSpec, strictly decoded; policyName is required, and a paramRef holds exactly one of name and selector and its parameterNotFoundAction. Neither the policy nor the parameter is resolved at build. Served from Kubernetes 1.36. Cluster-scoped; only the environment policy’s object kind rules apply — see below.
mutatingwebhookconfigurationMutatingWebhookConfigurationKind-named MutatingWebhookConfiguration: its webhooks, strictly decoded; a webhook’s name, clientConfig (exactly one of url and service), sideEffects and admissionReviewVersions are required, and a rule names its operations, API groups, versions and resources. It changes objects of any namespace after the build. Cluster-scoped; only the environment policy’s object kind rules apply — see below.
namespaceNamespaceKind-named Namespace: the whole NamespaceSpec (finalizers), strictly decoded. Cluster-scoped, named after the component; its labels are the labels property — see below.
networkpolicyNetworkPolicyKind-named NetworkPolicy: the whole NetworkPolicySpec (podSelector, ingress, egress, policyTypes), strictly decoded. An authored object, not the networkpolicy trait: nothing scopes it to a component’s pods, so an unwritten podSelector selects every pod of the namespace; no policyTypes are derived; a defective match expression of a selector is refused; no environment policy applies — see below.
ociOCIRepository, KustomizationSync manifests from an OCI artifact (Flux).
ocirepositoryOCIRepositoryKind-named: the full Flux OCIRepositorySpec, with no Kustomization (compare oci).
passthroughany (verbatim)Emit one arbitrary object as-declared; a built-in kind has the scope the Kubernetes API gives it, any other kind the scope an authored clusterScoped states, or else the one registered for it (namespaced when unknown); a list is rejected, a workload, claim or autoscaler is held to the environment policy, and a Secret is refused under a policy that forbids explicit secrets. Under such a policy an object of a kind with a typed component that refuses a credential is held to that component’s check, as the manifests row says (go-kure/launcher#1830). The volumeMounts of a workload are held to the app.yaml mount rules, whatever the policy (go-kure/launcher#1223), and a container name used by more than one init or regular container of its pod is refused, naming both entries (go-kure/launcher#1253). A lifecycle or probe on an init container of a workload without restartPolicy: Always is refused the same way (go-kure/launcher#1237), as is a lifecycle sleep below zero or longer than the pod’s terminationGracePeriodSeconds (30 when unset; go-kure/launcher#1236; go-kure/launcher#1238). A Go caller must not change memory it handed over, a pointee inside the properties included, until the last Generate call of the returned config: the maps, slices and arrays of object are copied, and a struct’s contents and a pointer’s target are not (go-kure/launcher#1715). A custom resource’s pods are not read, except at the nodes the config’s PodSpecPaths names (set by a component definition’s spec.podSpecs, never authored): each is read as the spec of a v1 Pod and held to the refusals and the policy a Pod is, naming the node (go-kure/launcher#1705; ParsePodSpecPath reads a path, PodSpecBounds lists the classes). The config’s Markers (set by a definition’s spec.markers and spec.markerClasses, never authored) names the nodes that hold a secret, an image, a fetch URL, a replica count, a storage size, a volume array, resource requirements or a claim spec, and holds each to the check of its class (explicit-secret, the allowed registries and image level, the replica and storage maxima, host-path, the cpu and memory maxima for resources, the storage maximum for claimSpec; the last two read their node by the exact field names of the Kubernetes structure, decodeMarked), after the pod spec nodes; a policy that bounds a class the definition does not state refuses the object as marker-class-unstated (go-kure/launcher#1818; MarkerClasses, MarkerBounds). The config’s PolicyView (set by a component definition, never authored) edits the copy of the object that the pod spec and marker checks read, to what the API server will store: a definition sets it to apply its CRD’s defaults, so a default the author never wrote is held to the policy as written, while the emitted object, and the refusals an authored object meets whatever the policy, still read the object as authored (go-kure/launcher#1833).
persistentvolumePersistentVolumeKind-named PersistentVolume: the whole PersistentVolumeSpec, its volume sources included, strictly decoded. Cluster-scoped. A hostPath or local source and capacity.storage are held to environment policy — see below.
persistentvolumeclaimPersistentVolumeClaimKind-named claim: size, storageClassName, accessModes, volumeMode, selector, dataSourceRef, volumeName, volumeAttributesClassName. A workload mounts it with a pvc volume’s claimName — see below.
podPodKind-named bare Pod: the whole PodSpec less ephemeralContainers, priority and overhead, strictly decoded. Held to environment policy as a rendered Pod is; no default filled. The volumeMounts of every container and init container are held to the app.yaml mount rules (go-kure/launcher#1212). A lifecycle or probe on an init container without restartPolicy: Always is refused (go-kure/launcher#1237), and so is a lifecycle sleep below zero or longer than terminationGracePeriodSeconds (30 when unset; go-kure/launcher#1236). A container name used by more than one init or regular container is refused, naming both entries (go-kure/launcher#1253). Carries the app label, so traits and Services select it — see below.
poddisruptionbudgetPodDisruptionBudgetKind-named PodDisruptionBudget: the whole PodDisruptionBudgetSpec (minAvailable, maxUnavailable, selector, unhealthyPodEvictionPolicy), strictly decoded; no top-level field is required and the selector is the author’s, a defective match expression of it refused. No environment policy applies — see below.
podmonitorPodMonitorKind-named Prometheus operator PodMonitor: the whole PodMonitorSpec, strictly decoded; selector is required. The selector is the author’s. No environment policy applies and no capability is required — see below.
podtemplatePodTemplateKind-named PodTemplate: its one field, template, strictly decoded into PodTemplateSpec. The pod spec is held to what the pod kind holds its own to and to environment policy; activeDeadlineSeconds is allowed, no default filled. A container name used by more than one init or regular container of the template is refused, naming both entries (go-kure/launcher#1253). Stored, not run: no app label and not a trait target — see below.
postgresqlCNPG Cluster, Pooler, ObjectStore, Database, ScheduledBackupCloudNativePG database (backup/monitoring/pooling).
priorityclassPriorityClassKind-named PriorityClass: value (0 when unauthored), globalDefault, description, preemptionPolicy, strictly decoded. Cluster-scoped; no environment policy applies — see below.
prometheusPrometheusKind-named Prometheus operator Prometheus: the whole PrometheusSpec, strictly decoded, every field under its upstream name, externalLabels included; no top-level field is required. The operator runs the pods: image and thanos.image, replicas times shards, resources and thanos.resources, storage, containers, initContainers, volumes, securityContext and hostNetwork are held to the environment policy as the Alertmanager’s are, the deprecated baseImage, tag and sha are refused (the spec’s when not empty, an empty one writing nothing; the sidecar’s whenever set, the empty string included), and a literal bearerToken of remoteWrite[], remoteRead[] or apiserverConfig is refused under a policy that forbids explicit secrets. The pod count the operator runs, an unset replica or shard count read as 1, is held, not written. An image the operator chooses, for prometheus, its two reloaders or, where thanos is set, thanos-sidecar, is refused under a policy with allowed registries. No capability is required — see below.
prometheus-probeProbeKind-named Prometheus operator Probe: the whole ProbeSpec, strictly decoded; prober.url is required. The prober and the targets are the author’s. No environment policy applies and no capability is required — see below.
prometheusrulePrometheusRuleKind-named Prometheus operator PrometheusRule: the whole PrometheusRuleSpec (groups), strictly decoded; a group’s name and a rule’s expr are required. No environment policy applies and no capability is required — see below.
referencegrantReferenceGrantKind-named Gateway API ReferenceGrant: the whole ReferenceGrantSpec, strictly decoded; from and to are required, with the group, kind and namespace of a source and the group and kind of a target. No capability is required and no environment policy applies — see below.
replicasetReplicaSetKind-named bare ReplicaSet: the whole ReplicaSetSpec, strictly decoded; selector and template are required. The pod template is held to what the pod kind holds its spec to, less activeDeadlineSeconds, a container name used by more than one init or regular container of the template is refused (go-kure/launcher#1253), and it gains the app label; replicas and the template are held to environment policy, no default filled — see below.
replicationcontrollerReplicationControllerKind-named bare ReplicationController: the whole ReplicationControllerSpec, strictly decoded; template is required, selector (a plain label map) optional. The pod template and replicas are held as the replicaset kind’s are, activeDeadlineSeconds refused included and a repeated container name too (go-kure/launcher#1253), and the template gains the app label — see below.
replicationdestinationReplicationDestinationKind-named VolSync ReplicationDestination: the whole ReplicationDestinationSpec (trigger, the movers rsync, rsyncTLS, rclone and restic, external, paused), strictly decoded, with the policy checks of replicationsource. No top-level field is required and no capability is required — see below.
replicationsourceReplicationSourceKind-named VolSync ReplicationSource: the whole ReplicationSourceSpec (sourcePVC, trigger, the movers rsync, rsyncTLS, rclone, restic and syncthing, external, paused), strictly decoded; no top-level field is required. An authored capacity is held to the environment policy’s storage maximum, a mover’s cpu and memory to its maxima, and a mover’s hostProcess switch is refused unless privileged workloads are allowed. An rsync mover is held to the policy’s container capabilities for the seven the linked operator version adds to its container. No capability is required. Its object is of the kind the volsync trait builds — see below.
resourcequotaResourceQuotaKind-named ResourceQuota: the whole ResourceQuotaSpec (hard, scopes, scopeSelector), strictly decoded — see below.
resourcesetinputproviderResourceSetInputProviderKind-named Flux Operator ResourceSetInputProvider: the whole ResourceSetInputProviderSpec, strictly decoded; type is required, of an authored Secret reference its name and of a schedule its cron. A user or a password in url is refused under every policy and under none, and the host of url is held to the environment policy’s allowed registries, whatever the type. An ExternalArtifact provider’s selectors may list the ExternalArtifacts of another namespace or of every namespace (namespace), or of the namespaces a namespaceSelector picks by label, and nothing gates them or serviceAccountName. The API’s expression rules are not checked — see below.
roleRoleKind-named RBAC Role: the object’s own field (rules), strictly decoded; a rule’s verbs, apiGroups and resources are required, and nonResourceURLs are refused. Namespaced. Ungated: no capability and no environment-policy check restricts what a role grants — see below.
rolebindingRoleBindingKind-named RBAC RoleBinding: the object’s own fields (subjects; roleRef, required with its kind and name), strictly decoded; a subject’s kind and name are required. The names of the role and of the subjects are the author’s literals. Namespaced. Ungated: no capability and no environment-policy check restricts what a role grants — see below.
runtimeclassRuntimeClassKind-named RuntimeClass: handler (required), overhead, scheduling, strictly decoded. Cluster-scoped; no environment policy applies — see below.
secretSecretKind-named Secret: stringData, data, type, immutable. Every entry is emitted under data, base64-encoded and not encrypted. Refused under an environment policy that forbids explicit secrets. A workload reads it through a secret volume, envFrom or a secretKeyRef — see below.
secretstoreSecretStoreKind-named External Secrets Operator SecretStore: the whole SecretStoreSpec (provider, controller, retrySettings, refreshInterval, conditions), strictly decoded; provider with exactly one provider is required, and of that provider what the API requires. A credential written into the object is refused under an environment policy that forbids explicit secrets. No capability is required — see below.
serviceServiceKind-named Service in front of pods another component owns: selector, the full ports list (with nodePort and appProtocol), all four type values, clusterIP: None for a headless one, externalName, the traffic policies, session affinity, the IP families and the load-balancer fields. Emits nothing else — see below.
serviceaccountServiceAccountKind-named ServiceAccount: automountServiceAccountToken, imagePullSecrets. A workload names it with serviceAccountName — see below.
servicecidrServiceCIDRKind-named ServiceCIDR: the whole ServiceCIDRSpec (cidrs, required, at least one), strictly decoded. Cluster-scoped; no environment policy applies — see below.
servicemonitorServiceMonitorKind-named Prometheus operator ServiceMonitor: the whole ServiceMonitorSpec, strictly decoded; endpoints and selector are required. The selector is the author’s. No environment policy applies and no capability is required — see below.
statefulsetStatefulSetKind-named StatefulSet: the whole StatefulSetSpec, strictly decoded; selector and template are required. volumeClaimTemplates are raw PersistentVolumeClaim objects; serviceName names a governing service authored beside it. The pod template is held to what the pod kind holds its spec to, less activeDeadlineSeconds, and it gains the app label; a claim template that authors no spec.storageClassName gets the ClusterProfile pvc capability’s class; a class that is not a string is refused with an *oam.CapabilityError whose Capability is pvc. replicas, the template and each claim template’s storage request are held to environment policy, no default filled (go-kure/launcher#1629). A scaler builds it without spec.replicas. Emits no Service (go-kure/launcher#690). Declares one endpoint per port of template.spec.containers[0]. Breaking: the reshaped form is gone from the kind — see below.
storageclassStorageClassKind-named StorageClass: the object’s fields beside its identity (provisioner, required, parameters, reclaimPolicy, …), strictly decoded. Cluster-scoped; no environment policy applies — see below.
tcprouteTCPRouteKind-named Gateway API TCPRoute: the whole TCPRouteSpec, strictly decoded; rules and a rule’s backendRefs are required, with the name of a backend and the port of one that is a Service. An authored object, as the httproute kind is: no parent is synthesized from a capability, no NetworkPolicy allow rule is synthesized for it, no capability is required and no environment policy applies — see below.
thanosrulerThanosRulerKind-named Prometheus operator ThanosRuler: the whole ThanosRulerSpec, strictly decoded, with the spec’s labels (Prometheus external labels) published as externalLabels; no top-level field is required. The operator runs the pods: image, replicas, resources, storage, containers, initContainers, volumes and securityContext are held to the environment policy as the Alertmanager’s are, and a literal remoteWrite[].bearerToken under a policy that forbids explicit secrets. The replica count and memory request the operator fills where they are unset are held, not written. An image the operator chooses, for thanos-ruler or its config-reloader, is refused under a policy with allowed registries. No capability is required — see below.
tls-certificateCertificateHigher-level model over the certificate kind: the kind’s whole schema and checks, with secretName optional and derived as the component name followed by -tls when left out. See “Higher-level types over a kind”.
tlsrouteTLSRouteKind-named Gateway API TLSRoute: the whole TLSRouteSpec, strictly decoded; hostnames is required, and the rest as on a tcproute. An authored object on the same terms — see below.
udprouteUDPRouteKind-named Gateway API UDPRoute: the whole UDPRouteSpec, strictly decoded; required as on a tcproute, and an authored object on the same terms — see below.
validatingadmissionpolicyValidatingAdmissionPolicyKind-named ValidatingAdmissionPolicy: its ValidatingAdmissionPolicySpec, strictly decoded; matchConstraints with at least one rule and at least one of validations and auditAnnotations (published as an atLeastOne group) are required. It can deny the requests of any namespace its rules match, once bound. Served from Kubernetes 1.30. Cluster-scoped; only the environment policy’s object kind rules apply — see below.
validatingadmissionpolicybindingValidatingAdmissionPolicyBindingKind-named ValidatingAdmissionPolicyBinding: its ValidatingAdmissionPolicyBindingSpec, strictly decoded; policyName and at least one of validationActions are required, and a paramRef as on a mutatingadmissionpolicybinding. Neither the policy nor the parameter is resolved at build. Served from Kubernetes 1.30. Cluster-scoped; only the environment policy’s object kind rules apply — see below.
validatingwebhookconfigurationValidatingWebhookConfigurationKind-named ValidatingWebhookConfiguration: its webhooks, strictly decoded, required as on a mutatingwebhookconfiguration. The API server calls it to admit or deny the requests of any namespace its rules match. Cluster-scoped; only the environment policy’s object kind rules apply — see below.
vm-agentVMAgentKind-named VictoriaMetrics operator VMAgent (operator.victoriametrics.com/v1beta1, operator v0.76.0), the agent that scrapes targets and writes to remote storage: the whole VMAgentSpec, strictly decoded as vm-single’s spec is. remoteWrite is required. Namespaced; the environment policy holds what it holds of a vm-single, the claim templates, the hpa bounds, and refuses the operator’s ClusterRole where cluster-scoped objects are forbidden; see below.
vm-alertVMAlertKind-named VictoriaMetrics operator VMAlert (operator.victoriametrics.com/v1beta1, operator v0.76.0), the rule evaluator: the whole VMAlertSpec, strictly decoded as vm-single’s spec is. datasource is required. Namespaced; the environment policy holds what it holds of a vm-single; see below.
vm-singleVMSingleKind-named VictoriaMetrics operator VMSingle (operator.victoriametrics.com/v1beta1, operator v0.76.0), the single-node database the operator runs: the whole VMSingleSpec, strictly decoded into the base library’s types of the operator’s API (kure’s pkg/kubernetes/victoriametrics). Nothing is filled for the operator: a field on which an authored 0 or false differs from an absent one is a pointer, so it is written as authored. Namespaced; the environment policy holds replicaCount, hostNetwork, every image (image, configReloaderImage, vmBackup.image, each container’s), every cpu and memory block, the security context, volumes and the storage claim; see below.
volumeattributesclassVolumeAttributesClassKind-named VolumeAttributesClass: driverName and parameters (both required, parameters with at least one entry), strictly decoded. Cluster-scoped; no environment policy applies — see below.
webserviceDeployment, Service, ServiceAccount (+PVC)HTTP service with replicas, probes, env, volumes. Lowered to a same-name role-deployment, service and (unless serviceAccountName is authored) serviceaccount group plus a topology-spread trait (WebserviceRule) — see below.
workerDeployment, ServiceAccount (+PVC)Background workload (no Service/port). Lowered to a same-name role-deployment and (unless serviceAccountName is authored) serviceaccount group plus a topology-spread trait (WorkerRule) — see below.

Only the two role kinds, webservice and worker, emit a per-component ServiceAccount, and only when the component does not author serviceAccountName. The pod kinds (deployment, statefulset, daemonset, job, cronjob) emit no ServiceAccount and no claim of their own (go-kure/launcher#702). The raw deployment, statefulset, daemonset, job and cronjob also set no automountServiceAccountToken, so a pod with no account mounts the default account’s token, as the pod and replicaset kinds do; webservice and worker still switch it off. See “Pod-level properties” and “Referencing an existing claim” below.

Kind inventory

Every object the base library can construct, and how a document reaches it (go-kure/launcher#790). A row is one of the base library’s generated constructors (pkg/kubernetes/**/zz_generated_create.go in github.com/go-kure/kure), written <package directory>.Create<Kind>. Two tests hold the table to the code:

  • TestKindInventory_CoversEveryConstructor reads those files from the linked module and fails when a constructor has no row, a row has no constructor, or a row’s Kind cell is not the API version, kind and scope the constructor’s doc comment gives. A base-library bump that adds a kind, or moves one to another API version, therefore fails until the table says so.
  • TestKindInventory_MatchesCallSites holds the Status and Type columns to this package and ../traits: a kind row’s constructor is called here, a trait row’s there or here (a trait may build through this package, as configmap does), and a missing, held or not authorable row’s by neither. A kind or component row’s Type is a type a handler or lowering rule of this package declares contract metadata for, a trait row’s one of ../traits, so a row stops passing when its handler is removed.

Not held by a test: which handler makes the call, so a kind row passes while its Type has a handler and any component of this package calls its constructor; whether a component row’s constructor is called; the step from trait to kind, which the change that adds the kind component makes in the row; the Decode and Notes columns, checked for presence only; and code outside the two packages, which is not read.

Status is one of:

  • kind: a kind component projects the object; Type is its component type.
  • component: a component that is not a kind component emits it; Notes says why there is no kind component.
  • trait: a trait emits it and no component does; Type is the trait type.
  • missing: authorable, with no component of this package yet. go-kure/launcher#790 adds these group by group. Notes names the definition (pkg/oam/shipped) where one ships the kind.
  • held: authorable, with no component until something named is in place; Notes gives the reason. A component for it would not do what the kind is authored for, or would act where no check of the build reaches.
  • not authorable: no component is planned; Notes gives the reason.

Cluster-wide admission and API registration (go-kure/launcher#943). The ValidatingWebhookConfiguration, MutatingWebhookConfiguration, APIService, ValidatingAdmissionPolicy, ValidatingAdmissionPolicyBinding, MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding kinds are kind rows. No dimension of the environment policy reads what they match, where they send a request or what a policy checks. They are gated as every emitted object is, by the policy’s object kind rules (ObjectKindPolicy): an environment that must not emit them forbids their group, their kind, or cluster-scoped objects, and the build refuses them on every path. What they do once applied is out of the build’s reach, and each kind’s entry states it:

  • They act on every other document’s objects, or on the API itself. The API server applies a webhook configuration, or a bound admission policy, to the requests its rules match, in any namespace and from any author; an APIService hands a group and version of the API to the Service it names.
  • A mutating webhook or a mutating admission policy changes objects after the build, so what the build checked need not hold of the object that is stored.
  • Where they send a request is not resolved at build: a webhook’s clientConfig (a URL or a Service) and an APIService’s service are written as authored.
  • What a binding names is not resolved at build: neither the policy of its policyName nor the parameter resources of its paramRef. A policy does nothing until a binding names it.
  • CEL is compiled by the API server, not at build: a match condition’s expression, and an admission policy’s validations, audit annotations, variables and mutations.
  • An admission policy kind is served from a Kubernetes version: ValidatingAdmissionPolicy and its binding at admissionregistration.k8s.io/v1 from 1.30, MutatingAdmissionPolicy and its binding from 1.36. A cluster below that refuses the object at apply. The build does not check it, even for a ClusterProfile that states spec.kubernetesVersion, which reaches only the feature-gated properties; each kind’s schema and entry state it.

An RBAC grant, which launcher also emits, differs: it names its subjects, and the document that makes the grant states it. These kinds act on objects no document of the build names. What manifests, passthrough and template delivery do with such a document is said in their own entries.

Decode is how the properties become the object: hand-written parser (a schema and parser this package or ../traits maintains) or a strict decode into the named upstream type, where an unknown or wrongly typed key is an error at every depth the decoder reaches. It does not reach inside an upstream type that unmarshals itself, where an unknown nested key is dropped unless the row says the type is checked separately, as the CiliumNetworkPolicy row does.

ConstructorKindStatusTypeDecodeNotes
kubernetes.CreateAPIServiceapiregistration.k8s.io/v1 APIService (cluster-scoped)kindapiservicestrict decode of APIServiceSpecgroup, version, groupPriorityMinimum and versionPriority must be written, and a service its namespace and name. The object is named after the component unless objectName names it, and the kind refuses any name but <version>.<group>, which the API requires. It hands a group and version of the API to the Service it names, which is not resolved at build. The priorities’ ranges, the port and how caBundle and insecureSkipTLSVerify combine are left to the API server. Only the object kind rules of the environment policy apply. See “Cluster-wide admission and API registration” above.
kubernetes.CreateBackendTLSPolicygateway.networking.k8s.io/v1 BackendTLSPolicykindbackendtlspolicystrict decode of BackendTLSPolicySpectargetRefs, at least one, and validation with its hostname must be written; of a target, a CA certificate reference and a subject alternative name that are authored, the fields the API requires that the type would write empty. The hostnames it validates are not held to the allowed registries. No capability is required. No environment policy applies.
kubernetes.CreateBindingv1 Bindingnot authorable--A request body for a pod’s binding subresource, not a stored object.
kubernetes.CreateCSIDriverstorage.k8s.io/v1 CSIDriver (cluster-scoped)kindcsidriverstrict decode of CSIDriverSpecThe object’s name, the component’s or its objectName, is the CSI driver’s name. The API documents a limit of 63 characters for it and the API server does not hold the object to that limit. Its labels and annotations are the labels and annotations properties. No environment policy applies.
kubernetes.CreateCSINodestorage.k8s.io/v1 CSINode (cluster-scoped)not authorable--Written by the kubelet for the CSI drivers on its node.
kubernetes.CreateCSIStorageCapacitystorage.k8s.io/v1 CSIStorageCapacitynot authorable--Written by a CSI driver’s provisioner.
kubernetes.CreateClusterRolerbac.authorization.k8s.io/v1 ClusterRole (cluster-scoped)kindclusterrolestrict decode of the object, less kind, apiVersion and metadataUngated: no capability and no environment-policy check restricts what a role grants. A rule’s verbs must be written, and either its apiGroups and resources or its nonResourceURLs; an aggregationRule needs a selector. The rbac trait emits one too, through its own hand-written parser.
kubernetes.CreateClusterRoleBindingrbac.authorization.k8s.io/v1 ClusterRoleBinding (cluster-scoped)kindclusterrolebindingstrict decode of the object, less kind, apiVersion and metadataUngated: no capability and no environment-policy check restricts what a role grants. roleRef with its kind and name must be written, a subject’s kind and name, and a ServiceAccount subject’s namespace. The names are the author’s literals. The rbac trait emits one too, through its own hand-written parser.
kubernetes.CreateComponentStatusv1 ComponentStatus (cluster-scoped)not authorable--Read-only: the API server computes it.
kubernetes.CreateConfigMapv1 ConfigMapkindconfigmaphand-written parserThe configmap trait builds through the same path.
kubernetes.CreateControllerRevisionapps/v1 ControllerRevisionnot authorable--Written by the StatefulSet and DaemonSet controllers.
kubernetes.CreateCronJobbatch/v1 CronJobkindcronjobstrict decode of CronJobSpec-
kubernetes.CreateCustomResourceDefinitionapiextensions.k8s.io/v1 CustomResourceDefinition (cluster-scoped)componentcrdthe manifest parser, CustomResourceDefinition documents onlyThe stated exception: an application takes its CRDs from upstream files (inline or url), so no kind component projects the spec.
kubernetes.CreateDaemonSetapps/v1 DaemonSetkinddaemonsetstrict decode of DaemonSetSpec, as replicaset-
kubernetes.CreateDeploymentapps/v1 Deploymentkinddeploymentstrict decode of DeploymentSpec, as replicasetwebservice and worker build theirs through a hand-written parser of their own, as the member role-deployment, which no document authors.
kubernetes.CreateEndpointSlicediscovery.k8s.io/v1 EndpointSlicekindendpointslicestrict decode of the object, less kind, apiVersion and metadataA slice belongs to a Service only through its kubernetes.io/service-name label, authored under labels as a literal that does not follow the Service’s objectName. addressType and an endpoint’s addresses must be written. The addresses and FQDNs of its endpoints are not artifact sources. No environment policy applies.
kubernetes.CreateEndpointsv1 Endpointsnot authorable--Not offered: deprecated upstream in favour of EndpointSlice.
kubernetes.CreateEventv1 Eventnot authorable--A record the system writes at run time.
kubernetes.CreateEvictionpolicy/v1 Evictionnot authorable--A request body for a pod’s eviction subresource, not a stored object.
kubernetes.CreateGRPCRoutegateway.networking.k8s.io/v1 GRPCRoutekindgrpcroutestrict decode of GRPCRouteSpecOn the httproute kind’s recipe: nothing required or filled, no environment policy, parent and backend references carried as authored, their namespaces included. The API requires no rule, backend or hostname of a GRPCRoute, as of an HTTPRoute, unlike the TCP, UDP and TLS routes. No type under GRPCRouteSpec unmarshals itself, so the decode reaches every depth.
kubernetes.CreateGatewaygateway.networking.k8s.io/v1 Gatewaykindgatewaystrict decode of GatewaySpecgatewayClassName and listeners must be written, and of a listener its name, port and protocol; of what is authored below them, the fields the API requires that the type would write empty. defaultScope is an experimental-channel field. The pods a controller starts for a Gateway are not the object’s to size. No capability is required: the Gateway an httproute trait takes from a capability is not this component. No environment policy applies.
kubernetes.CreateGatewayClassgateway.networking.k8s.io/v1 GatewayClass (cluster-scoped)kindgatewayclassstrict decode of GatewayClassSpeccontrollerName must be written, and of a parametersRef that is authored its group, kind and name. No capability is required. No environment policy applies.
kubernetes.CreateHTTPRoutegateway.networking.k8s.io/v1 HTTPRoutekindhttproutestrict decode of HTTPRouteSpecNo type under HTTPRouteSpec unmarshals itself, so the decode reaches every depth. The httproute trait, which expose lowers onto, builds its own HTTPRoute with a hand-written parser. Only the trait feeds the NetworkPolicy synthesis, takes its parent from a capability and is held to the policy’s capability lists.
kubernetes.CreateHorizontalPodAutoscalerautoscaling/v2 HorizontalPodAutoscalerkindhorizontalpodautoscalerstrict decode of HorizontalPodAutoscalerSpecscaleTargetRef and maxReplicas must be written. maxReplicas is held to the environment policy’s replica maximum. The scaler trait emits one for its workload too, through its own parser.
kubernetes.CreateIPAddressnetworking.k8s.io/v1 IPAddress (cluster-scoped)not authorable--Allocated by the API server for a Service.
kubernetes.CreateIngressnetworking.k8s.io/v1 Ingresskindingressstrict decode of IngressSpecThe ingress trait, which expose lowers onto, builds its own Ingress with a hand-written parser. Only the trait feeds the NetworkPolicy synthesis and is held to the platform’s hostname constraint and the policy’s capability lists.
kubernetes.CreateIngressClassnetworking.k8s.io/v1 IngressClass (cluster-scoped)kindingressclassstrict decode of IngressClassSpecThe object is named after the component unless objectName names it. Its labels and annotations are the labels and annotations properties, the default-class annotation (ingressclass.kubernetes.io/is-default-class) included. controller must be written. No environment policy applies.
kubernetes.CreateJobbatch/v1 Jobkindjobstrict decode of JobSpec-
kubernetes.CreateLeasecoordination.k8s.io/v1 Leasenot authorable--Written at run time by its holder: a leader-election client, or the kubelet for its node’s heartbeat.
kubernetes.CreateLimitRangev1 LimitRangekindlimitrangestrict decode of LimitRangeSpec-
kubernetes.CreateListenerSetgateway.networking.k8s.io/v1 ListenerSetkindlistenersetstrict decode of ListenerSetSpecparentRef with its name and listeners, at least one, must be written, and of each listener its name, port and protocol, as on a Gateway’s. No capability is required. No environment policy applies.
kubernetes.CreateMutatingAdmissionPolicyadmissionregistration.k8s.io/v1 MutatingAdmissionPolicy (cluster-scoped)kindmutatingadmissionpolicystrict decode of MutatingAdmissionPolicySpecAs the validatingadmissionpolicy row for matchConstraints, paramKind, match conditions and variables, its rules taking only CREATE, UPDATE and CONNECT; at least one of mutations must be written, each with its patchType and, for ApplyConfiguration or JSONPatch, the patch of that type with its expression, and reinvocationPolicy, which the API server does not default. It changes objects of any namespace after the build, so what the build checked need not hold of what is stored. Served from Kubernetes 1.36. Only the object kind rules of the environment policy apply. See “Cluster-wide admission and API registration” above.
kubernetes.CreateMutatingAdmissionPolicyBindingadmissionregistration.k8s.io/v1 MutatingAdmissionPolicyBinding (cluster-scoped)kindmutatingadmissionpolicybindingstrict decode of MutatingAdmissionPolicyBindingSpecAs the validatingadmissionpolicybinding row, without validationActions. It puts a MutatingAdmissionPolicy into effect. Served from Kubernetes 1.36. See “Cluster-wide admission and API registration” above.
kubernetes.CreateMutatingWebhookConfigurationadmissionregistration.k8s.io/v1 MutatingWebhookConfiguration (cluster-scoped)kindmutatingwebhookconfigurationstrict decode of the object, less kind, apiVersion and metadataAs the validatingwebhookconfiguration row, and it changes objects of any namespace after the build, so what the build checked need not hold of what is stored. reinvocationPolicy is written as authored. See “Cluster-wide admission and API registration” above.
kubernetes.CreateNamespacev1 Namespace (cluster-scoped)kindnamespacestrict decode of NamespaceSpecThe component name is the Namespace’s name. Its labels and annotations are the labels and annotations properties.
kubernetes.CreateNetworkPolicynetworking.k8s.io/v1 NetworkPolicykindnetworkpolicystrict decode of NetworkPolicySpecNo type under NetworkPolicySpec unmarshals itself except intstr.IntOrString (a port), a scalar with no nested key to drop. The networkpolicy trait builds its own NetworkPolicy with a hand-written parser and scopes it to its component’s pods; the kind selects what the author wrote. The transform’s NetworkPolicy synthesis in pkg/oam emits NetworkPolicies of its own and reads neither.
kubernetes.CreateNodev1 Node (cluster-scoped)not authorable--Registered by the kubelet.
kubernetes.CreatePersistentVolumev1 PersistentVolume (cluster-scoped)kindpersistentvolumestrict decode of PersistentVolumeSpecHeld to environment policy on every path that produces one.
kubernetes.CreatePersistentVolumeClaimv1 PersistentVolumeClaimkindpersistentvolumeclaimhand-written parserThe pvc trait builds through the same path.
kubernetes.CreatePodv1 Podkindpodstrict decode of PodSpecHeld to environment policy by the check the rendered paths run on a Pod; ephemeralContainers, priority and overhead refused.
kubernetes.CreatePodDisruptionBudgetpolicy/v1 PodDisruptionBudgetkindpoddisruptionbudgetstrict decode of PodDisruptionBudgetSpecNo top-level field is required; a defective match expression of selector is refused. No environment policy applies. The scaler trait emits one for its workload too (enablePDB), through its own parser.
kubernetes.CreatePodTemplatev1 PodTemplatekindpodtemplatestrict decode of the object’s template (PodTemplateSpec)Held to environment policy by the check the rendered paths run on a PodTemplate; the pod spec is held to the pod kind’s refusals, and activeDeadlineSeconds is allowed. Stored, not run: no app label, not a trait target.
kubernetes.CreatePriorityClassscheduling.k8s.io/v1 PriorityClass (cluster-scoped)kindpriorityclassstrict decode of the object, less kind, apiVersion and metadataThe object is named after the component unless objectName names it. Its labels and annotations are the labels and annotations properties. An unauthored value is emitted as 0. No environment policy applies.
kubernetes.CreateRangeAllocationv1 RangeAllocation (cluster-scoped)not authorable--The API server’s own allocation record.
kubernetes.CreateReferenceGrantgateway.networking.k8s.io/v1 ReferenceGrantkindreferencegrantstrict decode of ReferenceGrantSpecfrom and to must be written, and of a source its group, kind and namespace, of a target its group and kind. The grant is emitted in the build namespace, which is the namespace it allows references into. No capability is required. No environment policy applies.
kubernetes.CreateReplicaSetapps/v1 ReplicaSetkindreplicasetstrict decode of ReplicaSetSpecHeld to environment policy by the check the rendered paths run on a ReplicaSet; the pod template is held to the pod kind’s refusals, activeDeadlineSeconds is refused, and the template gains the app label.
kubernetes.CreateReplicationControllerv1 ReplicationControllerkindreplicationcontrollerstrict decode of ReplicationControllerSpecHeld to environment policy by the check the rendered paths run on a ReplicationController; the pod template is held as the replicaset kind’s is, activeDeadlineSeconds is refused, and the template gains the app label. selector is optional.
kubernetes.CreateResourceQuotav1 ResourceQuotakindresourcequotastrict decode of ResourceQuotaSpec-
kubernetes.CreateRolerbac.authorization.k8s.io/v1 Rolekindrolestrict decode of the object, less kind, apiVersion and metadataUngated: no capability and no environment-policy check restricts what a role grants. A rule’s verbs, apiGroups and resources must be written; nonResourceURLs are refused. The rbac trait emits one too, through its own hand-written parser.
kubernetes.CreateRoleBindingrbac.authorization.k8s.io/v1 RoleBindingkindrolebindingstrict decode of the object, less kind, apiVersion and metadataUngated: no capability and no environment-policy check restricts what a role grants. roleRef with its kind and name must be written, and a subject’s kind and name. The names are the author’s literals. The rbac trait emits one too, through its own hand-written parser.
kubernetes.CreateRuntimeClassnode.k8s.io/v1 RuntimeClass (cluster-scoped)kindruntimeclassstrict decode of the object, less kind, apiVersion and metadataThe object is named after the component unless objectName names it. Its labels and annotations are the labels and annotations properties. No environment policy applies.
kubernetes.CreateSecretv1 Secretkindsecrethand-written parserThe secret trait builds through the same path. The helm component’s secretValues synthesizes the trait. Refused under a policy that forbids explicit secrets, on either path.
kubernetes.CreateServicev1 Servicekindservicehand-written parser-
kubernetes.CreateServiceAccountv1 ServiceAccountkindserviceaccounthand-written parser-
kubernetes.CreateServiceCIDRnetworking.k8s.io/v1 ServiceCIDR (cluster-scoped)kindservicecidrstrict decode of ServiceCIDRSpecThe object is named after the component unless objectName names it. Its labels and annotations are the labels and annotations properties. At least one of cidrs must be written. No environment policy applies.
kubernetes.CreateStatefulSetapps/v1 StatefulSetkindstatefulsetstrict decode of StatefulSetSpec, as replicasetA claim template is a raw PersistentVolumeClaim; the pvc capability’s storage class fills one that authors none.
kubernetes.CreateStorageClassstorage.k8s.io/v1 StorageClass (cluster-scoped)kindstorageclassstrict decode of the object, less kind, apiVersion and metadataThe object is named after the component unless objectName names it. Its labels and annotations are the labels and annotations properties, the default-class annotation (storageclass.kubernetes.io/is-default-class) included. No environment policy applies.
kubernetes.CreateTCPRoutegateway.networking.k8s.io/v1 TCPRoutekindtcproutestrict decode of TCPRouteSpecNo type under TCPRouteSpec unmarshals itself, so the decode reaches every depth. The kind refuses a route without rules, a rule without backendRefs and a Service backend without its port, which the API server refuses too; of a parent and a backend that are authored, the name must be written. A parent and a backend of another namespace are written as authored, as the httproute kind writes them. No capability is required. No environment policy applies.
kubernetes.CreateTLSRoutegateway.networking.k8s.io/v1 TLSRoutekindtlsroutestrict decode of TLSRouteSpecAs the tcproute row, and the kind refuses a route without hostnames too, which the API requires of a TLSRoute. The host names are not held to the allowed registries, and their form is left to the API server.
kubernetes.CreateUDPRoutegateway.networking.k8s.io/v1 UDPRoutekindudproutestrict decode of UDPRouteSpecAs the tcproute row: the decode reaches every depth, the kind refuses a route without rules, a rule without backendRefs and a Service backend without its port, and a parent and a backend of another namespace are written as authored. No capability is required. No environment policy applies.
kubernetes.CreateValidatingAdmissionPolicyadmissionregistration.k8s.io/v1 ValidatingAdmissionPolicy (cluster-scoped)kindvalidatingadmissionpolicystrict decode of ValidatingAdmissionPolicySpecThe object is named after the component unless objectName names it. matchConstraints must be written with at least one rule, and a rule names at least one operation, API group, API version and resource; at least one of validations and auditAnnotations; a validation its expression, an audit annotation its key and valueExpression, a match condition and a variable their name and expression, and an authored paramKind its apiVersion and kind; a selector’s match expression is checked as every selector’s is. Once bound, it can deny writes for the whole cluster. CEL is compiled by the API server, and the form of every other value (the enumerations, names and their uniqueness) is left to it. Served from Kubernetes 1.30. Only the object kind rules of the environment policy apply. See “Cluster-wide admission and API registration” above.
kubernetes.CreateValidatingAdmissionPolicyBindingadmissionregistration.k8s.io/v1 ValidatingAdmissionPolicyBinding (cluster-scoped)kindvalidatingadmissionpolicybindingstrict decode of ValidatingAdmissionPolicyBindingSpecpolicyName and at least one of validationActions must be written; an authored paramRef holds exactly one of name and selector, and its parameterNotFoundAction; an authored matchResources is checked as a policy’s matchConstraints, without requiring a rule. It puts a ValidatingAdmissionPolicy into effect. Neither the policy nor the parameter is resolved at build. Served from Kubernetes 1.30. Only the object kind rules of the environment policy apply. See “Cluster-wide admission and API registration” above.
kubernetes.CreateValidatingWebhookConfigurationadmissionregistration.k8s.io/v1 ValidatingWebhookConfiguration (cluster-scoped)kindvalidatingwebhookconfigurationstrict decode of the object, less kind, apiVersion and metadataThe object is named after the component unless objectName names it. A webhook’s name, clientConfig, sideEffects and at least one of admissionReviewVersions must be written; clientConfig holds exactly one of url and service, and a service its namespace and name; a rule names at least one operation, API group, API version and resource; a match condition its name and expression; a selector’s match expression is checked as every selector’s is. The API server calls the webhooks on the requests of any namespace their rules match. Neither the URL nor the Service is resolved at build, and a match condition’s CEL expression is compiled by the API server. The form of every other value (a webhook’s name, the enumerations, the timeout’s range) is left to the API server. Only the object kind rules of the environment policy apply. See “Cluster-wide admission and API registration” above.
kubernetes.CreateVolumeAttachmentstorage.k8s.io/v1 VolumeAttachment (cluster-scoped)not authorable--Written by the attach/detach controller.
kubernetes.CreateVolumeAttributesClassstorage.k8s.io/v1 VolumeAttributesClass (cluster-scoped)kindvolumeattributesclassstrict decode of the object, less kind, apiVersion and metadataThe object is named after the component unless objectName names it. Its labels and annotations are the labels and annotations properties. driverName and at least one of parameters must be written. No environment policy applies.
certmanager.CreateCertificatecert-manager.io/v1 Certificatekindcertificatestrict decode of CertificateSpecIts labels and annotations are the labels and annotations properties. secretName and issuerRef with its name must be written. A keystore password in the object is refused under a policy that forbids explicit secrets. No capability is required. The Secret secretName names is the one the late-maker check sees it make (go-kure/launcher#1086). The certificate trait builds a Certificate for a workload through the same constructor, from a hand-written parser.
certmanager.CreateCertificateRequestcert-manager.io/v1 CertificateRequestnot authorable--A one-shot request cert-manager creates for a Certificate.
certmanager.CreateChallengeacme.cert-manager.io/v1 Challengenot authorable--Created by cert-manager’s ACME issuer.
certmanager.CreateClusterIssuercert-manager.io/v1 ClusterIssuer (cluster-scoped)kindclusterissuerstrict decode of IssuerSpecIts labels and annotations are the labels and annotations properties. No top-level field must be written; of an issuer type that is authored, the fields the API requires that the type would write empty. The cpu and memory of an ACME HTTP01 solver’s pod template are held to the policy’s maxima. No capability is required.
certmanager.CreateIssuercert-manager.io/v1 Issuerkindissuerstrict decode of IssuerSpecAs clusterissuer, in the build namespace. Its labels and annotations are the labels and annotations properties.
certmanager.CreateOrderacme.cert-manager.io/v1 Ordernot authorable--Created by cert-manager’s ACME issuer.
cilium.CreateCiliumBGPAdvertisementcilium.io/v2 CiliumBGPAdvertisement (cluster-scoped)kindcilium-bgpadvertisementstrict decode of CiliumBGPAdvertisementSpecThe object is named after the component unless objectName names it. Its labels and annotations are the labels and annotations properties; a peer configuration selects it by its labels. The CRD’s five rules on an entry’s type are checked. No environment policy applies.
cilium.CreateCiliumBGPClusterConfigcilium.io/v2 CiliumBGPClusterConfig (cluster-scoped)kindcilium-bgpclusterconfigstrict decode of CiliumBGPClusterConfigSpecThe object is named after the component unless objectName names it. Its labels and annotations are the labels and annotations properties. A peer’s address is not held to the allowed registries. No environment policy applies.
cilium.CreateCiliumBGPNodeConfigcilium.io/v2 CiliumBGPNodeConfig (cluster-scoped)not authorable--Generated by the Cilium operator from a CiliumBGPClusterConfig.
cilium.CreateCiliumBGPNodeConfigOverridecilium.io/v2 CiliumBGPNodeConfigOverride (cluster-scoped)kindcilium-bgpnodeconfigoverridestrict decode of CiliumBGPNodeConfigOverrideSpecThe object overrides the CiliumBGPNodeConfig of the same name: objectName sets it where the component name is not that name. Its labels and annotations are the labels and annotations properties. No environment policy applies.
cilium.CreateCiliumBGPPeerConfigcilium.io/v2 CiliumBGPPeerConfig (cluster-scoped)kindcilium-bgppeerconfigstrict decode of CiliumBGPPeerConfigSpecThe object is named after the component unless objectName names it. Its labels and annotations are the labels and annotations properties. The CRD’s rule on timers is checked on its two fields as authored or as the CRD defaults them. authSecretRef names a Secret and holds no secret. No environment policy applies.
cilium.CreateCiliumCIDRGroupcilium.io/v2 CiliumCIDRGroup (cluster-scoped)kindcilium-cidrgroupstrict decode of CiliumCIDRGroupSpecThe object is named after the component unless objectName names it, and a Cilium network policy refers to it by that name. Its labels and annotations are the labels and annotations properties; a policy selects a group by its labels. No environment policy applies.
cilium.CreateCiliumClusterwideEnvoyConfigcilium.io/v2 CiliumClusterwideEnvoyConfig (cluster-scoped)held--As the CiliumEnvoyConfig row, which shares its spec type, and cluster-scoped: its resources are raw Envoy configuration no build-time rule can read, and its services forward the traffic of the Services they name to an Envoy listener (go-kure/launcher#790).
cilium.CreateCiliumClusterwideNetworkPolicycilium.io/v2 CiliumClusterwideNetworkPolicy (cluster-scoped)kindcilium-clusterwidenetworkpolicystrict decode of spec and specs into the Cilium RuleThe decode and the unknown-key check of the cilium-networkpolicy kind (builtin.UnknownCiliumKeyPath). A rule selects endpoints or nodes, exactly one of the two. The fields a rule requires are read from the CRD of the linked module. Its labels and annotations are the labels and annotations properties. No environment policy applies.
cilium.CreateCiliumEgressGatewayPolicycilium.io/v2 CiliumEgressGatewayPolicy (cluster-scoped)kindcilium-egressgatewaypolicystrict decode of CiliumEgressGatewayPolicySpecThe object is named after the component unless objectName names it. Its labels and annotations are the labels and annotations properties. The CRD’s rule on egressIP is a value rule and the API server’s. No address or CIDR is held to the allowed registries. No environment policy applies.
cilium.CreateCiliumEndpointcilium.io/v2 CiliumEndpointnot authorable--Written by the Cilium agent.
cilium.CreateCiliumEnvoyConfigcilium.io/v2 CiliumEnvoyConfigheld--Its resources are raw Envoy configuration, in the API’s words “Envoy xDS resources” (listeners, routes, clusters, endpoints and TLS secrets), each an opaque Any the CRD keeps unpruned, and its services forward the traffic of the Services they name to an Envoy listener. No build-time rule can read that configuration: the kind would be a way round every rule a policy holds a route, a network policy or a Secret to (go-kure/launcher#790).
cilium.CreateCiliumIdentitycilium.io/v2 CiliumIdentity (cluster-scoped)not authorable--Written by Cilium when it allocates an identity.
cilium.CreateCiliumLoadBalancerIPPoolcilium.io/v2 CiliumLoadBalancerIPPool (cluster-scoped)kindcilium-loadbalancerippoolstrict decode of CiliumLoadBalancerIPPoolSpecThe object is named after the component unless objectName names it. Its labels and annotations are the labels and annotations properties. An authored disabled: false is the API’s default and is not written. No environment policy applies.
cilium.CreateCiliumLocalRedirectPolicycilium.io/v2 CiliumLocalRedirectPolicykindcilium-localredirectpolicystrict decode of CiliumLocalRedirectPolicySpecThe object is named after the component unless objectName names it. Its labels and annotations are the labels and annotations properties. The CRD’s choice of one frontend matcher is checked; its three rules against a change are the API server’s. No environment policy applies.
cilium.CreateCiliumNetworkPolicycilium.io/v2 CiliumNetworkPolicykindcilium-networkpolicystrict decode of spec and specs into the Cilium RuleThe endpoint selector, the ICMP field and the rule label unmarshal themselves and drop an unknown key; the kind refuses one by its path at every position that holds any of them (builtin.UnknownCiliumKeyPath), and a test holds the list of such types to the Cilium API. The cilium-networkpolicy trait builds its own CiliumNetworkPolicy from one rule’s endpointSelector, ingress and egress, with the same decode, the same check and the kind’s required list cut to those three fields.
cilium.CreateCiliumNodecilium.io/v2 CiliumNode (cluster-scoped)not authorable--Written by the Cilium agent for its node.
cilium.CreateCiliumNodeConfigcilium.io/v2 CiliumNodeConfigkindcilium-nodeconfigstrict decode of CiliumNodeConfigSpecThe object is named after the component unless objectName names it. Its labels and annotations are the labels and annotations properties. The keys and the values of defaults are not checked. No environment policy applies.
cnpg.CreateBackuppostgresql.cnpg.io/v1 Backupkindcnpg-backupstrict decode of BackupSpecThe object is named after the component unless objectName names it. Its labels and annotations are the labels and annotations properties. A one-shot request: the API refuses every change of its spec, and applied again it runs nothing. No environment policy applies.
cnpg.CreateClusterpostgresql.cnpg.io/v1 Clusterkindcnpg-clusterstrict decode of ClusterSpecpostgresql lowers onto it.
cnpg.CreateClusterImageCatalogpostgresql.cnpg.io/v1 ClusterImageCatalog (cluster-scoped)kindcnpg-clusterimagecatalogstrict decode of ImageCatalogSpecAs cnpg-imagecatalog, with no namespace. Its labels and annotations are the labels and annotations properties.
cnpg.CreateDatabasepostgresql.cnpg.io/v1 Databasekindcnpg-databasestrict decode of DatabaseSpecpostgresql lowers onto it.
cnpg.CreateDatabaseRolepostgresql.cnpg.io/v1 DatabaseRolekindcnpg-databaserolestrict decode of DatabaseRoleSpecThe object is named after the component unless objectName names it. Its labels and annotations are the labels and annotations properties. The CRD’s eight rules on a new object are checked; its two against a change are the API server’s. passwordSecret names a Secret and holds no secret. No environment policy applies.
cnpg.CreateFailoverQuorumpostgresql.cnpg.io/v1 FailoverQuorumnot authorable--Written by the CloudNativePG operator.
cnpg.CreateImageCatalogpostgresql.cnpg.io/v1 ImageCatalogkindcnpg-imagecatalogstrict decode of ImageCatalogSpecThe object is named after the component unless objectName names it, and a Cluster refers to it by that name. Its labels and annotations are the labels and annotations properties. The CRD’s two rules (one image per major version, one component image per key) are checked. Every image it names is held to the policy’s allowed registries.
cnpg.CreateObjectStorebarmancloud.cnpg.io/v1 ObjectStorekindcnpg-objectstorestrict decode of ObjectStoreSpecpostgresql lowers onto it.
cnpg.CreatePoolerpostgresql.cnpg.io/v1 Poolerkindcnpg-poolerstrict decode of PoolerSpecpostgresql lowers onto it.
cnpg.CreatePublicationpostgresql.cnpg.io/v1 Publicationkindcnpg-publicationstrict decode of PublicationSpecThe object is named after the component unless objectName names it. Its labels and annotations are the labels and annotations properties. The CRD’s three rules on a target are checked; its four against a change are the API server’s. No environment policy applies.
cnpg.CreateScheduledBackuppostgresql.cnpg.io/v1 ScheduledBackupkindcnpg-scheduledbackupstrict decode of ScheduledBackupSpecThe object is named after the component unless objectName names it. Its labels and annotations are the labels and annotations properties. The schedule is not parsed (postgresql, which lowers onto it, parses its backup.schedules). No environment policy applies.
cnpg.CreateSubscriptionpostgresql.cnpg.io/v1 Subscriptionkindcnpg-subscriptionstrict decode of SubscriptionSpecThe object is named after the component unless objectName names it. Its labels and annotations are the labels and annotations properties. The CRD’s three rules refuse a change and are the API server’s. No environment policy applies.
externalsecrets.CreateClusterExternalSecretexternal-secrets.io/v1 ClusterExternalSecret (cluster-scoped)kindclusterexternalsecretstrict decode of ClusterExternalSecretSpecThe object is named after the component unless objectName names it. Its labels and annotations are the labels and annotations properties; those of the ExternalSecrets it creates are externalSecretMetadata. externalSecretSpec must be written, with what an externalsecret requires. externalSecretSpec.target.manifest is held to the environment policy as on an externalsecret.
externalsecrets.CreateClusterSecretStoreexternal-secrets.io/v1 ClusterSecretStore (cluster-scoped)kindclustersecretstorestrict decode of SecretStoreSpecThe object is named after the component unless objectName names it. Its labels and annotations are the labels and annotations properties. provider must be written with exactly one provider; of that provider, the fields the API requires that the type would write empty, and the four it would default. A credential written as a value, and the data of the fake provider, are refused under a policy that forbids explicit secrets. No capability is required.
externalsecrets.CreateExternalSecretexternal-secrets.io/v1 ExternalSecretkindexternalsecretstrict decode of ExternalSecretSpecIts labels and annotations are the labels and annotations properties. No top-level field must be written. A generator named as the source of one key of data is refused. A target.manifest whose apiVersion is no API version is refused. A target.manifest of a kind the environment policy checks (a workload, a claim, a PersistentVolume, a HorizontalPodAutoscaler) is refused, and a core Secret there under a policy that forbids explicit secrets. No capability is required. Its target Secret (target.name, else the object’s name), under a creationPolicy that creates it and with no target.manifest, is the one the late-maker check sees it make (go-kure/launcher#1086). The external-secret trait builds an ExternalSecret for a workload through the same constructor, from a hand-written parser.
externalsecrets.CreateSecretStoreexternal-secrets.io/v1 SecretStorekindsecretstorestrict decode of SecretStoreSpecAs clustersecretstore, in the build namespace. Its labels and annotations are the labels and annotations properties.
fluxcd.CreateAlertnotification.toolkit.fluxcd.io/v1 Alertkindfluxcd-alertstrict decode of AlertSpecproviderRef with its name and eventSources must be written, and of a source its kind and name: the fields the linked Go source marks required, not held to a CRD. A source’s namespace is written as authored. It lands in the Flux namespace when one is set. No environment policy applies. The type name carries a prefix: an alert, in this package, also reads as an alerting rule.
fluxcd.CreateArtifactGeneratorsource.extensions.fluxcd.io/v1beta1 ArtifactGeneratorkindartifactgeneratorstrict decode of ArtifactGeneratorSpecsources and artifacts must be written; of a source its alias, kind and name, of an artifact its name and copy, of a copy its from and to: the fields the linked Go source marks required, not held to a CRD. A source’s namespace, an artifact’s namespace and serviceAccountName are written as authored. The API’s expression rules, which hold an artifact’s name to an object name and its namespace to a namespace name where no pathPattern is set, are not checked. Of the five fields the v2.3 source-watcher API adds, four are written as authored, and managedNamespaces is refused whatever its value: it hands the controller the lifecycle of cluster-scoped Namespaces, which it creates, adopts and, with prune, deletes with everything in them (below). It lands in the Flux namespace when one is set. No environment policy applies.
fluxcd.CreateBucketsource.toolkit.fluxcd.io/v1 Bucketkindbucketstrict decode of BucketSpec-
fluxcd.CreateExternalArtifactsource.toolkit.fluxcd.io/v1 ExternalArtifactnot authorable--Written by the controller that produces the artifact.
fluxcd.CreateFluxInstancefluxcd.controlplane.io/v1 FluxInstanceheld--A FluxInstance is the installation of Flux itself, not an application’s object: its spec lists “the controllers to install”, and the API accepts one name for it, flux. A component type would let an application author the cluster’s Flux (go-kure/launcher#790).
fluxcd.CreateFluxReportfluxcd.controlplane.io/v1 FluxReportnot authorable--Written by the Flux operator.
fluxcd.CreateGitRepositorysource.toolkit.fluxcd.io/v1 GitRepositorykindgitrepositorystrict decode of GitRepositorySpec-
fluxcd.CreateHelmChartsource.toolkit.fluxcd.io/v1 HelmChartkindhelmchartstrict decode of HelmChartSpec-
fluxcd.CreateHelmReleasehelm.toolkit.fluxcd.io/v2 HelmReleasekindhelmreleasestrict decode of HelmReleaseSpechelm lowers onto it. Against an existing source, or an OCI chart helm-controller fetches itself (chart.kind: OCIRepository), whose chart.spec.url is held to the allowed registries.
fluxcd.CreateHelmRepositorysource.toolkit.fluxcd.io/v1 HelmRepositorykindhelmrepositorystrict decode of HelmRepositorySpec-
fluxcd.CreateImagePolicyimage.toolkit.fluxcd.io/v1 ImagePolicykindimagepolicystrict decode of ImagePolicySpecimageRepositoryRef with its name and policy must be written, and of a semver policy its range: the fields the linked Go source marks required, not held to a CRD. The repository’s namespace is written as authored. interval is held to the pattern of a Flux duration; the API’s two expression rules, which tie it to digestReflectionPolicy: Always, are not checked. It lands in the Flux namespace when one is set. No environment policy applies.
fluxcd.CreateImageRepositoryimage.toolkit.fluxcd.io/v1 ImageRepositorykindimagerepositorystrict decode of ImageRepositorySpecimage and interval must be written, and of an authored secretRef, proxySecretRef or certSecretRef its name, of an authored accessFrom its namespaceSelectors: the fields the linked Go source marks required, not held to a CRD. interval and timeout are each held to the pattern of their field; timeout takes no h, and one of an hour or more is written in minutes. It lands in the Flux namespace when one is set. The registry of image is held to the allowed registries of the environment policy; no tag rule applies.
fluxcd.CreateImageUpdateAutomationimage.toolkit.fluxcd.io/v1 ImageUpdateAutomationkindimageupdateautomationstrict decode of ImageUpdateAutomationSpecsourceRef with its kind and name and interval must be written, and of an authored git its commit with the author’s email: the fields the linked Go source marks required, not held to a CRD. sourceRef.kind is defaulted by the API and required here, since the type writes it empty. The source’s namespace is written as authored, and so is where the automation pushes. interval and policyChangeDelay are each held to the pattern of a Flux duration. It lands in the Flux namespace when one is set. No environment policy applies.
fluxcd.CreateKustomizationkustomize.toolkit.fluxcd.io/v1 Kustomizationkindfluxcd-kustomizationstrict decode of KustomizationSpecoci lowers onto it. targetNamespace is never defaulted.
fluxcd.CreateOCIRepositorysource.toolkit.fluxcd.io/v1 OCIRepositorykindocirepositorystrict decode of OCIRepositorySpecoci lowers onto it.
fluxcd.CreateProvidernotification.toolkit.fluxcd.io/v1 Providerkindfluxcd-providerstrict decode of ProviderSpectype must be written, and of an authored secretRef, proxySecretRef or certSecretRef its name: the fields the linked Go source marks required, not held to a CRD. timeout is held to the pattern of its field: it takes no h, and one of an hour or more is written in minutes. It lands in the Flux namespace when one is set. A user or a password in address is refused. Under a policy that forbids explicit secrets an address that is the credential is refused too: that of discord, generic, generic-hmac, googlechat, lark, msteams, rocket and slack, and an azureeventhub address that holds SharedAccessKey.
fluxcd.CreateReceivernotification.toolkit.fluxcd.io/v1 Receiverkindfluxcd-receiverstrict decode of ReceiverSpectype and resources must be written, of each resource its kind and name, of an authored secretRef its name, and of an OIDC provider its issuerURL and validations with the fields of each validation and variable: the fields the linked Go source marks required, not held to a CRD. A resource’s apiVersion must be written unless the controller defaults it for the kind. interval is held to the pattern of a Flux duration. It lands in the Flux namespace when one is set. No environment policy applies.
fluxcd.CreateResourceSetfluxcd.controlplane.io/v1 ResourceSetheld--Its resourcesTemplate is, in the API’s words, “a Go template that generates the list of Kubernetes resources to reconcile”. The operator renders it on the cluster, so no build sees the objects and none can be held to a rule: the kind would be a way round every rule a policy holds a workload or a Secret to (go-kure/launcher#790).
fluxcd.CreateResourceSetInputProviderfluxcd.controlplane.io/v1 ResourceSetInputProviderkindresourcesetinputproviderstrict decode of ResourceSetInputProviderSpectype must be written, of an authored secretRef or certSecretRef its name and of a schedule its cron: the fields the linked Go source marks required. A schedule’s window is held to the pattern of a Flux duration by its authored text; filter.limit cannot be authored as 0, nor a schedule’s timeZone as empty. It lands in the Flux namespace when one is set. A user or a password in url is refused, and the host of url is held to the allowed registries of the environment policy.
mariadb.CreateBackupk8s.mariadb.com/v1alpha1 Backupkindmariadb-backupstrict decode of BackupSpecSee mariadb-backup above.
mariadb.CreateConnectionk8s.mariadb.com/v1alpha1 Connectionmissing--Ships as the mariadb-connection definition (pkg/oam/shipped), not as a component of this package.
mariadb.CreateDatabasek8s.mariadb.com/v1alpha1 Databasemissing--Ships as the mariadb-database definition.
mariadb.CreateExternalMariaDBk8s.mariadb.com/v1alpha1 ExternalMariaDBmissing--Ships as the mariadb-externalmariadb definition.
mariadb.CreateGrantk8s.mariadb.com/v1alpha1 Grantmissing--Ships as the mariadb-grant definition.
mariadb.CreateMariaDBk8s.mariadb.com/v1alpha1 MariaDBkindmariadbstrict decode of MariaDBSpecSee mariadb above.
mariadb.CreatePhysicalBackupk8s.mariadb.com/v1alpha1 PhysicalBackupkindmariadb-physicalbackupstrict decode of PhysicalBackupSpecSee mariadb-physicalbackup above.
mariadb.CreatePointInTimeRecoveryk8s.mariadb.com/v1alpha1 PointInTimeRecoverymissing--Ships as the mariadb-pointintimerecovery definition.
mariadb.CreateRestorek8s.mariadb.com/v1alpha1 Restorekindmariadb-restorestrict decode of RestoreSpecSee mariadb-restore above.
mariadb.CreateSqlJobk8s.mariadb.com/v1alpha1 SqlJobkindmariadb-sqljobstrict decode of SqlJobSpecSee mariadb-sqljob above.
mariadb.CreateUserk8s.mariadb.com/v1alpha1 Usermissing--Ships as the mariadb-user definition.
metallb.CreateBFDProfilemetallb.io/v1beta1 BFDProfilekindmetallb-bfdprofilestrict decode of BFDProfileSpecThe object is named after the component unless objectName names it, and a MetalLB BGPPeer refers to it by that name. No field is required. Every field is a pointer, so an authored 0 or false is written; the bounds of the numbers are not checked. It is written in the build namespace; MetalLB reads its objects in the one namespace it is configured to watch, by default the one it runs in. No capability is required. No environment policy applies.
metallb.CreateBGPAdvertisementmetallb.io/v1beta1 BGPAdvertisementkindmetallb-bgpadvertisementstrict decode of BGPAdvertisementSpecThe object is named after the component unless objectName names it. No field is required: one that authors nothing is the widest advertisement, of every pool, to every peer, for every Service, with no node excluded. A service selector beside an aggregation length other than the API’s default is refused, as the CRD’s expression rule refuses it. It is written in the build namespace; MetalLB reads its objects in the one namespace it is configured to watch, by default the one it runs in. The communities and the pool and peer names are not read. No capability is required. No environment policy applies.
metallb.CreateBGPPeermetallb.io/v1beta2 BGPPeerkindmetallb-bgppeerstrict decode of BGPPeerSpecThe object is named after the component unless objectName names it, and a MetalLB BGPAdvertisement refers to it by that name. myASN must be written. A peerPort: 0 is refused: the type would leave it out and the API server would fill 179. A connectTime is held to the CRD’s two expression rules; the CRD’s rule against a change of enableGracefulRestart is the API server’s. A password is refused under a policy that forbids explicit secrets; passwordSecret names a Secret and holds no secret, and is written as {} where it is not authored. It is written in the build namespace; MetalLB reads its objects in the one namespace it is configured to watch, by default the one it runs in. The addresses and the profile’s name are not read. No capability is required.
metallb.CreateCommunitymetallb.io/v1beta1 Communitykindmetallb-communitystrict decode of CommunitySpecThe object is named after the component unless objectName names it; a MetalLB BGPAdvertisement refers to an alias by the alias’s own name, not the object’s. No field is required, of the spec or of an alias. The form of a value is not read, and neither is a name defined twice. It is written in the build namespace; MetalLB reads its objects in the one namespace it is configured to watch, by default the one it runs in. No capability is required. No environment policy applies.
metallb.CreateConfigurationStatemetallb.io/v1beta1 ConfigurationStatenot authorable--Status MetalLB writes.
metallb.CreateIPAddressPoolmetallb.io/v1beta1 IPAddressPoolkindmetallb-ipaddresspoolstrict decode of IPAddressPoolSpecThe object is named after the component unless objectName names it, and a MetalLB advertisement refers to it by that name or selects it by its labels, the labels property. It is written in the build namespace; MetalLB reads its objects in the one namespace it is configured to watch, by default the one it runs in. The addresses are not read. No capability is required. No environment policy applies.
metallb.CreateL2Advertisementmetallb.io/v1beta1 L2Advertisementkindmetallb-l2advertisementstrict decode of L2AdvertisementSpecThe object is named after the component unless objectName names it. No field is required: one that authors nothing is the widest advertisement, of every pool, on every interface, for every Service, with no node excluded. It is written in the build namespace; MetalLB reads its objects in the one namespace it is configured to watch, by default the one it runs in. The pool and interface names are not read. No capability is required. No environment policy applies.
metallb.CreateServiceBGPStatusmetallb.io/v1beta1 ServiceBGPStatusnot authorable--Status MetalLB writes.
metallb.CreateServiceL2Statusmetallb.io/v1beta1 ServiceL2Statusnot authorable--Status MetalLB writes.
prometheus.CreateAlertmanagermonitoring.coreos.com/v1 Alertmanagerkindalertmanagerstrict decode of AlertmanagerSpecHeld to the environment policy as a workload is, for what the spec says of the pods the operator runs: image, replicas, resources, the storage of the claim the operator makes, and containers, initContainers, volumes, securityContext and hostNetwork as a pod’s; the replica count and memory request the operator fills where they are unset are held, not written. baseImage, tag and sha are refused when not empty, and so are a retention and a cluster duration of 0 or less. An image the operator chooses, for alertmanager or one of its two reloaders, is refused under a policy with allowed registries. podMetadata is read for reserved keys and takes no label: the operator’s pods carry the component label only where the author writes it there. No capability is required.
prometheus.CreatePodMonitormonitoring.coreos.com/v1 PodMonitorkindpodmonitorstrict decode of PodMonitorSpecselector must be written, and the three required fields of an endpoint’s oauth2. No environment policy applies, and no capability is required.
prometheus.CreateProbemonitoring.coreos.com/v1 Probekindprometheus-probestrict decode of ProbeSpecprober.url must be written, and the three required fields of an oauth2. No environment policy applies, and no capability is required. The type name carries a prefix: a probe, in this package, is a container’s.
prometheus.CreatePrometheusmonitoring.coreos.com/v1 Prometheuskindprometheusstrict decode of PrometheusSpecHeld to the environment policy as a workload is, for what the spec says of the pods the operator runs: image and thanos.image, replicas times shards, resources and thanos.resources, the storage a claim template requests, and containers, initContainers, volumes, securityContext and hostNetwork as a pod’s; and the deprecated bearerToken of remoteWrite[], remoteRead[] and apiserverConfig under a policy that forbids explicit secrets. A credential in a header or a URL is not read. baseImage, tag and sha are refused when not empty, and the same three of thanos whenever set. The pod count the operator runs, an unset replica or shard count read as 1, is held, not written. An image the operator chooses, for prometheus, its two reloaders or, where thanos is set, thanos-sidecar, is refused under a policy with allowed registries. podMetadata is read for reserved keys and takes no label: the operator’s pods carry the component label only where the author writes it there. No capability is required.
prometheus.CreatePrometheusRulemonitoring.coreos.com/v1 PrometheusRulekindprometheusrulestrict decode of PrometheusRuleSpecA group’s name and a rule’s expr must be written. No environment policy applies, and no capability is required.
prometheus.CreateServiceMonitormonitoring.coreos.com/v1 ServiceMonitorkindservicemonitorstrict decode of ServiceMonitorSpecendpoints and selector must be written, and the three required fields of an endpoint’s oauth2. No environment policy applies, and no capability is required.
prometheus.CreateThanosRulermonitoring.coreos.com/v1 ThanosRulerkindthanosrulerstrict decode of ThanosRulerSpec; its labels is the externalLabels propertyHeld to the environment policy as a workload is, for what the spec says of the pods the operator runs: image, replicas, resources, the storage of the claim the operator makes, and containers, initContainers, volumes and securityContext as a pod’s; the replica count and memory request the operator fills where they are unset are held, not written; and the deprecated remoteWrite[].bearerToken under a policy that forbids explicit secrets. A credential in a header or a URL is not read. An image the operator chooses, for thanos-ruler or its config-reloader, is refused under a policy with allowed registries. podMetadata is read for reserved keys and takes no label: the operator’s pods carry the component label only where the author writes it there. No capability is required.
victoriametrics.CreateVMAgentoperator.victoriametrics.com/v1beta1 VMAgentkindvm-agentstrict decode of VMAgentSpecSee vm-agent above.
victoriametrics.CreateVMAlertoperator.victoriametrics.com/v1beta1 VMAlertkindvm-alertstrict decode of VMAlertSpecSee vm-alert above.
victoriametrics.CreateVMSingleoperator.victoriametrics.com/v1beta1 VMSinglekindvm-singlestrict decode of VMSingleSpecSee vm-single above.
volsync.CreateReplicationDestinationvolsync.backube/v1alpha1 ReplicationDestinationkindreplicationdestinationstrict decode of ReplicationDestinationSpecAs replicationsource, without a Syncthing mover. Its labels and annotations are the labels and annotations properties.
volsync.CreateReplicationSourcevolsync.backube/v1alpha1 ReplicationSourcekindreplicationsourcestrict decode of ReplicationSourceSpecNo top-level field must be written; of a volume mounted into a mover that is authored, its mountPath and volumeSource, of a Syncthing peer its address, ID and introducer, and of a match expression in a label selector of a mover’s moverAffinity its key and operator. An authored capacity is held to the policy’s storage maximum, a mover’s cpu and memory to its maxima, and a mover’s hostProcess switch is refused unless privileged workloads are allowed. An rsync mover is held to the policy’s container capabilities for the seven the linked operator version adds to its container. No capability is required. The volsync trait builds a ReplicationSource for a workload’s claim through the same constructor, from a hand-written parser. Its labels and annotations are the labels and annotations properties.

Parts

The rest of this page is split into parts. Each part holds the full text of its sections and entries.

The headings below stay so that a link to an old section still lands here. Each one links to the part that holds the text. Some also keep the opening lines of the section or of an entry.

Adding a kind component: where its lines go

See Adding a kind component: where its lines go.

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 in go-kure/launcher#423 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. (go-kure/launcher#444 later folded the dedicated optionalObject/optionalObjectList/optionalStringList wrappers those six originally used into the base parseObjectField/ parseStringField/etc. helpers themselves — callers now use the base helpers directly, and the null-as-absence behavior applies uniformly rather than only through the wrappers.) Those helpers were already how several other properties on the same components are read, 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.

Full text: Common config.

Container fields

See Common config.

Referencing an existing claim (pvc.claimName)

See Common config.

Raw block volumes (volumeMode: Block)

See Common config. The published schema marks volumeMode required (requiredWhen) when a volumes[] entry authors devicePath; the value Block stays the handler’s rule. A statefulset claim template is a raw PersistentVolumeClaim and carries volumeMode itself.

Pod-level properties

The two reshaped kind components (webservice, worker) also share one pod-level property surface (go-kure/launcher#342, ADR-036 L1), parsed by parsePodSpec (podspec.go) straight into a corev1.PodSpec and rendered by the shared buildPodSpec, which each of them assigns to its pod template. The raw deployment, statefulset, daemonset, job and cronjob take their pod spec as template.spec (jobTemplate.spec.template.spec on a cronjob) instead (go-kure/launcher#1629). Property names are the corev1.PodSpec JSON names, except two that carry a pod prefix because the bare name is already a property at some kind: podSecurityContext (container securityContext exists everywhere) and podResources (container resources). Each accepted value is validated the way real admission validates it when that check is deterministic from the document alone (DNS-1123 names, enums, IP literals, duplicate names, the cross-field exclusions listed below, and the os.name contract: a windows pod may not set the Linux-only pod and container fields, a linux pod may not set windowsOptions); checks needing cluster state (host ports under hostNetwork, RuntimeClass existence) are left to the cluster, and so are feature gates, with one exception: a ClusterProfile that states spec.kubernetesVersion has a property whose gate is off by default at that release (or set off in spec.featureGates) refused (go-kure/launcher#1183): hostnameOverride below 1.35 (HostnameOverride) and podResources below 1.34 (PodLevelResources), and a container’s env[].valueFrom.fileKeyRef below 1.35 (EnvFiles) and an init container’s restartPolicyRules below 1.35 (ContainerRestartRules), on the kinds whose schema declares them. The gate and the release are in the property’s published schema (gate). With no version stated nothing is checked, and a profile’s spec.featureGates replaces the release default for a gate it names: set on, the property is accepted below its release; set off, it is refused at any release (go-kure/launcher#1231). The Never and OnFailure values of an init container’s restartPolicy are refused below 1.35 by the same gate, and service’s trafficDistribution values PreferSameZone and PreferSameNode below 1.34 (PreferSameTrafficDistribution); the other values are accepted at every version, and the gate is named per value in the schema (valueGates, go-kure/launcher#1230). The raw-PodSpec kinds (pod and the kinds that take a pod template: podtemplate, replicaset, replicationcontroller) leave their containers and template spec open, as does the template of cnpg-pooler (go-kure/launcher#1321), and the check reads declared schema, so their open nodes name the gated paths in gatedPaths instead: env[].valueFrom.fileKeyRef and restartPolicyRules of containers[] and initContainers[], the restartPolicy of containers[] (Kubernetes forbids the field on a regular container with the gate off, Always included), and hostnameOverride and resources of the pod spec (template.spec.* on a pod template and on the cnpg-pooler template). A path is refused the same way, naming the authored path (go-kure/launcher#1245). Field names match case-insensitively, as in the decode, so a key spelled in another case is refused too and is named as written; property validation does not read gatedPaths, so what a document is accepted as does not change. A path that gates a value, not the field, sits in valueGatedPaths: a map from a gate-relative path to a map from a value to its gate. The restartPolicy of initContainers[] is there, so Never and OnFailure are refused below 1.35 on these kinds as on the workload kinds, and Always is accepted at every version. The match is exact and only a string is looked up, so a null, a number or a string that the table does not name is not refused. The workload kinds and the raw-PodSpec kinds share one table, so the two cannot differ. The refusal names the authored path and the value (go-kure/launcher#1330). This check does not read whether a value such as never reaches a cluster. It only refuses the values the table names.

Full text: Common config.

Deployment-level properties (webservice, worker)

See Common config.

Main container ports

See Common config.

Raw scheduling properties

See Common config.

Policy defaults & enforcement ordering

A container’s effective cpu/memory requests and limits are assembled in three tiers, in precedence order:

  1. Authored — whatever the component’s resources property set explicitly. The string unlimited under limits.cpu or limits.memory is an authored opt-out (go-kure/launcher#1181): 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.

The policy defaults (tier 2) reach every container of those kinds (the raw deployment, statefulset, daemonset, job and cronjob take none): the main container and each initContainers and sidecars entry, reported at the entry’s own path (go-kure/launcher#1581). A default limit that lands under the container’s request fails the build, naming the container and the remedy (go-kure/launcher#1582); under an authored request it carries the resource-default-limit refusal class (go-kure/launcher#1580).

What the handler itself fills at generation (tier 3: the cpu and memory requests and the mirrored memory limit of every container, and the token automount it switches off) is reported to the provenance report as builtin entries (go-kure/launcher#1580).

The parser of webservice and worker fills a few values when the author wrote none (replicas, a port’s protocol, the accessModes of a claim). Each config reports them through BuiltinDefaults() as builtin, at the path the author would have written, and never at a path where the policy default stands. The raw deployment, statefulset, daemonset, job and cronjob fill none of them and report none (the one thing statefulset fills, a claim template’s storageClassName from the ClusterProfile pvc capability, is a capability default, not a parser default). A webservice or worker with a non-RWX claim and no authored strategy also reports strategy.type: the Recreate strategy is decided when the object is generated, by the predicate the report shares with the generator. ClaimAccessModesOmitted is the test of a claim’s accessModes being left out, exported for the pvc trait, which reports the same fill for the claim it builds through ParseClaimProperties.

Full text: Policy defaults, endpoints and outputs.

A stored copy of a url (go-kure/launcher#1669). manifestConfig.ApplyPolicy keeps the policy’s oam.ContentSource (the optional ContentSourcePolicy) beside the allowed registries, and fetchURL asks it after the url’s scheme and host pass the policy and before any request. A copy is served only if it is within maxManifestBytes, Content.Hosts is not empty, every host in it passes the allowed registries, and it parses as manifests; any other answer is a miss and the url is fetched with a client that records the first host and each redirect hop, which Store then receives. An error of the source, from Lookup or Store, never fails a build or changes its output; a copy it serves is the caller’s word for what the url holds, and the component checks it as it checks a fetched body.

A stored copy of a chart (go-kure/launcher#1669). HelmTemplateConfig.ApplyPolicy takes the policy’s oam.ContentSource after the one host check a chart fetch has (the host of source.url) and before the render; chartSource.renderOptions hands it to kure as helm.WithContentSource through the adapter chartContent, which converts oam.ContentKey and oam.Content field for field. A stored chart is held to what a fetched one is: a fetch is checked once, on source.url, so the hosts of Content.Hosts (a token service, a blob redirect, an archive host) are not compared with the allowed registries. The one rule on them is that a copy recording no host is a miss, as for a url. Kure applies its own checks to a copy (a manifest pinned by digest, the chart layer’s digest, a chart that loads); any other answer, an error of the source included, is a miss and the chart is fetched.

Policy refusal classes

See Policy defaults, endpoints and outputs.

The refusal of a Secret that an externalsecret or clusterexternalsecret would write (its target.manifest) is an *oam.TargetManifestRefusal: it keeps the class oam.RefusalExplicitSecret, and errors.As finds the type. The refusal of a kind the policy reads there is a bare PolicyRefusal of class oam.RefusalUnreadableObject.

Under a policy that forbids explicit secrets, an httpGet header named Authorization or Proxy-Authorization (in any case) in a probe or a lifecycle hook is refused as oam.RefusalExplicitSecret: the kubelet sends its value from the pod spec, where it is held in the clear, and an httpHeaders entry has no form that reads a Secret (go-kure/launcher#1860). One check (enforceHeaderCredentials, with the predicate credentialHeader) holds every container a type builds: the main container, init containers and sidecars of the types built from the shared container fragment (probes.<readiness|liveness|startup>, lifecycle.<postStart|preStop>), every container of the kinds that take a pod as the API type (through enforcePodTemplatePolicy: the workload kinds, pod, podtemplate, replicaset, replicationcontroller, cnpg-pooler’s template, and the containers and initContainers of prometheus, alertmanager and thanosruler), the listed containers and the spec’s own probes of vm-agent, vm-alert and vm-single, and a workload object a passthrough or manifests document carries, or a custom resource’s podSpecs node (enforceExplicitSecretObject). The refusal names the header’s path and name, never its value. A chart’s rendered pod is not held (enforcePodGates is the rendered-object check’s), as a Secret a chart renders is not. Not read: a header of another name, a credential in the probe’s path or host or an exec command, a probe an operator generates itself, a cnpg-cluster’s probes and a MariaDB kind’s (neither type has a header field), and an operator custom resource a passthrough carries outside a declared podSpecs node, other than a kind the raw objects’ typed check holds (enforceTypedExplicitSecret: Prometheus, ThanosRuler, Alertmanager, VMAgent, VMAlert, VMSingle, Pooler; go-kure/launcher#1830).

The workload types that keep the reshaped form, the kinds that take a pod as the API type, the source types helm, gitrepository, helmrepository, ocirepository, oci, bucket, helmrelease, imagerepository, resourcesetinputprovider and manifests, the fluxcd-provider type, passthrough, helmtemplate, crd, horizontalpodautoscaler, persistentvolume, persistentvolumeclaim, metallb-bgppeer, certificate, issuer, clusterissuer, secretstore, clustersecretstore, externalsecret, clusterexternalsecret, prometheus, alertmanager, thanosruler, replicationsource, replicationdestination, postgresql and the CloudNativePG kinds cnpg-cluster, cnpg-pooler, cnpg-objectstore, cnpg-imagecatalog and cnpg-clusterimagecatalog publish, in boundedBy, which classes an authored value at a property can cause (bounds.go, go-kure/launcher#1580, go-kure/launcher#1711). No schema fragment carries a bound: each type states its own. The source types declare registry on the property that names where they are fetched from (a bucket also on provider, for the gcp host; helmrelease on its open chart node). A document the handler reads object by object declares the classes of the refusals of those objects (documentClasses): manifests on inline and url, and passthrough on its open object node. helmtemplate declares registry on source.url, and on its open values node the classes of the objects its chart renders (renderedClasses, the classes of documentClasses except explicit-secret: a Secret a chart renders is not refused); secretValues lists the same and explicit-secret. source.url, chart and version declare none of the rendered classes. helm declares explicit-secret on secretValues under both deliveries (helmBounds) and nothing on values: under delivery: template it is bounded as helmtemplate is, which its description says and TestBoundedBy_HelmValuesUnderTemplate holds (the refusal under template, no refusal under flux, and the place values lowers to). fluxcd-provider is not a source: it declares explicit-secret on address. crd declares registry on url (its inline source declares nothing), horizontalpodautoscaler replica-maximum on maxReplicas, persistentvolume host-path on hostPath and local and storage-maximum on its open capacity node (the bound applies to its storage key), and persistentvolumeclaim storage-maximum on size (persistentVolumeBounds). metallb-bgppeer declares explicit-secret on password, and certificate on its open keystores node (the keystore passwords). issuer and clusterissuer declare resource-maximum on their open acme node, for the cpu and memory of an HTTP01 solver’s pod (issuerBounds). secretstore and clustersecretstore declare explicit-secret on their open provider node, for a credential written as a value and for the data of the fake provider (secretStoreBounds). externalsecret declares explicit-secret and unreadable-object on its open target node, and clusterexternalsecret on externalSecretSpec, for the object target.manifest has the operator write (targetManifestBounds): a Secret is refused under a policy that forbids explicit secrets, and a kind the policy reads is refused under any applied policy, no limit lifting it. The other five MetalLB kinds raise no policy refusal and declare nothing. prometheus, alertmanager and thanosruler declare what their workload check raises (enforceMonitoringWorkloadPolicy; monitoringBounds): replica-maximum on replicas (and, for a Prometheus, on shards, since the pods are replicas times shards), registry on image (an unset image is refused under an allowlist, since the operator then chooses it), storage-maximum on storage, resource-maximum on resources, and, on the open volumes, containers and initContainers nodes, the classes of a pod’s volumes and containers, explicit-secret for a credential header in a probe or hook included (a patch of the reloader the operator generates included: unpatched, its image is the operator’s own, which an allowlist cannot hold). The types built from the shared container fragment declare explicit-secret on each container’s open probes.readiness, probes.liveness, probes.startup, lifecycle.postStart and lifecycle.preStop nodes, and a pod written as the API type on containers and initContainers (containerBounds, podBounds). A Prometheus declares registry and resource-maximum on thanos (the sidecar’s image and resources) and explicit-secret on remoteWrite, remoteRead and apiserverConfig (a bearerToken); a thanosruler declares explicit-secret on remoteWrite. A prometheus and an alertmanager declare host-namespace on hostNetwork and privileged on securityContext (windowsOptions.hostProcess). A thanosruler declares no securityContext class: its HostProcess switch needs a host network it has no field for, so it is refused as invalid before the policy. The operator-filled memory request of 200Mi (alertmanager and thanosruler, where resources names none) is held to the memory maximum and sits on resources; the test row shows the authored form only. podmonitor, prometheus-probe, prometheusrule and servicemonitor raise no policy refusal and declare nothing. replicationsource and replicationdestination declare what enforceVolsyncMovers raises, on each mover, an open node (volsyncBounds): storage-maximum for the capacity of the volume it provisions (capacity, restic’s cacheCapacity, and a source’s syncthing configCapacity) and resource-maximum for moverResources. The rsync mover (over SSH) is run as root with seven added capabilities whenever it is authored, so it declares container-capability and has no security context; rsyncTLS, rclone, restic and, on a source, syncthing declare privileged for moverSecurityContext.windowsOptions.hostProcess. postgresql and the CloudNativePG kinds declare what their policy check raises (cnpg_cluster.go, cnpg_pooler.go, cnpg_common.go): replica-maximum, resource-maximum, storage-maximum and registry on a Cluster’s own properties, and the classes of a pod, on the one open template node, for a Pooler; their structured properties are open nodes, so a class sits on the node and a value below it raises it. object-kind (the transform’s) is declared on none.

Pod view of a monitoring workload object (MonitoringPodSpec)

See Policy defaults, endpoints and outputs.

Declared endpoints of a chart

See Policy defaults, endpoints and outputs.

Declared outputs

Every kind component (a type that takes objectName) publishes its one object as the output object: the engine does it, so a handler declares nothing, and a new type cannot join the registry without it (TestOutputs_EveryObjectTypePublishesItsRecord). postgresql, webservice and worker declare the objects they lower into. postgresql also declares the two objects CloudNativePG creates from its Cluster, derived from the Cluster’s name: the application Secret (app_secret, absent when recovery.secret.name is set) and the read-write Service (rw_service, always present).

See Policy defaults, endpoints and outputs.

Per-type highlights

Wrong-type handling for the optional top-level properties go-kure/launcher#405 moved onto the presence-reporting helpers: port on webservice, daemonset and statefulset (the latter two have since dropped it, go-kure/launcher#690, and both are raw kinds now, go-kure/launcher#1629; parseInt32Field; on webservice the Endpoints declaration runs the rule’s whole parse, so a wrong type is not declared as an endpoint on port 80 either, and neither is a component without an image; what the rule’s lowering refuses after the parse is one of the four things an endpoint entry does not see, pkg/oam, “Name roles and the Naming hook”), topologySpread on webservice and worker and prune on oci (parseBoolField), and path, interval and targetNamespace on oci (parseStringField, so an authored "" still reads as absent). A present value of the wrong type is rejected by name (topologySpread: must be a boolean, got string) and a null reads as absence. Before, each fell back to its default as though the key had been omitted — topologySpread: "false" kept the spread constraints and prune: "false" pruned — for a handler called directly; schema validation already refused these shapes in an authored document. One authored shape does change: port is declared integer with no maximum, so an integer outside the int32 range (port: 5000000000) passed validation and built as though no port were authored (80 on webservice, none on daemonset/statefulset); it is now refused by value, not by type (port: must be an integer within int32 range, got 5000000000). parseInt32Field words that case apart from a wrong type for every field it reads, so an out-of-range replicas or minReadySeconds gets the same range message. postgresql’s other top-level reads (storageSize, backup, pooler, …) were converted separately, in go-kure/launcher#512 (see the postgresql entry below).

Opening lines of an entry:

  • cnpg-imagecatalog, cnpg-clusterimagecatalog, cnpg-backup, cnpg-scheduledbackup, cnpg-databaserole, cnpg-publication, cnpg-subscription (go-kure/launcher#790) 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. The ClusterImageCatalog is cluster-scoped: the object carries no namespace, whatever namespace the application is built for, and its name is claimed cluster-wide. The other six are namespaced and are written in the build namespace. One rule lowers onto one of them: postgresql emits a cnpg-scheduledbackup for each backup.schedules entry (go-kure/launcher#1001, below); it emits none of the other six.

Full entry: Kinds: PostgreSQL and CloudNativePG.

Opening lines of an entry:

  • alertmanager (go-kure/launcher#790) 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. Launcher emits no pod, no StatefulSet, no Service and no Secret for it: the operator builds a StatefulSet from the object and runs the pods. What the spec says of those pods is held to the environment policy as a workload kind’s own fields are.

Full entry: Kinds: monitoring.

Opening lines of an entry:

  • mariadb, mariadb-backup, mariadb-physicalbackup, mariadb-restore, mariadb-sqljob (go-kure/launcher#1819) are the kind-named projections of the mariadb-operator’s k8s.mariadb.com/v1alpha1 MariaDB, Backup, PhysicalBackup, Restore and SqlJob (operator release 26.10.2, github.com/mariadb-operator/mariadb-operator/v26, MIT licence). Each takes the whole spec type, strictly decoded, under its json names, and emits its one object in the build namespace, named after the component unless objectName names it. These are the five kinds of that API that start pods. The operator’s API type is the only source of the schema’s key set (TestMariadbKinds_SchemaCoversSpec holds it both ways), so a field the operator adds, removes or retypes fails a test at the next version bump. The kinds are built on policyHeldKind and applied by one walk of the decoded type (mariadb_common.go, mariadbWalk), not by a list of paths: every ResourceRequirements gets the cpu and memory maxima, every SecurityContext gets privileged and the capability lists, every hostPath volume is refused unless the policy allows host paths, every volume claim spec and storage.size gets the storage maximum, and a MariaDB’s replicas gets the replica maximum. Its images (the instance, each init and sidecar container, the metrics exporter, and the agent and init container of replication and galera) are held to the registry allowlist, and one of an enabled section left out is refused under an allowlist, since the operator then chooses it. The bounds the schema declares are derived from the same types (TestMariadbKinds_BoundsAreTheWalks), and TestMariadbKinds_WalkPlaces pins the places each kind reaches, so a place a dependency bump adds shows as a failing test. The four job kinds name no image: the job pods also run the operator’s own image, chosen in the operator’s configuration, and the image of the MariaDB they refer to; launcher’s registry policy does not see either. Defaulted zeros. A scalar the author writes as 0 or "" that the operator’s type omits, or that its SetDefaults reads as unset, gets a default in its place, so an authored zero cannot be carried and is refused, naming the default. The lists are the CRD’s non-zero defaults, read mechanically (TestMariadbKinds_EveryCRDDefaultIsHeld), and the fields the operator’s own SetDefaults fills, swept from operator 26.10.2 (TestMariadbKinds_EveryOperatorFillIsHeld): on a MariaDB replicas, port, maintenance.drainGracePeriodSeconds, the three service type fields, updateStrategy.type, bootstrapFrom.logLevel, image and, unless it recovers to a point in time, bootstrapFrom.backupContentType, and, only where their section is enabled, metrics.exporter.port, metrics.exporter.image, metrics.username, the agent port, image and probePort and basicAuth.username (when basic auth is enabled) of Galera and replication (and an authored empty init container image), and galera.replicaThreads, galera.sst and galera.galeraLibPath; on the job kinds backoffLimit, restartPolicy, logLevel, compression and, on a Backup and a PhysicalBackup, a zero maxRetention. The operator’s own SetDefaults, not the CRD, fills the ports, replicaThreads, the strings it derives, compression, maxRetention and the backoffLimit of a Backup and a PhysicalBackup. A PhysicalBackup of volume snapshots keeps its compression and backoffLimit, as the operator applies no default there. A pointer field is no member of the class: a zero behind a pointer is carried. The job kinds' mariaDbRef.waitForIt fill is reported as a built-in default (TransformWithProvenance); an authored value is not. The kinds are namespaced, which kure’s scope table knows, so a policy that forbids cluster-scoped objects builds them. Under a policy that requires image digests, a MariaDB with an enabled galera or replication and updateStrategy.autoUpdateDataPlane: true is refused, naming both fields: the operator then sets the agent and init container images to the tag or digest of its own configured image, so a pinned digest can come out as a tag. Not held: the operator’s PodSecurityContext (the type has no windowsOptions, so no hostProcess switch), an emptyDir sizeLimit, the operator’s admission webhooks and controller code (not read), and a mariadb lowering rule or model, which is a separate layer. The metadata the operator copies onto the pods it runs and onto the objects it creates is held to the reserved keys (mariadbHolders). Required fields follow the rule of the other CRD-backed kinds (go-kure/launcher#883): the list is generated from the CRDs the linked module ships. The five kinds build their objects with the base library’s constructors. The kinds of the API that start no pod (Database, User, Grant, Connection, PointInTimeRecovery, ExternalMariaDB) are no Go kinds: they ship as definitions (mariadb-database and the five others, see pkg/oam/shipped), and MaxScale is out of scope. No capability is required.
  • webservice / worker — image, replicas (default 1), port (webservice), plus the DeploymentSpec-level surface the two share — strategy, minReadySeconds, revisionHistoryLimit, paused and progressDeadlineSeconds (go-kure/launcher#341, see “Deployment-level properties” above). These two own the reshaped form of a Deployment alone (go-kure/launcher#1629); the kind-named deployment takes the upstream spec. They 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 (go-kure/launcher#1473, see “Raw scheduling properties” above); authored constraints need topologySpread: false. The webservice rule implements the optional oam.EndpointProvider: it declares its own pods (app: <component-name>) on the declared port (its single port property drives both the container port and the Service port), letting a downstream platform synthesize generic app→app connections targeting a webservice. worker declares no in-cluster port and emits no Service, so it deliberately advertises no endpoint (not an EndpointProvider).

Full entry: Kinds: core workloads.

Opening lines of an entry:

  • ingress (go-kure/launcher#790) 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. It emits one Ingress named after the component in the build namespace, with the authored spec and nothing else. No field is required by the decode and none is filled: an Ingress with neither a defaultBackend nor a rule, a path without a pathType and the API’s other value rules are left to the API server. A null list element (rules: [null], a null path or TLS entry) is refused by its path.

Full entry: Kinds: networking.

Opening lines of an entry:

  • issuer, clusterissuer, certificate (go-kure/launcher#790) are the kind-named projections of three objects of cert-manager’s cert-manager.io/v1 API: an Issuer, a ClusterIssuer and a Certificate. Each is built on policyHeldKind (policyFreeKind with a policy check, see the storageclass entry) and emits that one object, named after the component unless objectName names it; the handler adds no label, no annotation and no default. An issuer and a certificate are emitted in the build namespace and declare their object as namespaced. A clusterissuer is emitted with no namespace and declares its object as cluster-scoped, so its name is claimed in no namespace. An Issuer and a ClusterIssuer share one spec type (IssuerSpec), and what is said of an issuer below holds for both kinds.

Full entry: Kinds: secrets, certificates and backup.

Opening lines of an entry:

  • helm (go-kure/launcher#349, helm.go) — the role-named Helm component: a component-position lowering rule (HelmRule), not a handler, that lowers to the kind-named terminals. 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. Reserved metadata keys (go-kure/launcher#1857): under delivery: flux, helm holds every map key of its own values and secretValues to TransformContext.ReservedMetadataKeys when lowered (LoweringContext.CheckHelmValues), in every valuesMode, except the keys of a map right under nodeSelector or matchLabels. The refusal names the component and the key’s path, never a value. A helmrelease’s spec.values is checked the same way by the ownership wrapper. Values an authored valuesFrom entry reads stay unchecked. Under delivery: template the values are not read; the rendered objects are checked instead.

Full entry: Kinds: Helm.

Opening lines of an entry:

  • postgresql — provider: cnpg, version (default 16), storageSize (precedence: authored > policy default storageSize > 1Gi), replicas, backup (objectStore, objectStoreObjectName, retentionPolicy, serverName, schedules; see “Backup” below), monitoring.enabled, pooler.enabled, poolerName, managedRoles, databases (each with an optional objectName), clusterObjectName. The schema publishes what the parser refuses: recovery.source is required, its objectStoreName and objectStore are an exactly-one group, and recovery.target’s five selectors and bootstrap’s initdb and pg_basebackup are at-most-one groups. clusterObjectName names the Cluster in place of the component name. CloudNativePG derives the Cluster’s Services and Secrets from the Cluster’s name, the default backup path moves with it, and renaming an existing Cluster creates a new one: the old one is pruned with its data unless it is protected (see “The Cluster’s and the ObjectStore’s names” below).

Full entry: Kinds: PostgreSQL and CloudNativePG.

Opening lines of an entry:

  • passthrough — object (full apiVersion/kind/metadata/spec), clusterScoped. Its config exposes ComponentName() string (the oam.ComponentNamed interface) so consumers can attribute the emitted resource to its owning OAM component. object must be a single object; a list is rejected. Generate emits the map verbatim as one resource and fills in metadata it finds missing: metadata.name defaults to the component name when it is absent, empty, or not a string, and on a namespaced object metadata.namespace likewise — so an inline non-empty string namespace survives untouched, while a non-string one is replaced rather than emitted. The values of the emitted object are JSON values (int64, float64, json.Number, map[string]any, []any), whatever Go types the authored object held, so the emitted Unstructured can be deep-copied (go-kure/launcher#1162); the config’s own Object keeps the authored values. A number is an int64 where it fits, a float64 where a float64 holds it exactly, and otherwise a json.Number with its own digits (an integer beyond the int64 range, 9.223372036854775809e18, a 1e-9999999), so no digit is rounded; an authored json.Number takes the type its text has, and an empty one is 0, as encoding/json writes it (go-kure/launcher#1167, go-kure/launcher#1170). A value with no JSON form (a func, a chan, a complex number, a NaN or infinity, a json.Number that is not a number) is refused, naming the field, instead of being emitted for a deep copy to panic on (go-kure/launcher#1166). An object with a key given twice in one JSON object, at any depth (a json.RawMessage a Go caller built), is refused, naming the field: the policy check and the emitted object would otherwise read it differently. The field is named by the path every passthrough error uses (fieldPath): keys joined by dots, and a key that is empty or holds a dot, a bracket or a quote written as a quoted index, labels[""] or labels["a.b"], so that two different fields never share a path. A number beyond float64 range in that object is read as text and is not refused (go-kure/launcher#1176).

Full entry: Kinds: core workloads.

  • vm-single (go-kure/launcher#1820, vmsingle.go, vm_common.go) is the kind-named projection of a VictoriaMetrics operator VMSingle (operator v0.76.0). Its properties are the top-level fields of VMSingleSpec, decoded strictly into the base library’s types of the operator’s API (kure’s pkg/kubernetes/victoriametrics), which kure holds to the release’s CRD. A field on which an authored 0 or false differs from an absent one (the operator fills it when absent) is a pointer there, as in the operator’s own type, so it reaches the object as written and launcher fills nothing. A string the operator defaults when it is empty is unset to the operator too, so an authored "" loses nothing.

    • The policy walks the decoded value: every ResourceRequirements (cpu and memory maxima), each container of containers and initContainers (image registry, privileged, capabilities, and a credential header in a probe or lifecycle hook where the policy forbids explicit secrets), the spec’s own livenessProbe, readinessProbe and startupProbe (the same header, go-kure/launcher#1860), securityContext (the privileged and capability fields the operator copies onto every container it builds, and the pod’s windowsOptions.hostProcess), volumes (hostPath, an ephemeral claim’s storage, an image volume’s reference) and the storage claim. TestVMSingle_WalkPlaces pins every place, so a field a version bump adds that the walk would reach fails there.
    • An image is {repository, tag, pullPolicy}; the build composes the reference as the operator does, a digest in tag, and holds it to the registry allowlist and the image level; with the licence the operator adds to a tag it derives from componentVersion. Under an allowlist a repository left out of image, an empty configReloaderImage where the operator starts a reloader (ingestOnlyMode: false, a relabel rule or a stream-aggregation rule: VMSingle.HasConfigReloader) and a vmBackup with no image are refused, naming the field, since the operator then chooses the image; with no allowlist they stay unset, and a default VMSingle, which starts no reloader, needs no reloader image.
    • A credential written in the clear is refused, without quoting it, where the policy forbids explicit secrets: apiServerConfig.bearerToken, license.key, an Authorization or Proxy-Authorization entry of any headers list, and a URL with a password in its user info in any string of the operator’s types, whatever the field is named: a field, a list element (rulePath) or a map value (extraArgs, oauth2.endpoint_params). A ...File field can name a URL that VictoriaMetrics fetches. The forms that name a Secret pass. A relabel regex or if and a stream-aggregation match hold patterns, not URLs, and are not read. inlineScrapeConfig is read as one string, not as the YAML it holds.
    • With serviceAccountName unset and ingestOnlyMode: false, the operator creates a ClusterRole and a ClusterRoleBinding for the VMSingle. A policy that allows no cluster-scoped object refuses that VMSingle; a named service account, or the default ingestOnlyMode, passes. An operator configured to watch some namespaces creates Roles instead; the build cannot see that setting and refuses in both cases.
    • A vpa section is refused where the policy bounds cpu or memory, and passes as authored where it does not.
    • A field the CRD requires in a node it describes, which the type writes whether or not it was authored, is refused where its parent is authored and it is not (the generated required list of kind_required.go, derived from the pinned CRD); a label selector’s key and operator are held the same way, below the open nodes too. An authored null reads as absent everywhere, in a relabel regex, if and a stream-aggregation match too.
    • Limits: the CRD leaves affinity, containers, initContainers, volumes, topologySpreadConstraints, extraEnvs, serviceSpec.spec, the three probes, dnsConfig, securityContext and serviceScrapeSpec open, so the build holds the Kubernetes types there and not the schema, and the fields the Kubernetes API requires below them (a container’s name) are not refused at build. An image the operator starts with no field to name it, and the operator’s own configuration (a default image, a global registry prefix on a short repository), are not seen.
  • vm-agent and vm-alert (go-kure/launcher#1820, vmagent.go, vmalert.go) are the kind-named projections of a VMAgent and a VMAlert, built as vm-single is, with the same walk, image, credential and vpa rules. What differs:

    • The CRDs require remoteWrite (each with a url) of a VMAgent and datasource (with a url) of a VMAlert; the schema publishes both required.
    • A default VMAgent starts a config reloader (ingestOnlyMode absent reads as false), so under an allowlist its configReloaderImage must be named. A VMAlert starts one only where it selects rules (selectAllByDefault, ruleSelector or ruleNamespaceSelector).
    • With serviceAccountName unset, the operator creates a ClusterRole and a ClusterRoleBinding for a VMAgent, unless ingestOnlyMode is true and no remote write names a Secret. A policy that allows no cluster-scoped object refuses that VMAgent. The operator creates no Role or ClusterRole for a VMAlert.
    • The storage request of each claimTemplates entry and of statefulStorage is held to the storage maximum. hpa.maxReplicas and hpa.minReplicas are held to the replica maximum, and an empty hpa.metrics, hpa.behaviour.scaleUp.policies or scaleDown.policies is refused, since the API server then applies its default metric or policies.
    • Limits: each of shardCount shards is a workload held to the replica maximum on its own, and daemonSetMode runs one pod per node, which no replica maximum bounds.

StatefulSet-level and claim-template properties

The statefulset kind is a raw kind (go-kure/launcher#1629): its properties are the appsv1.StatefulSetSpec fields (replicas, selector, template, serviceName, volumeClaimTemplates, podManagementPolicy, updateStrategy, minReadySeconds, revisionHistoryLimit, persistentVolumeClaimRetentionPolicy, ordinals), strictly decoded, and each volumeClaimTemplates entry is a raw PersistentVolumeClaim. Launcher fills no default value, so an unauthored StatefulSet leaves podManagementPolicy and the updateStrategy type to the apiserver (an empty updateStrategy: {} can still appear in the emitted manifest, because the upstream type does not omit it). The reshaped claim entry (mountPath, size, storageClass, accessModes, devicePath) is gone; the mount is a volumeMounts entry of a container, and the capability storage class fills only a claim template that authors no spec.storageClassName. Until go-kure/launcher#361 kure’s CreateStatefulSet wrote podManagementPolicy: OrderedReady into the object itself; the line left the emitted manifest then, and the effective policy is unchanged, since OrderedReady is the API default.

Full text: Common config.

Upstream fields a hand-parsed kind does not read

See Upstream fields a hand-parsed kind does not read.

The two paths

See Upstream fields a hand-parsed kind does not read.

Below the top level

See Upstream fields a hand-parsed kind does not read.

Refused, with the reason

See Upstream fields a hand-parsed kind does not read.

Read in another shape

See Upstream fields a hand-parsed kind does not read.

One level down

See Upstream fields a hand-parsed kind does not read.

Outside the properties

See Upstream fields a hand-parsed kind does not read.

An explicit null on a refused key

See Upstream fields a hand-parsed kind does not read.

What holds this

See Upstream fields a hand-parsed kind does not read.

Extending

See Extending.

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:

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.

It is written down because “null” has several readers — the emission validator’s requiredness check and its optional-key strip, its array-element guard, enforcePlatformReserved, this package’s parsers, and the Kubernetes API itself — and each was aligned separately, so each round of review found the reader the last round had not touched.

Full text: The null contract and two spellings of one field.

Two spellings of one field

See The null contract and two spellings of one field.

Conventions

See Conventions.

The app label

See Conventions.

The object name (objectName)

See Conventions.

The object’s labels and annotations (labels, annotations)

See Conventions.

The pod template’s labels and annotations (podMetadata)

See Conventions.

A label selector’s match expressions

See Conventions.

Required fields a kind writes unauthored and does not refuse

See Conventions.

Required fields the published schema carries

See Conventions.

Every spec field is this package’s to write

See Conventions.

The package comment in doc.go gives the one-paragraph summary this page opens with.