Component Handlers
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:
| Kind | Named | Signal | Generic check |
|---|---|---|---|
postgresql.cnpg.io Cluster | the component name, or clusterObjectName | condition Ready (ClusterStatus.Conditions) | judges it |
barmancloud.cnpg.io ObjectStore | the component name, or backup.objectStoreObjectName; <component>-recovery-source for an inline recovery.source.objectStore | none: ObjectStoreStatus holds only a backup history | cannot judge |
postgresql.cnpg.io Pooler | <component>-pooler, or poolerName | status.phase is active (PoolerStatus.Phase) | cannot judge |
postgresql.cnpg.io Database | <component>-<database>, or databases[].objectName | status.applied is true (DatabaseStatus.Applied) | cannot judge |
postgresql.cnpg.io ScheduledBackup | <component>-<schedule> | none: ScheduledBackupStatus holds schedule times and an error | cannot 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:
| Rule | Components | Traits | Policies |
|---|---|---|---|
webservice | role-deployment, service, serviceaccount | topology-spread, pvc | |
worker | role-deployment, serviceaccount | topology-spread, pvc | |
helm | helmrelease, helmtemplate, helmrepository, ocirepository, gitrepository, bucket | configmap, secret | |
postgresql | cnpg-cluster, cnpg-objectstore, cnpg-pooler, cnpg-database, cnpg-scheduledbackup | dependency, placement | |
oci | ocirepository, fluxcd-kustomization | ||
tls-certificate, hardened-cronjob, hardened-daemonset, hardened-deployment, hardened-job, hardened-statefulset | the 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):
| Key | Lands at | Unchanged |
|---|---|---|
port (webservice) | role-deployment ports[0].containerPort, service ports[0].port | no |
affinity | role-deployment affinity, as a Kubernetes affinity | no |
volumes | role-deployment volumes, and a pvc trait on it for each claim a volume generates | no |
topologySpread | the topology-spread trait on role-deployment, which holds no property | no |
serviceAccountObjectName | role-deployment serviceAccountName: the pods run as the account under the name it was given | no |
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 ofwebserviceandworker, the Kustomization and the own source ofoci, the Cluster and every other member ofpostgresql. A sourcehelmgenerates, and a source severalocicomponents 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,workerand anociwith its own source emit one same-name sibling group, which is one bundle: therole-deploymentmember carries the trait for the first two, the Kustomization for the third.helm, and anocion 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.
webserviceforwardsmonitoringto itsservicemember with the routing traits, since the trait scrapes the Service by its port name;workerhas no Service, so the trait stays with itsrole-deploymentand 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:
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):
| Type | Builds on | Path | Value | Class |
|---|---|---|---|---|
tls-certificate | certificate | spec.secretName | the component name followed by “-tls” | derived |
hardened-deployment | deployment | spec.template.spec.automountServiceAccountToken | false, unless the pod names a service account (serviceAccountName or the alias serviceAccount) | constant |
hardened-statefulset | statefulset | spec.template.spec.automountServiceAccountToken | false, unless the pod names a service account (serviceAccountName or the alias serviceAccount) | constant |
hardened-daemonset | daemonset | spec.template.spec.automountServiceAccountToken | false, unless the pod names a service account (serviceAccountName or the alias serviceAccount) | constant |
hardened-job | job | spec.template.spec.automountServiceAccountToken | false, unless the pod names a service account (serviceAccountName or the alias serviceAccount) | constant |
hardened-cronjob | cronjob | spec.jobTemplate.spec.template.spec.automountServiceAccountToken | false, 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
type | Produces | Summary |
|---|---|---|
alertmanager | Alertmanager | Kind-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. |
apiservice | APIService | Kind-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. |
artifactgenerator | ArtifactGenerator | Kind-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. |
backendtlspolicy | BackendTLSPolicy | Kind-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. |
bucket | Bucket | Kind-named: the full Flux BucketSpec. |
certificate | Certificate | Kind-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-bgpadvertisement | CiliumBGPAdvertisement | Kind-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-bgpclusterconfig | CiliumBGPClusterConfig | Kind-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-bgpnodeconfigoverride | CiliumBGPNodeConfigOverride | Kind-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-bgppeerconfig | CiliumBGPPeerConfig | Kind-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-cidrgroup | CiliumCIDRGroup | Kind-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-clusterwidenetworkpolicy | CiliumClusterwideNetworkPolicy | Kind-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-egressgatewaypolicy | CiliumEgressGatewayPolicy | Kind-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-loadbalancerippool | CiliumLoadBalancerIPPool | Kind-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-localredirectpolicy | CiliumLocalRedirectPolicy | Kind-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-networkpolicy | CiliumNetworkPolicy | Kind-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-nodeconfig | CiliumNodeConfig | Kind-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. |
clusterexternalsecret | ClusterExternalSecret | Kind-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. |
clusterissuer | ClusterIssuer | Kind-named cert-manager ClusterIssuer: the IssuerSpec of issuer, strictly decoded, and its policy check. Cluster-scoped. No capability is required — see below. |
clusterrole | ClusterRole | Kind-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. |
clusterrolebinding | ClusterRoleBinding | Kind-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. |
clustersecretstore | ClusterSecretStore | Kind-named External Secrets Operator ClusterSecretStore: the SecretStoreSpec of secretstore, strictly decoded, and its policy check. Cluster-scoped. No capability is required — see below. |
cnpg-backup | CNPG Backup | Kind-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-cluster | CNPG Cluster | Operator-CR kind component: the whole postgresql.cnpg.io/v1 ClusterSpec, strictly decoded, with no launcher opinions — see below. |
cnpg-clusterimagecatalog | CNPG ClusterImageCatalog | Kind-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-database | CNPG Database | Operator-CR kind component: the whole DatabaseSpec, strictly decoded — see below. |
cnpg-databaserole | CNPG DatabaseRole | Kind-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-imagecatalog | CNPG ImageCatalog | Kind-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-objectstore | Barman Cloud ObjectStore | Operator-CR kind component: the whole barmancloud.cnpg.io/v1 ObjectStoreSpec, strictly decoded — see below. |
cnpg-pooler | CNPG Pooler | Operator-CR kind component: the whole PoolerSpec, strictly decoded — see below. |
cnpg-publication | CNPG Publication | Kind-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-scheduledbackup | CNPG ScheduledBackup | Kind-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-subscription | CNPG Subscription | Kind-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. |
configmap | ConfigMap | Kind-named ConfigMap: data, binaryData, immutable. A workload reads it through a configMap volume or envFrom — see below. |
crd | CustomResourceDefinition(s) | CRDs from inline/url; rejects non-CRD docs. |
cronjob | CronJob | Kind-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. |
csidriver | CSIDriver | Kind-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. |
daemonset | DaemonSet | Kind-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. |
deployment | Deployment | Kind-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. |
endpointslice | EndpointSlice | Kind-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. |
externalsecret | ExternalSecret | Kind-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-alert | Alert | Kind-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-kustomization | Kustomization | Kind-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-provider | Provider | Kind-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-receiver | Receiver | Kind-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. |
gateway | Gateway | Kind-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. |
gatewayclass | GatewayClass | Kind-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. |
gitrepository | GitRepository | Kind-named: the full Flux GitRepositorySpec. |
grpcroute | GRPCRoute | Kind-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-cronjob | CronJob | Higher-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-daemonset | DaemonSet | Higher-level model over the daemonset kind, with the service-account token default of hardened-cronjob. See “Higher-level types over a kind”. |
hardened-deployment | Deployment | Higher-level model over the deployment kind, with the service-account token default of hardened-cronjob. See “Higher-level types over a kind”. |
hardened-job | Job | Higher-level model over the job kind, with the service-account token default of hardened-cronjob. See “Higher-level types over a kind”. |
hardened-statefulset | StatefulSet | Higher-level model over the statefulset kind, with the service-account token default of hardened-cronjob. See “Higher-level types over a kind”. |
helm | via helmrelease (+ a values configmap trait, a secretValues secret trait) + a generated helmrepository/ocirepository/gitrepository/bucket, or via helmtemplate | Role-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. |
helmchart | HelmChart | Kind-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). |
helmrelease | HelmRelease | Kind-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. |
helmrepository | HelmRepository | Kind-named: the full Flux HelmRepositorySpec, and nothing else. |
helmtemplate | rendered manifests | Kind-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). |
horizontalpodautoscaler | HorizontalPodAutoscaler | Kind-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. |
httproute | HTTPRoute | Kind-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. |
imagepolicy | ImagePolicy | Kind-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. |
imagerepository | ImageRepository | Kind-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. |
imageupdateautomation | ImageUpdateAutomation | Kind-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. |
ingress | Ingress | Kind-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. |
ingressclass | IngressClass | Kind-named IngressClass: the whole IngressClassSpec (controller, required, and parameters), strictly decoded. Cluster-scoped; no environment policy applies — see below. |
issuer | Issuer | Kind-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. |
job | Job | Kind-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. |
limitrange | LimitRange | Kind-named LimitRange: the whole LimitRangeSpec (limits, required), strictly decoded — see below. |
listenerset | ListenerSet | Kind-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. |
manifests | any | Raw 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). |
mariadb | MariaDB | Kind-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-backup | Backup | Kind-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-physicalbackup | PhysicalBackup | Kind-named mariadb-operator PhysicalBackup: the whole PhysicalBackupSpec, strictly decoded, held as mariadb-backup is. Namespaced; no capability is required — see below. |
mariadb-restore | Restore | Kind-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-sqljob | SqlJob | Kind-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-bfdprofile | BFDProfile | Kind-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-bgpadvertisement | BGPAdvertisement | Kind-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-bgppeer | BGPPeer | Kind-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-community | Community | Kind-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-ipaddresspool | IPAddressPool | Kind-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-l2advertisement | L2Advertisement | Kind-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. |
mutatingadmissionpolicy | MutatingAdmissionPolicy | Kind-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. |
mutatingadmissionpolicybinding | MutatingAdmissionPolicyBinding | Kind-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. |
mutatingwebhookconfiguration | MutatingWebhookConfiguration | Kind-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. |
namespace | Namespace | Kind-named Namespace: the whole NamespaceSpec (finalizers), strictly decoded. Cluster-scoped, named after the component; its labels are the labels property — see below. |
networkpolicy | NetworkPolicy | Kind-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. |
oci | OCIRepository, Kustomization | Sync manifests from an OCI artifact (Flux). |
ocirepository | OCIRepository | Kind-named: the full Flux OCIRepositorySpec, with no Kustomization (compare oci). |
passthrough | any (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). |
persistentvolume | PersistentVolume | Kind-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. |
persistentvolumeclaim | PersistentVolumeClaim | Kind-named claim: size, storageClassName, accessModes, volumeMode, selector, dataSourceRef, volumeName, volumeAttributesClassName. A workload mounts it with a pvc volume’s claimName — see below. |
pod | Pod | Kind-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. |
poddisruptionbudget | PodDisruptionBudget | Kind-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. |
podmonitor | PodMonitor | Kind-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. |
podtemplate | PodTemplate | Kind-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. |
postgresql | CNPG Cluster, Pooler, ObjectStore, Database, ScheduledBackup | CloudNativePG database (backup/monitoring/pooling). |
priorityclass | PriorityClass | Kind-named PriorityClass: value (0 when unauthored), globalDefault, description, preemptionPolicy, strictly decoded. Cluster-scoped; no environment policy applies — see below. |
prometheus | Prometheus | Kind-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-probe | Probe | Kind-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. |
prometheusrule | PrometheusRule | Kind-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. |
referencegrant | ReferenceGrant | Kind-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. |
replicaset | ReplicaSet | Kind-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. |
replicationcontroller | ReplicationController | Kind-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. |
replicationdestination | ReplicationDestination | Kind-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. |
replicationsource | ReplicationSource | Kind-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. |
resourcequota | ResourceQuota | Kind-named ResourceQuota: the whole ResourceQuotaSpec (hard, scopes, scopeSelector), strictly decoded — see below. |
resourcesetinputprovider | ResourceSetInputProvider | Kind-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. |
role | Role | Kind-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. |
rolebinding | RoleBinding | Kind-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. |
runtimeclass | RuntimeClass | Kind-named RuntimeClass: handler (required), overhead, scheduling, strictly decoded. Cluster-scoped; no environment policy applies — see below. |
secret | Secret | Kind-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. |
secretstore | SecretStore | Kind-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. |
service | Service | Kind-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. |
serviceaccount | ServiceAccount | Kind-named ServiceAccount: automountServiceAccountToken, imagePullSecrets. A workload names it with serviceAccountName — see below. |
servicecidr | ServiceCIDR | Kind-named ServiceCIDR: the whole ServiceCIDRSpec (cidrs, required, at least one), strictly decoded. Cluster-scoped; no environment policy applies — see below. |
servicemonitor | ServiceMonitor | Kind-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. |
statefulset | StatefulSet | Kind-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. |
storageclass | StorageClass | Kind-named StorageClass: the object’s fields beside its identity (provisioner, required, parameters, reclaimPolicy, …), strictly decoded. Cluster-scoped; no environment policy applies — see below. |
tcproute | TCPRoute | Kind-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. |
thanosruler | ThanosRuler | Kind-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-certificate | Certificate | Higher-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”. |
tlsroute | TLSRoute | Kind-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. |
udproute | UDPRoute | Kind-named Gateway API UDPRoute: the whole UDPRouteSpec, strictly decoded; required as on a tcproute, and an authored object on the same terms — see below. |
validatingadmissionpolicy | ValidatingAdmissionPolicy | Kind-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. |
validatingadmissionpolicybinding | ValidatingAdmissionPolicyBinding | Kind-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. |
validatingwebhookconfiguration | ValidatingWebhookConfiguration | Kind-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-agent | VMAgent | Kind-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-alert | VMAlert | Kind-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-single | VMSingle | Kind-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. |
volumeattributesclass | VolumeAttributesClass | Kind-named VolumeAttributesClass: driverName and parameters (both required, parameters with at least one entry), strictly decoded. Cluster-scoped; no environment policy applies — see below. |
webservice | Deployment, 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. |
worker | Deployment, 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_CoversEveryConstructorreads 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_MatchesCallSitesholds the Status and Type columns to this package and../traits: akindrow’s constructor is called here, atraitrow’s there or here (a trait may build through this package, asconfigmapdoes), and amissing,heldornot authorablerow’s by neither. Akindorcomponentrow’s Type is a type a handler or lowering rule of this package declares contract metadata for, atraitrow’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 componenttype.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 traittype.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’sserviceare written as authored. - What a binding names is not resolved at build: neither the policy of its
policyNamenor the parameter resources of itsparamRef. 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/v1from 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 aClusterProfilethat statesspec.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.
| Constructor | Kind | Status | Type | Decode | Notes |
|---|---|---|---|---|---|
kubernetes.CreateAPIService | apiregistration.k8s.io/v1 APIService (cluster-scoped) | kind | apiservice | strict decode of APIServiceSpec | group, 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.CreateBackendTLSPolicy | gateway.networking.k8s.io/v1 BackendTLSPolicy | kind | backendtlspolicy | strict decode of BackendTLSPolicySpec | targetRefs, 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.CreateBinding | v1 Binding | not authorable | - | - | A request body for a pod’s binding subresource, not a stored object. |
kubernetes.CreateCSIDriver | storage.k8s.io/v1 CSIDriver (cluster-scoped) | kind | csidriver | strict decode of CSIDriverSpec | The 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.CreateCSINode | storage.k8s.io/v1 CSINode (cluster-scoped) | not authorable | - | - | Written by the kubelet for the CSI drivers on its node. |
kubernetes.CreateCSIStorageCapacity | storage.k8s.io/v1 CSIStorageCapacity | not authorable | - | - | Written by a CSI driver’s provisioner. |
kubernetes.CreateClusterRole | rbac.authorization.k8s.io/v1 ClusterRole (cluster-scoped) | kind | clusterrole | strict decode of the object, less kind, apiVersion and metadata | Ungated: 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.CreateClusterRoleBinding | rbac.authorization.k8s.io/v1 ClusterRoleBinding (cluster-scoped) | kind | clusterrolebinding | strict decode of the object, less kind, apiVersion and metadata | Ungated: 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.CreateComponentStatus | v1 ComponentStatus (cluster-scoped) | not authorable | - | - | Read-only: the API server computes it. |
kubernetes.CreateConfigMap | v1 ConfigMap | kind | configmap | hand-written parser | The configmap trait builds through the same path. |
kubernetes.CreateControllerRevision | apps/v1 ControllerRevision | not authorable | - | - | Written by the StatefulSet and DaemonSet controllers. |
kubernetes.CreateCronJob | batch/v1 CronJob | kind | cronjob | strict decode of CronJobSpec | - |
kubernetes.CreateCustomResourceDefinition | apiextensions.k8s.io/v1 CustomResourceDefinition (cluster-scoped) | component | crd | the manifest parser, CustomResourceDefinition documents only | The stated exception: an application takes its CRDs from upstream files (inline or url), so no kind component projects the spec. |
kubernetes.CreateDaemonSet | apps/v1 DaemonSet | kind | daemonset | strict decode of DaemonSetSpec, as replicaset | - |
kubernetes.CreateDeployment | apps/v1 Deployment | kind | deployment | strict decode of DeploymentSpec, as replicaset | webservice and worker build theirs through a hand-written parser of their own, as the member role-deployment, which no document authors. |
kubernetes.CreateEndpointSlice | discovery.k8s.io/v1 EndpointSlice | kind | endpointslice | strict decode of the object, less kind, apiVersion and metadata | A 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.CreateEndpoints | v1 Endpoints | not authorable | - | - | Not offered: deprecated upstream in favour of EndpointSlice. |
kubernetes.CreateEvent | v1 Event | not authorable | - | - | A record the system writes at run time. |
kubernetes.CreateEviction | policy/v1 Eviction | not authorable | - | - | A request body for a pod’s eviction subresource, not a stored object. |
kubernetes.CreateGRPCRoute | gateway.networking.k8s.io/v1 GRPCRoute | kind | grpcroute | strict decode of GRPCRouteSpec | On 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.CreateGateway | gateway.networking.k8s.io/v1 Gateway | kind | gateway | strict decode of GatewaySpec | gatewayClassName 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.CreateGatewayClass | gateway.networking.k8s.io/v1 GatewayClass (cluster-scoped) | kind | gatewayclass | strict decode of GatewayClassSpec | controllerName must be written, and of a parametersRef that is authored its group, kind and name. No capability is required. No environment policy applies. |
kubernetes.CreateHTTPRoute | gateway.networking.k8s.io/v1 HTTPRoute | kind | httproute | strict decode of HTTPRouteSpec | No 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.CreateHorizontalPodAutoscaler | autoscaling/v2 HorizontalPodAutoscaler | kind | horizontalpodautoscaler | strict decode of HorizontalPodAutoscalerSpec | scaleTargetRef 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.CreateIPAddress | networking.k8s.io/v1 IPAddress (cluster-scoped) | not authorable | - | - | Allocated by the API server for a Service. |
kubernetes.CreateIngress | networking.k8s.io/v1 Ingress | kind | ingress | strict decode of IngressSpec | The 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.CreateIngressClass | networking.k8s.io/v1 IngressClass (cluster-scoped) | kind | ingressclass | strict decode of IngressClassSpec | The 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.CreateJob | batch/v1 Job | kind | job | strict decode of JobSpec | - |
kubernetes.CreateLease | coordination.k8s.io/v1 Lease | not authorable | - | - | Written at run time by its holder: a leader-election client, or the kubelet for its node’s heartbeat. |
kubernetes.CreateLimitRange | v1 LimitRange | kind | limitrange | strict decode of LimitRangeSpec | - |
kubernetes.CreateListenerSet | gateway.networking.k8s.io/v1 ListenerSet | kind | listenerset | strict decode of ListenerSetSpec | parentRef 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.CreateMutatingAdmissionPolicy | admissionregistration.k8s.io/v1 MutatingAdmissionPolicy (cluster-scoped) | kind | mutatingadmissionpolicy | strict decode of MutatingAdmissionPolicySpec | As 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.CreateMutatingAdmissionPolicyBinding | admissionregistration.k8s.io/v1 MutatingAdmissionPolicyBinding (cluster-scoped) | kind | mutatingadmissionpolicybinding | strict decode of MutatingAdmissionPolicyBindingSpec | As 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.CreateMutatingWebhookConfiguration | admissionregistration.k8s.io/v1 MutatingWebhookConfiguration (cluster-scoped) | kind | mutatingwebhookconfiguration | strict decode of the object, less kind, apiVersion and metadata | As 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.CreateNamespace | v1 Namespace (cluster-scoped) | kind | namespace | strict decode of NamespaceSpec | The component name is the Namespace’s name. Its labels and annotations are the labels and annotations properties. |
kubernetes.CreateNetworkPolicy | networking.k8s.io/v1 NetworkPolicy | kind | networkpolicy | strict decode of NetworkPolicySpec | No 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.CreateNode | v1 Node (cluster-scoped) | not authorable | - | - | Registered by the kubelet. |
kubernetes.CreatePersistentVolume | v1 PersistentVolume (cluster-scoped) | kind | persistentvolume | strict decode of PersistentVolumeSpec | Held to environment policy on every path that produces one. |
kubernetes.CreatePersistentVolumeClaim | v1 PersistentVolumeClaim | kind | persistentvolumeclaim | hand-written parser | The pvc trait builds through the same path. |
kubernetes.CreatePod | v1 Pod | kind | pod | strict decode of PodSpec | Held to environment policy by the check the rendered paths run on a Pod; ephemeralContainers, priority and overhead refused. |
kubernetes.CreatePodDisruptionBudget | policy/v1 PodDisruptionBudget | kind | poddisruptionbudget | strict decode of PodDisruptionBudgetSpec | No 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.CreatePodTemplate | v1 PodTemplate | kind | podtemplate | strict 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.CreatePriorityClass | scheduling.k8s.io/v1 PriorityClass (cluster-scoped) | kind | priorityclass | strict decode of the object, less kind, apiVersion and metadata | The 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.CreateRangeAllocation | v1 RangeAllocation (cluster-scoped) | not authorable | - | - | The API server’s own allocation record. |
kubernetes.CreateReferenceGrant | gateway.networking.k8s.io/v1 ReferenceGrant | kind | referencegrant | strict decode of ReferenceGrantSpec | from 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.CreateReplicaSet | apps/v1 ReplicaSet | kind | replicaset | strict decode of ReplicaSetSpec | Held 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.CreateReplicationController | v1 ReplicationController | kind | replicationcontroller | strict decode of ReplicationControllerSpec | Held 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.CreateResourceQuota | v1 ResourceQuota | kind | resourcequota | strict decode of ResourceQuotaSpec | - |
kubernetes.CreateRole | rbac.authorization.k8s.io/v1 Role | kind | role | strict decode of the object, less kind, apiVersion and metadata | Ungated: 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.CreateRoleBinding | rbac.authorization.k8s.io/v1 RoleBinding | kind | rolebinding | strict decode of the object, less kind, apiVersion and metadata | Ungated: 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.CreateRuntimeClass | node.k8s.io/v1 RuntimeClass (cluster-scoped) | kind | runtimeclass | strict decode of the object, less kind, apiVersion and metadata | The 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.CreateSecret | v1 Secret | kind | secret | hand-written parser | The 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.CreateService | v1 Service | kind | service | hand-written parser | - |
kubernetes.CreateServiceAccount | v1 ServiceAccount | kind | serviceaccount | hand-written parser | - |
kubernetes.CreateServiceCIDR | networking.k8s.io/v1 ServiceCIDR (cluster-scoped) | kind | servicecidr | strict decode of ServiceCIDRSpec | The 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.CreateStatefulSet | apps/v1 StatefulSet | kind | statefulset | strict decode of StatefulSetSpec, as replicaset | A claim template is a raw PersistentVolumeClaim; the pvc capability’s storage class fills one that authors none. |
kubernetes.CreateStorageClass | storage.k8s.io/v1 StorageClass (cluster-scoped) | kind | storageclass | strict decode of the object, less kind, apiVersion and metadata | The 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.CreateTCPRoute | gateway.networking.k8s.io/v1 TCPRoute | kind | tcproute | strict decode of TCPRouteSpec | No 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.CreateTLSRoute | gateway.networking.k8s.io/v1 TLSRoute | kind | tlsroute | strict decode of TLSRouteSpec | As 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.CreateUDPRoute | gateway.networking.k8s.io/v1 UDPRoute | kind | udproute | strict decode of UDPRouteSpec | As 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.CreateValidatingAdmissionPolicy | admissionregistration.k8s.io/v1 ValidatingAdmissionPolicy (cluster-scoped) | kind | validatingadmissionpolicy | strict decode of ValidatingAdmissionPolicySpec | The 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.CreateValidatingAdmissionPolicyBinding | admissionregistration.k8s.io/v1 ValidatingAdmissionPolicyBinding (cluster-scoped) | kind | validatingadmissionpolicybinding | strict decode of ValidatingAdmissionPolicyBindingSpec | policyName 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.CreateValidatingWebhookConfiguration | admissionregistration.k8s.io/v1 ValidatingWebhookConfiguration (cluster-scoped) | kind | validatingwebhookconfiguration | strict decode of the object, less kind, apiVersion and metadata | The 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.CreateVolumeAttachment | storage.k8s.io/v1 VolumeAttachment (cluster-scoped) | not authorable | - | - | Written by the attach/detach controller. |
kubernetes.CreateVolumeAttributesClass | storage.k8s.io/v1 VolumeAttributesClass (cluster-scoped) | kind | volumeattributesclass | strict decode of the object, less kind, apiVersion and metadata | The 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.CreateCertificate | cert-manager.io/v1 Certificate | kind | certificate | strict decode of CertificateSpec | Its 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.CreateCertificateRequest | cert-manager.io/v1 CertificateRequest | not authorable | - | - | A one-shot request cert-manager creates for a Certificate. |
certmanager.CreateChallenge | acme.cert-manager.io/v1 Challenge | not authorable | - | - | Created by cert-manager’s ACME issuer. |
certmanager.CreateClusterIssuer | cert-manager.io/v1 ClusterIssuer (cluster-scoped) | kind | clusterissuer | strict decode of IssuerSpec | Its 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.CreateIssuer | cert-manager.io/v1 Issuer | kind | issuer | strict decode of IssuerSpec | As clusterissuer, in the build namespace. Its labels and annotations are the labels and annotations properties. |
certmanager.CreateOrder | acme.cert-manager.io/v1 Order | not authorable | - | - | Created by cert-manager’s ACME issuer. |
cilium.CreateCiliumBGPAdvertisement | cilium.io/v2 CiliumBGPAdvertisement (cluster-scoped) | kind | cilium-bgpadvertisement | strict decode of CiliumBGPAdvertisementSpec | The 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.CreateCiliumBGPClusterConfig | cilium.io/v2 CiliumBGPClusterConfig (cluster-scoped) | kind | cilium-bgpclusterconfig | strict decode of CiliumBGPClusterConfigSpec | The 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.CreateCiliumBGPNodeConfig | cilium.io/v2 CiliumBGPNodeConfig (cluster-scoped) | not authorable | - | - | Generated by the Cilium operator from a CiliumBGPClusterConfig. |
cilium.CreateCiliumBGPNodeConfigOverride | cilium.io/v2 CiliumBGPNodeConfigOverride (cluster-scoped) | kind | cilium-bgpnodeconfigoverride | strict decode of CiliumBGPNodeConfigOverrideSpec | The 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.CreateCiliumBGPPeerConfig | cilium.io/v2 CiliumBGPPeerConfig (cluster-scoped) | kind | cilium-bgppeerconfig | strict decode of CiliumBGPPeerConfigSpec | The 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.CreateCiliumCIDRGroup | cilium.io/v2 CiliumCIDRGroup (cluster-scoped) | kind | cilium-cidrgroup | strict decode of CiliumCIDRGroupSpec | The 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.CreateCiliumClusterwideEnvoyConfig | cilium.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.CreateCiliumClusterwideNetworkPolicy | cilium.io/v2 CiliumClusterwideNetworkPolicy (cluster-scoped) | kind | cilium-clusterwidenetworkpolicy | strict decode of spec and specs into the Cilium Rule | The 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.CreateCiliumEgressGatewayPolicy | cilium.io/v2 CiliumEgressGatewayPolicy (cluster-scoped) | kind | cilium-egressgatewaypolicy | strict decode of CiliumEgressGatewayPolicySpec | The 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.CreateCiliumEndpoint | cilium.io/v2 CiliumEndpoint | not authorable | - | - | Written by the Cilium agent. |
cilium.CreateCiliumEnvoyConfig | cilium.io/v2 CiliumEnvoyConfig | held | - | - | 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.CreateCiliumIdentity | cilium.io/v2 CiliumIdentity (cluster-scoped) | not authorable | - | - | Written by Cilium when it allocates an identity. |
cilium.CreateCiliumLoadBalancerIPPool | cilium.io/v2 CiliumLoadBalancerIPPool (cluster-scoped) | kind | cilium-loadbalancerippool | strict decode of CiliumLoadBalancerIPPoolSpec | The 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.CreateCiliumLocalRedirectPolicy | cilium.io/v2 CiliumLocalRedirectPolicy | kind | cilium-localredirectpolicy | strict decode of CiliumLocalRedirectPolicySpec | The 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.CreateCiliumNetworkPolicy | cilium.io/v2 CiliumNetworkPolicy | kind | cilium-networkpolicy | strict decode of spec and specs into the Cilium Rule | The 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.CreateCiliumNode | cilium.io/v2 CiliumNode (cluster-scoped) | not authorable | - | - | Written by the Cilium agent for its node. |
cilium.CreateCiliumNodeConfig | cilium.io/v2 CiliumNodeConfig | kind | cilium-nodeconfig | strict decode of CiliumNodeConfigSpec | The 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.CreateBackup | postgresql.cnpg.io/v1 Backup | kind | cnpg-backup | strict decode of BackupSpec | The 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.CreateCluster | postgresql.cnpg.io/v1 Cluster | kind | cnpg-cluster | strict decode of ClusterSpec | postgresql lowers onto it. |
cnpg.CreateClusterImageCatalog | postgresql.cnpg.io/v1 ClusterImageCatalog (cluster-scoped) | kind | cnpg-clusterimagecatalog | strict decode of ImageCatalogSpec | As cnpg-imagecatalog, with no namespace. Its labels and annotations are the labels and annotations properties. |
cnpg.CreateDatabase | postgresql.cnpg.io/v1 Database | kind | cnpg-database | strict decode of DatabaseSpec | postgresql lowers onto it. |
cnpg.CreateDatabaseRole | postgresql.cnpg.io/v1 DatabaseRole | kind | cnpg-databaserole | strict decode of DatabaseRoleSpec | The 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.CreateFailoverQuorum | postgresql.cnpg.io/v1 FailoverQuorum | not authorable | - | - | Written by the CloudNativePG operator. |
cnpg.CreateImageCatalog | postgresql.cnpg.io/v1 ImageCatalog | kind | cnpg-imagecatalog | strict decode of ImageCatalogSpec | The 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.CreateObjectStore | barmancloud.cnpg.io/v1 ObjectStore | kind | cnpg-objectstore | strict decode of ObjectStoreSpec | postgresql lowers onto it. |
cnpg.CreatePooler | postgresql.cnpg.io/v1 Pooler | kind | cnpg-pooler | strict decode of PoolerSpec | postgresql lowers onto it. |
cnpg.CreatePublication | postgresql.cnpg.io/v1 Publication | kind | cnpg-publication | strict decode of PublicationSpec | The 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.CreateScheduledBackup | postgresql.cnpg.io/v1 ScheduledBackup | kind | cnpg-scheduledbackup | strict decode of ScheduledBackupSpec | The 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.CreateSubscription | postgresql.cnpg.io/v1 Subscription | kind | cnpg-subscription | strict decode of SubscriptionSpec | The 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.CreateClusterExternalSecret | external-secrets.io/v1 ClusterExternalSecret (cluster-scoped) | kind | clusterexternalsecret | strict decode of ClusterExternalSecretSpec | The 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.CreateClusterSecretStore | external-secrets.io/v1 ClusterSecretStore (cluster-scoped) | kind | clustersecretstore | strict decode of SecretStoreSpec | The 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.CreateExternalSecret | external-secrets.io/v1 ExternalSecret | kind | externalsecret | strict decode of ExternalSecretSpec | Its 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.CreateSecretStore | external-secrets.io/v1 SecretStore | kind | secretstore | strict decode of SecretStoreSpec | As clustersecretstore, in the build namespace. Its labels and annotations are the labels and annotations properties. |
fluxcd.CreateAlert | notification.toolkit.fluxcd.io/v1 Alert | kind | fluxcd-alert | strict decode of AlertSpec | providerRef 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.CreateArtifactGenerator | source.extensions.fluxcd.io/v1beta1 ArtifactGenerator | kind | artifactgenerator | strict decode of ArtifactGeneratorSpec | sources 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.CreateBucket | source.toolkit.fluxcd.io/v1 Bucket | kind | bucket | strict decode of BucketSpec | - |
fluxcd.CreateExternalArtifact | source.toolkit.fluxcd.io/v1 ExternalArtifact | not authorable | - | - | Written by the controller that produces the artifact. |
fluxcd.CreateFluxInstance | fluxcd.controlplane.io/v1 FluxInstance | held | - | - | 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.CreateFluxReport | fluxcd.controlplane.io/v1 FluxReport | not authorable | - | - | Written by the Flux operator. |
fluxcd.CreateGitRepository | source.toolkit.fluxcd.io/v1 GitRepository | kind | gitrepository | strict decode of GitRepositorySpec | - |
fluxcd.CreateHelmChart | source.toolkit.fluxcd.io/v1 HelmChart | kind | helmchart | strict decode of HelmChartSpec | - |
fluxcd.CreateHelmRelease | helm.toolkit.fluxcd.io/v2 HelmRelease | kind | helmrelease | strict decode of HelmReleaseSpec | helm 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.CreateHelmRepository | source.toolkit.fluxcd.io/v1 HelmRepository | kind | helmrepository | strict decode of HelmRepositorySpec | - |
fluxcd.CreateImagePolicy | image.toolkit.fluxcd.io/v1 ImagePolicy | kind | imagepolicy | strict decode of ImagePolicySpec | imageRepositoryRef 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.CreateImageRepository | image.toolkit.fluxcd.io/v1 ImageRepository | kind | imagerepository | strict decode of ImageRepositorySpec | image 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.CreateImageUpdateAutomation | image.toolkit.fluxcd.io/v1 ImageUpdateAutomation | kind | imageupdateautomation | strict decode of ImageUpdateAutomationSpec | sourceRef 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.CreateKustomization | kustomize.toolkit.fluxcd.io/v1 Kustomization | kind | fluxcd-kustomization | strict decode of KustomizationSpec | oci lowers onto it. targetNamespace is never defaulted. |
fluxcd.CreateOCIRepository | source.toolkit.fluxcd.io/v1 OCIRepository | kind | ocirepository | strict decode of OCIRepositorySpec | oci lowers onto it. |
fluxcd.CreateProvider | notification.toolkit.fluxcd.io/v1 Provider | kind | fluxcd-provider | strict decode of ProviderSpec | type 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.CreateReceiver | notification.toolkit.fluxcd.io/v1 Receiver | kind | fluxcd-receiver | strict decode of ReceiverSpec | type 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.CreateResourceSet | fluxcd.controlplane.io/v1 ResourceSet | held | - | - | 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.CreateResourceSetInputProvider | fluxcd.controlplane.io/v1 ResourceSetInputProvider | kind | resourcesetinputprovider | strict decode of ResourceSetInputProviderSpec | type 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.CreateBackup | k8s.mariadb.com/v1alpha1 Backup | kind | mariadb-backup | strict decode of BackupSpec | See mariadb-backup above. |
mariadb.CreateConnection | k8s.mariadb.com/v1alpha1 Connection | missing | - | - | Ships as the mariadb-connection definition (pkg/oam/shipped), not as a component of this package. |
mariadb.CreateDatabase | k8s.mariadb.com/v1alpha1 Database | missing | - | - | Ships as the mariadb-database definition. |
mariadb.CreateExternalMariaDB | k8s.mariadb.com/v1alpha1 ExternalMariaDB | missing | - | - | Ships as the mariadb-externalmariadb definition. |
mariadb.CreateGrant | k8s.mariadb.com/v1alpha1 Grant | missing | - | - | Ships as the mariadb-grant definition. |
mariadb.CreateMariaDB | k8s.mariadb.com/v1alpha1 MariaDB | kind | mariadb | strict decode of MariaDBSpec | See mariadb above. |
mariadb.CreatePhysicalBackup | k8s.mariadb.com/v1alpha1 PhysicalBackup | kind | mariadb-physicalbackup | strict decode of PhysicalBackupSpec | See mariadb-physicalbackup above. |
mariadb.CreatePointInTimeRecovery | k8s.mariadb.com/v1alpha1 PointInTimeRecovery | missing | - | - | Ships as the mariadb-pointintimerecovery definition. |
mariadb.CreateRestore | k8s.mariadb.com/v1alpha1 Restore | kind | mariadb-restore | strict decode of RestoreSpec | See mariadb-restore above. |
mariadb.CreateSqlJob | k8s.mariadb.com/v1alpha1 SqlJob | kind | mariadb-sqljob | strict decode of SqlJobSpec | See mariadb-sqljob above. |
mariadb.CreateUser | k8s.mariadb.com/v1alpha1 User | missing | - | - | Ships as the mariadb-user definition. |
metallb.CreateBFDProfile | metallb.io/v1beta1 BFDProfile | kind | metallb-bfdprofile | strict decode of BFDProfileSpec | The 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.CreateBGPAdvertisement | metallb.io/v1beta1 BGPAdvertisement | kind | metallb-bgpadvertisement | strict decode of BGPAdvertisementSpec | The 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.CreateBGPPeer | metallb.io/v1beta2 BGPPeer | kind | metallb-bgppeer | strict decode of BGPPeerSpec | The 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.CreateCommunity | metallb.io/v1beta1 Community | kind | metallb-community | strict decode of CommunitySpec | The 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.CreateConfigurationState | metallb.io/v1beta1 ConfigurationState | not authorable | - | - | Status MetalLB writes. |
metallb.CreateIPAddressPool | metallb.io/v1beta1 IPAddressPool | kind | metallb-ipaddresspool | strict decode of IPAddressPoolSpec | The 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.CreateL2Advertisement | metallb.io/v1beta1 L2Advertisement | kind | metallb-l2advertisement | strict decode of L2AdvertisementSpec | The 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.CreateServiceBGPStatus | metallb.io/v1beta1 ServiceBGPStatus | not authorable | - | - | Status MetalLB writes. |
metallb.CreateServiceL2Status | metallb.io/v1beta1 ServiceL2Status | not authorable | - | - | Status MetalLB writes. |
prometheus.CreateAlertmanager | monitoring.coreos.com/v1 Alertmanager | kind | alertmanager | strict decode of AlertmanagerSpec | Held 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.CreatePodMonitor | monitoring.coreos.com/v1 PodMonitor | kind | podmonitor | strict decode of PodMonitorSpec | selector must be written, and the three required fields of an endpoint’s oauth2. No environment policy applies, and no capability is required. |
prometheus.CreateProbe | monitoring.coreos.com/v1 Probe | kind | prometheus-probe | strict decode of ProbeSpec | prober.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.CreatePrometheus | monitoring.coreos.com/v1 Prometheus | kind | prometheus | strict decode of PrometheusSpec | Held 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.CreatePrometheusRule | monitoring.coreos.com/v1 PrometheusRule | kind | prometheusrule | strict decode of PrometheusRuleSpec | A group’s name and a rule’s expr must be written. No environment policy applies, and no capability is required. |
prometheus.CreateServiceMonitor | monitoring.coreos.com/v1 ServiceMonitor | kind | servicemonitor | strict decode of ServiceMonitorSpec | endpoints 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.CreateThanosRuler | monitoring.coreos.com/v1 ThanosRuler | kind | thanosruler | strict decode of ThanosRulerSpec; its labels is the externalLabels property | Held 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.CreateVMAgent | operator.victoriametrics.com/v1beta1 VMAgent | kind | vm-agent | strict decode of VMAgentSpec | See vm-agent above. |
victoriametrics.CreateVMAlert | operator.victoriametrics.com/v1beta1 VMAlert | kind | vm-alert | strict decode of VMAlertSpec | See vm-alert above. |
victoriametrics.CreateVMSingle | operator.victoriametrics.com/v1beta1 VMSingle | kind | vm-single | strict decode of VMSingleSpec | See vm-single above. |
volsync.CreateReplicationDestination | volsync.backube/v1alpha1 ReplicationDestination | kind | replicationdestination | strict decode of ReplicationDestinationSpec | As replicationsource, without a Syncthing mover. Its labels and annotations are the labels and annotations properties. |
volsync.CreateReplicationSource | volsync.backube/v1alpha1 ReplicationSource | kind | replicationsource | strict decode of ReplicationSourceSpec | No 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.
- Common config: The properties every workload kind shares: containers, volumes, pod-level and deployment-level properties, and the StatefulSet-level properties.
- Policy defaults, endpoints and outputs: Policy defaults and their order, refusal classes, the pod view of a monitoring object, declared endpoints and declared outputs.
- Kinds: core workloads: webservice, worker, deployment, service, the core objects, statefulset, daemonset, cronjob, job, autoscaling and passthrough.
- Kinds: networking: Ingress, Gateway API, network policies and the Cilium kinds.
- Kinds: access and admission: API services, admission webhooks and policies, and the RBAC kinds.
- Kinds: Flux: The Flux notification and image kinds, the Flux Kustomization and the Flux source kinds.
- Kinds: Helm: helm, helmchart, helmrelease, helmtemplate and oci.
- Kinds: monitoring: Alertmanager, Thanos ruler, Prometheus and the monitoring objects.
- Kinds: MetalLB: The MetalLB kinds.
- Kinds: PostgreSQL and CloudNativePG: postgresql and the CloudNativePG kinds.
- Kinds: secrets, certificates and backup: Issuers and certificates, the External Secrets kinds and the VolSync kinds.
- Adding a kind component: where its lines go: Where the lines of a new kind component go.
- Upstream fields a hand-parsed kind does not read: The upstream fields a hand-parsed kind refuses or reads in another shape.
- Extending: How to extend the handler set.
- The null contract and two spellings of one field: What an explicit null means and the fields that have two spellings.
- Conventions: The conventions every kind follows: the app label, object names, metadata, selectors and unauthored required fields.
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:
- Authored — whatever the component’s
resourcesproperty set explicitly. The stringunlimitedunderlimits.cpuorlimits.memoryis 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 ofwebserviceandworker, and theirinitContainersandsidecarsentries. It is refused by name underrequests, underpodResourcesand onpostgresql(“no intrinsic default to opt out of”), under any resource name other than cpu and memory, and, with theresource-maximumrefusal class, when the policy setsMaxCPU()/MaxMemory()for that resource: an absent limit is no bound, so it is never read as under the maximum.nullis still absence, not an opt-out. A policy sub-option to acceptunlimitedas 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 unlessobjectNamenames 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:postgresqlemits acnpg-scheduledbackupfor eachbackup.schedulesentry (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/v1API. It is built onpolicyHeldKind(policyFreeKindwith a policy check, see storageclass, below) and emits that one object in the build namespace, named after the component unlessobjectNamenames 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/v1alpha1MariaDB, 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 unlessobjectNamenames 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_SchemaCoversSpecholds it both ways), so a field the operator adds, removes or retypes fails a test at the next version bump. The kinds are built onpolicyHeldKindand applied by one walk of the decoded type (mariadb_common.go,mariadbWalk), not by a list of paths: everyResourceRequirementsgets the cpu and memory maxima, everySecurityContextgetsprivilegedand the capability lists, everyhostPathvolume is refused unless the policy allows host paths, every volume claim spec andstorage.sizegets the storage maximum, and a MariaDB’sreplicasgets 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), andTestMariadbKinds_WalkPlacespins 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 MariaDBreplicas,port,maintenance.drainGracePeriodSeconds, the three servicetypefields,updateStrategy.type,bootstrapFrom.logLevel,imageand, 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 agentport,imageandprobePortandbasicAuth.username(when basic auth is enabled) of Galera and replication (and an authored empty init containerimage), andgalera.replicaThreads,galera.sstandgalera.galeraLibPath; on the job kindsbackoffLimit,restartPolicy,logLevel,compressionand, on a Backup and a PhysicalBackup, a zeromaxRetention. The operator’s own SetDefaults, not the CRD, fills the ports,replicaThreads, the strings it derives,compression,maxRetentionand thebackoffLimitof a Backup and a PhysicalBackup. A PhysicalBackup of volume snapshots keeps itscompressionandbackoffLimit, 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.waitForItfill 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 enabledgaleraorreplicationandupdateStrategy.autoUpdateDataPlane: trueis 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’sPodSecurityContext(the type has nowindowsOptions, so nohostProcessswitch), anemptyDirsizeLimit, the operator’s admission webhooks and controller code (not read), and amariadblowering 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-databaseand the five others, seepkg/oam/shipped), andMaxScaleis out of scope. No capability is required. - webservice / worker —
image,replicas(default 1),port(webservice), plus theDeploymentSpec-level surface the two share —strategy,minReadySeconds,revisionHistoryLimit,pausedandprogressDeadlineSeconds(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-nameddeploymenttakes the upstream spec. They keep launcher’s own opinions:topologySpreadand the four-keyaffinityshorthand, and onwebservicetheportthat drives the Service. Neither publishes the rawcorev1affinity. Both publishtolerationsandtopologySpreadConstraintsas thecorev1shapes (go-kure/launcher#1473, see “Raw scheduling properties” above); authored constraints needtopologySpread: false. Thewebservicerule implements the optionaloam.EndpointProvider: it declares its own pods (app: <component-name>) on the declaredport(its singleportproperty drives both the container port and the Service port), letting a downstream platform synthesize generic app→app connections targeting a webservice.workerdeclares no in-cluster port and emits no Service, so it deliberately advertises no endpoint (not anEndpointProvider).
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 ofnetworkingv1.IngressSpec(ingressClassName,defaultBackend,tls,rules), the property map decoded strictly into that type under the null contract, two spellings of one field refused, andTestCoreKindSchemas_CoverSpecholding 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 adefaultBackendnor a rule, a path without apathTypeand 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/v1API: an Issuer, a ClusterIssuer and a Certificate. Each is built onpolicyHeldKind(policyFreeKindwith a policy check, see the storageclass entry) and emits that one object, named after the component unlessobjectNamenames it; the handler adds no label, no annotation and no default. Anissuerand acertificateare emitted in the build namespace and declare their object as namespaced. Aclusterissueris 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(fluxdefault |template),source(inlineurlwith optionalkindand, for a GitRepository,ref, for an OCI chart,digest; an inline Bucket’skind,endpoint,bucketName,provider,region,prefix; beside any of these anamefor 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,hookGroupNamePrefixandlayoutKustomizationName(each underdelivery: templateonly, see below), and the HelmRelease keysinterval,releaseName,targetNamespace,driftDetection,install,upgrade,valuesFrom. Reserved metadata keys (go-kure/launcher#1857): underdelivery: flux,helmholds every map key of its ownvaluesandsecretValuestoTransformContext.ReservedMetadataKeyswhen lowered (LoweringContext.CheckHelmValues), in everyvaluesMode, except the keys of a map right undernodeSelectorormatchLabels. The refusal names the component and the key’s path, never a value. Ahelmrelease’sspec.valuesis checked the same way by the ownership wrapper. Values an authoredvaluesFromentry reads stay unchecked. Underdelivery: templatethe values are not read; the rendered objects are checked instead.
Full entry: Kinds: Helm.
Opening lines of an entry:
- postgresql —
provider: cnpg,version(default16),storageSize(precedence: authored > policy defaultstorageSize>1Gi),replicas,backup(objectStore,objectStoreObjectName,retentionPolicy,serverName,schedules; see “Backup” below),monitoring.enabled,pooler.enabled,poolerName,managedRoles,databases(each with an optionalobjectName),clusterObjectName. The schema publishes what the parser refuses:recovery.sourceis required, itsobjectStoreNameandobjectStoreare an exactly-one group, andrecovery.target’s five selectors andbootstrap’sinitdbandpg_basebackupare at-most-one groups.clusterObjectNamenames 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 exposesComponentName() string(theoam.ComponentNamedinterface) so consumers can attribute the emitted resource to its owning OAM component.objectmust be a single object; a list is rejected.Generateemits the map verbatim as one resource and fills in metadata it finds missing:metadata.namedefaults to the component name when it is absent, empty, or not a string, and on a namespaced objectmetadata.namespacelikewise — 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 emittedUnstructuredcan be deep-copied (go-kure/launcher#1162); the config’s ownObjectkeeps the authored values. A number is anint64where it fits, afloat64where afloat64holds it exactly, and otherwise ajson.Numberwith its own digits (an integer beyond theint64range,9.223372036854775809e18, a1e-9999999), so no digit is rounded; an authoredjson.Numbertakes the type its text has, and an empty one is0, asencoding/jsonwrites 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, ajson.Numberthat 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 (ajson.RawMessagea 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[""]orlabels["a.b"], so that two different fields never share a path. A number beyondfloat64range 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 ofVMSingleSpec, decoded strictly into the base library’s types of the operator’s API (kure’spkg/kubernetes/victoriametrics), which kure holds to the release’s CRD. A field on which an authored0orfalsediffers 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 ofcontainersandinitContainers(image registry, privileged, capabilities, and a credential header in a probe or lifecycle hook where the policy forbids explicit secrets), the spec’s ownlivenessProbe,readinessProbeandstartupProbe(the same header, go-kure/launcher#1860),securityContext(the privileged and capability fields the operator copies onto every container it builds, and the pod’swindowsOptions.hostProcess),volumes(hostPath, an ephemeral claim’s storage, an image volume’s reference) and thestorageclaim.TestVMSingle_WalkPlacespins 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 intag, and holds it to the registry allowlist and the image level; with the licence the operator adds to a tag it derives fromcomponentVersion. Under an allowlist a repository left out ofimage, an emptyconfigReloaderImagewhere the operator starts a reloader (ingestOnlyMode: false, a relabel rule or a stream-aggregation rule:VMSingle.HasConfigReloader) and avmBackupwith 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, anAuthorizationorProxy-Authorizationentry of anyheaderslist, 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...Filefield can name a URL that VictoriaMetrics fetches. The forms that name a Secret pass. A relabelregexorifand a stream-aggregationmatchhold patterns, not URLs, and are not read.inlineScrapeConfigis read as one string, not as the YAML it holds. - With
serviceAccountNameunset andingestOnlyMode: 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 defaultingestOnlyMode, passes. An operator configured to watch some namespaces creates Roles instead; the build cannot see that setting and refuses in both cases. - A
vpasection 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’skeyandoperatorare held the same way, below the open nodes too. An authored null reads as absent everywhere, in a relabelregex,ifand a stream-aggregationmatchtoo. - Limits: the CRD leaves
affinity,containers,initContainers,volumes,topologySpreadConstraints,extraEnvs,serviceSpec.spec, the three probes,dnsConfig,securityContextandserviceScrapeSpecopen, so the build holds the Kubernetes types there and not the schema, and the fields the Kubernetes API requires below them (a container’sname) 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.
- The policy walks the decoded value: every
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 asvm-singleis, with the same walk, image, credential andvparules. What differs:- The CRDs require
remoteWrite(each with aurl) of a VMAgent anddatasource(with aurl) of a VMAlert; the schema publishes both required. - A default VMAgent starts a config reloader (
ingestOnlyModeabsent reads as false), so under an allowlist itsconfigReloaderImagemust be named. A VMAlert starts one only where it selects rules (selectAllByDefault,ruleSelectororruleNamespaceSelector). - With
serviceAccountNameunset, the operator creates a ClusterRole and a ClusterRoleBinding for a VMAgent, unlessingestOnlyModeis 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
claimTemplatesentry and ofstatefulStorageis held to the storage maximum.hpa.maxReplicasandhpa.minReplicasare held to the replica maximum, and an emptyhpa.metrics,hpa.behaviour.scaleUp.policiesorscaleDown.policiesis refused, since the API server then applies its default metric or policies. - Limits: each of
shardCountshards is a workload held to the replica maximum on its own, anddaemonSetModeruns one pod per node, which no replica maximum bounds.
- The CRDs require
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
Itemstype, 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.