Skip to main content

Shipped Definitions

Go Reference Go Reference

The component definitions and models that launcher ships inside the kurel binary (go-kure/launcher#1735). kurel build registers them before it reads an application’s own definitions/ and models/, so an application authors a shipped type with no file of its own.

err := registry.DeclareTypes(transformer)   // first: the models name built-in kinds by identity
set, err := shipped.Load(transformer)       // registers the embedded set; refuses a file that does not load
err = set.Clash(h.TypeName(), h.Identity()) // refuses an application's type that is shipped

The transformer must have registered the built-ins and declared their identities (registry.DeclareTypes, as kurel build does) before Load. On one that has not, Load refuses and names a shipped model file and a type reference it cannot resolve, in the form shipped model "<file>": model: spec.parts[<n>].type: unknown type reference "<kind>@v1": no registered type is named "<kind>". The models load in file name order, so the file and the kind it names change when a model is added. Load does not declare them itself: the caller owns what its transformer registers.

What ships

Definitions

TypeEmitsCRD
vm-ruleVMRule (operator.victoriametrics.com/v1beta1)VictoriaMetrics operator release v0.76.0
vm-service-scrapeVMServiceScrapethe same release
vm-pod-scrapeVMPodScrapethe same release
volume-snapshotVolumeSnapshot (snapshot.storage.k8s.io/v1, namespaced)external-snapshotter tag v8.7.1
volume-snapshot-classVolumeSnapshotClass (snapshot.storage.k8s.io/v1, cluster-scoped)the same tag
nfd-node-feature-ruleNodeFeatureRule (nfd.k8s-sigs.io/v1alpha1), cluster-scopednode-feature-discovery chart v0.20.1
mariadb-databaseDatabase (k8s.mariadb.com/v1alpha1)mariadb-operator release 26.10.2
mariadb-userUserthe same release
mariadb-grantGrantthe same release
mariadb-connectionConnectionthe same release
mariadb-pointintimerecoveryPointInTimeRecoverythe same release
mariadb-externalmariadbExternalMariaDBthe same release

A model names such a kind by its identity, <kind>.<group>@<version> (vmrule.operator.victoriametrics.com@v1beta1, volumesnapshot.snapshot.storage.k8s.io@v1, nodefeaturerule.nfd.k8s-sigs.io@v1alpha1, database.k8s.mariadb.com@v1alpha1).

The snapshot kinds start no pods (go-kure/launcher#1821). A VolumeSnapshot takes its closed spec (source, volumeSnapshotClassName) as properties. A VolumeSnapshotClass has no spec: its properties are the fields of the object, driver, deletionPolicy and parameters, and a policy that allows no cluster-scoped object refuses it (TestShippedSnapshotKindsFollowTheirScope). Neither lists podSpecs or markers.

NodeFeatureRule is cluster-scoped, so it passes only an environment policy that allows cluster-scoped objects; the scope comes from the pinned CRD (TestNodeFeatureRuleIsRefusedWhereClusterScopedObjectsAreNot). It starts no pods.

The six mariadb-* definitions are the kinds of the mariadb-operator’s API that start no pod (go-kure/launcher#1819); the five that start pods are Go kinds (mariadb, mariadb-backup, mariadb-physicalbackup, mariadb-restore, mariadb-sqljob), because only Go can bound their pods. The six CRDs were read for a field of each marker class, resources and claimSpec included, and the definitions state markerClasses: [secret, image, url, replicas, storage, hostPath, resources, claimSpec] (TestShippedDefinitionsStateEveryMarkerClass). The CRDs hold one such node: spec.image of mariadb-externalmariadb, the image the operator runs its operations on the external database with, marked image and held to the registry allowlist and the image level (TestMariadbExternalHoldsItsImageToThePolicy); a document that leaves it out has nothing to check, and the operator then chooses its own image from its configuration, which launcher cannot see. Every credential is a reference to a Secret, never a value: a key and a name for a password or an access key, and a name only for the TLS material of mariadb-connection and mariadb-externalmariadb, which reads the whole Secret. Not checked: the free-form params map of mariadb-connection and of the connection of mariadb-externalmariadb, which may carry a token; their secretTemplate.format, a text template the operator runs with the account’s username, password, host and port, into which a credential could be written as a literal (a secret marker would refuse every template that is not empty); and the addresses (host, storage.s3.endpoint, storage.azureBlob.serviceURL), which are a database or a backup store and not a source the build fetches from; launcher has no host policy, so none is marked url.

Each definition states markerClasses: [secret, image, url, replicas, storage, hostPath, resources, claimSpec] (go-kure/launcher#1818, go-kure/launcher#1833; field markers), so no policy refuses it for leaving a class out (TestShippedDefinitionsStateEveryMarkerClass). The six VictoriaMetrics, snapshot and NodeFeatureRule CRDs were read for a field of each class, resources and claimSpec included, which recognition also reads from the CRD (TestRecognize_MarkersOverThePinnedCRDs). They hold no image, replica count, storage size, volume, resource requirements or claim spec. The snapshot kinds hold no secret either: VolumeSnapshotClass.parameters is a free map of driver settings, which may name a Secret (its name, never its content) and which no marker reaches, since a marker path starts at spec; nothing reads that map, so a secret written there in the clear passes. The NodeFeatureRule spec closes its rule, matcher and taint objects, and holds names, labels, annotations, taints, matcher terms and two template strings, with no URL field. Its labels, annotations, vars and extendedResources are maps that take any key with a string value, and the two template strings are free text: the schema checks that each is a string, and no marker policy reads them, so none is marked. Its matchExpressions also take any key, and the schema validates each value as an object (a required op from a fixed list, an optional type, a list of strings for value). extendedResources maps a resource name to a quantity of a node resource, which is not a storage size and not a ResourceRequirements (it has no requests or limits), so it carries no storage or resources marker. In the VictoriaMetrics CRDs the credential fields are references to a Secret, except the free-form HTTP header lists, which carry credentials by their documented use (Authorization: Bearer ...): the four header-list paths are marked secret and refused under a policy that forbids explicit secrets (spec.groups[].headers[] and spec.groups[].notifier_headers[] of vm-rule, spec.endpoints[].vm_scrape_params.headers[] of vm-service-scrape, spec.podMetricsEndpoints[].vm_scrape_params.headers[] of vm-pod-scrape; TestShippedDefinitionsRefuseACredentialInAHeaderList). Not checked: the URL parameter maps (params, oauth2.endpoint_params), which are free-form too and may carry a token. A secret marker would refuse every scrape that sets a federation matcher under a ban on explicit secrets. The only URLs are the connection addresses proxyURL, oauth2.proxy_url and oauth2.token_url of a scrape, which the build does not fetch from and no policy reads, so none is marked url.

Models

ModelWritesDetail
s3-access.launcher.gokure.dev@v1the settings of an S3 bucket as a ConfigMap and, by the credentials route, the credentials as a Secret or an ExternalSecretThe s3-access model
workload.launcher.gokure.dev@v1 (short name workload)one workload in the mode service, worker or job, with an optional volume, exposure, database, monitoring, scaling and backupThe workload model
datastore.launcher.gokure.dev@v1 (short name datastore)one replicated stateful store: a StatefulSet with a headless and a client Service, and optionally a ConfigMap and a PodDisruptionBudgetThe datastore model

An application authors a shipped model by its identity, with no models/ directory (examples/s3-access, examples/workload-model).

Where it lives and how it loads

content/definitions/*.yaml are ComponentDefinition documents, and the CRD each pins sits in content/definitions/crds/, one YAML document per file. content/models/*.yaml are Model documents. Definitions load first, then models, each in file name order, so a shipped model may name a shipped definition’s type. The files load through the same loaders as an application’s own, so a CRD whose SHA-256 differs from its definition’s pin refuses the load, and a refusal names the file. A missing content/models directory holds no model. A shipped model registers with Registry.RegisterLazy: its expressions compile at the first build that uses it, not at every load, because every kurel build loads this set and compiling one model cost about 4 ms in a loaded process and about 22 ms more in a fresh kurel build (measured on one host, go-kure/launcher#1748). A test compiles each embedded model, so a model that does not compile fails CI, and a first use that finds one names the shipped file. The definitions and a shipped model’s file are also decoded once for the process (go-kure/launcher#1790): a definition’s handler does not change after the load, and a decoded model is read-only. LoadFS decodes the definitions on every call, because the file systems are the caller’s.

A shipped type is never replaced

Set.Clash refuses an application’s definition that has the same authored type name as a shipped definition, an application’s model whose short name is one, and either that has the same identity as a shipped definition or model. The refusal names the type and the shipped file, and kurel build adds the application’s file. Another version of a shipped kind is another type and is not a clash. There is no override.

Reading the shipped items without registering them

A consumer that keeps its own type bookkeeping (type sets, published schemas, identity declarations) reads the items and registers them through its own path (go-kure/launcher#1776):

defs, err := shipped.Definitions() // []shipped.DefinitionFile{File, Handler}, in file name order
models, err := shipped.Models()    // []shipped.ModelFile{File, Model}, in file name order

The consumer does what Load does for each item:

  1. Declare the built-ins’ identities first (registry.DeclareTypes): a shipped model names built-in kinds by identity.
  2. Register every definition, in the order returned, with definition.Register(t, h), then call t.MarkScopeTrusted(h.TypeName()). Without the mark the object kind check counts the scope a definition’s pinned CRD gives its kind only for a kind the policy names (go-kure/launcher#1758).
  3. Register every model after all the definitions, in the order returned, with model.NewRegistry(t).RegisterLazy(m.Model, "shipped model "+m.File), or Register to compile it now. A test compiles each shipped model, and the source text names the file if a lazy compile fails at the first build.
  4. Keep its own record of what is shipped: a Set for Set.Clash comes only from Load and LoadFS, and a consumer cannot build one. Set.Clash reads a definition by Handler.TypeName() and by Handler.Identity().Canonical().String(), and a model by Model.Key(); the consumer keys its record the same way, each to its file.

Definitions and models are decoded once for the process and shared, as Load shares them: every call returns a new slice of the same items. A definition’s handler is read-only (PropertySchema returns a copy), and a model must never be modified. A file that does not load refuses the call and names the file, with the text LoadFS gives. A test registers the returned items on a transformer and compares what it holds with what Load registers on another.

The s3-access model

s3-access.launcher.gokure.dev@v1 (go-kure/launcher#1738) says how to reach an S3 bucket, whatever S3 is behind it: a ConfigMap of the settings and, by the credentials route, the credentials in the keys a consumer reads. It creates no bucket (that is backend specific) and mounts nothing. A component of its type takes these inputs:

InputTypeDefaultMeaning
endpointstringrequiredThe endpoint URL, for example https://s3.example:9000
regionstringus-east-1
bucketstringrequired
prefixstring""A path inside the bucket
pathStylebooleantruePath-style addressing, because a custom endpoint rarely has wildcard DNS
caSecret{name, key}noneA Secret that holds the endpoint’s CA; key defaults to ca.crt. Only named in the ConfigMap
credentialsobjectrequiredExactly one of the three routes below

Credentials routes. credentials holds exactly one of these:

RouteWritesUnder a policy that forbids explicit secrets
existingSecret: <name>the ConfigMap only; the credentials stay in the Secret you madeallowed
externalSecret: {storeRef, accessKeyId, secretAccessKey, format, resticPassword, keys}the ConfigMap and an ExternalSecret whose template gives the keys of the format. storeRef is {name, kind} (kind defaults to ClusterSecretStore); each credential is a remote reference {key, property}allowed
values: {accessKeyId, secretAccessKey, format, resticPassword, keys}the ConfigMap and a Secret holding the valuesrefused with class RefusalExplicitSecret (the secret kind’s refusal)

format names the keys the credentials take. It defaults to plain. It is an input of values and of externalSecret only, never of existingSecret: the model cannot re-key a Secret it did not write (whether the External Secrets Operator could do it is not confirmed), so a format beside existingSecret is refused as an unknown field, not ignored. The design page proposed a top-level format; it sits inside the two routes so that it cannot be set where it does nothing.

formatKeys writtenSource
plainaccess-key-id, secret-access-key, endpoint, bucket-namethe model’s own names, the first two as both Garage operators write them
aws-envAWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION, AWS_ENDPOINT_URL_S3the AWS SDK reference guide. AWS_ENDPOINT_URL_S3 is derived from the AWS_ENDPOINT_URL_<SERVICE> pattern, not printed there
credentials-fileone key, credentials, holding an AWS shared credentials file ([default], aws_access_key_id, aws_secret_access_key)the AWS SDK reference guide, shared credentials file
resticRESTIC_REPOSITORY (s3:<endpoint>/<bucket>[/<prefix>]), RESTIC_PASSWORD, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEYthe VolSync restic documentation, for the volsync trait’s repository Secret
barmanACCESS_KEY_ID, ACCESS_SECRET_KEYthe Barman Cloud plugin’s object store page, for a cnpg-objectstore’s s3Credentials
customthe two key names you give in keys (accessKeyId, secretAccessKey)none

resticPassword is required when format is restic: it is the repository’s encryption password and not an S3 setting, but VolSync reads it from the same Secret, which you cannot add a key to. On the values route it is a string; on the externalSecret route a remote reference. keys is required when format is custom.

The ConfigMap <component>-settings always holds endpoint, region, bucket-name, prefix, path-style (true or false), ca-secret-name, ca-secret-key (both empty without caSecret) and credentials-secret, the name of the Secret to read: yours, the one the model writes, or the one the ExternalSecret creates (it takes the ExternalSecret’s name). The model publishes the ConfigMap’s name as its output settings.

Not shipped: a session token; the Velero credentials format (not confirmed); a bucket; a mount of the CA. A nested input’s schema default is not applied by the loader, so the model reads an absent format as plain itself.

The workload model

content/models/workload.yaml is one model of type workload.launcher.gokure.dev@v1 (go-kure/launcher#1737), written type: workload@v1 in an application. A launcher-domain name takes a v<semver> version, which v1 is (pkg/oam/typeid.go). An application needs no models/ directory for it.

components:
  - name: orders
    type: workload@v1
    properties:
      image: registry.example.org/orders:1.0.0
      port: 8080
      volume: {size: 1Gi, mountPath: /data}
      monitoring: {path: /metrics}
InputType and defaultWhat it does
modeservice (default), worker or jobPicks the workload: webservice (Deployment, Service, ServiceAccount), worker (Deployment, ServiceAccount) or job (a Job, restartPolicy: OnFailure). Another word is refused.
imagestring, requiredThe container image, in every mode.
command, argslists of stringsThe container’s command and arguments.
envlist of {name, value, valueFrom{secretKeyRef, configMapKeyRef, fieldRef, resourceFieldRef}}The container’s environment. A key reference takes {name, key, optional}, fieldRef takes {fieldPath, apiVersion} and resourceFieldRef takes {resource, containerName, divisor}. With database set, DATABASE_URI is added from the uri key of the database’s application Secret.
envFromlist of {prefix, configMapRef{name, optional}, secretRef{name, optional}}Imports every key of a ConfigMap or a Secret as an environment variable, in every mode.
resources{requests, limits}, each a map of resource name to quantityThe container’s requests and limits, in every mode. Unset in service and worker mode, the component’s default applies, as on a plain webservice or worker; in job mode nothing is written. limits.cpu: unlimited and limits.memory: unlimited opt out of the default in service and worker mode and are refused in job mode, which has no default and takes a quantity.
replicasinteger, no defaultservice and worker: the Deployment’s replica count. Unset, and with no scaling, the model writes 1, as it did when 1 was the default (an environment policy’s default count never reaches it). Refused beside scaling.
scaling{minReplicas, maxReplicas, cpuUtilization, memoryUtilization}, no defaultservice and worker: the scaler trait on the workload, so the build writes a HorizontalPodAutoscaler and builds the Deployment with no spec.replicas, which the autoscaler owns. A key left out is left out of the trait: minReplicas and maxReplicas may come from an environment policy default, and with neither target the trait scales on CPU at 80. enablePDB, hpaName and pdbName are not inputs; a caller who wants them uses a plain webservice. Set together with replicas, the build refuses both ("replicas" and "scaling" are mutually exclusive). In job mode the build refuses it: a Job has nothing to scale, and the trait names the type (trait "scaler" is not supported on component type "job").
portinteger, no defaultservice: the container port and the Service port. Unset, the model writes nothing and the webservice default applies, 80. Before go-kure/launcher#1757 the model wrote 8080.
volume{size, mountPath, backup{schedule, repository}}Writes a claim named <component>-data and mounts it at mountPath in every mode. backup adds a volsync ReplicationSource for the claim; repository is the name of the restic Secret, which is referenced and never built.
exposure{hostnames}service only. Carries the expose trait on the Service, so the ClusterProfile’s expose capability picks an Ingress or an HTTPRoute.
database{storageSize, version, backup, databases, managedRoles}Writes a postgresql component. version is the major version, a string such as "17", and defaults to the component’s 16; an empty string is refused. backup has the shape of that component’s backup property (an S3 objectStore, retentionPolicy, schedules) and writes its object store and one ScheduledBackup for each schedule. databases and managedRoles are that component’s properties of the same names, with the keys it reads: each databases entry writes one more Database object in the same Cluster, and each managedRoles entry one role of it (see “A second database” below).
monitoring{port, path, interval, rules, scrapeName, ruleName}The property shape of the monitoring trait. Writes a VMServiceScrape in service mode, a VMPodScrape in worker and job mode, and a VMRule when rules is set.

Each optional input is a part of the model that is emitted only when the input is set; a build with image alone writes the workload and nothing else. port of monitoring is a port name or a number: in service mode it defaults to the Service’s http port, a number is written as targetPort, which names a port of the pod, and the model declares only port on the pod, so use the number of port (the build does not check it); in worker and job mode it is required and is a number, written as portNumber: the model writes no container port in those modes, so a port name would name nothing.

A second database. database.databases adds databases to the one Cluster, each owned by a role, and DATABASE_URI stays the first database’s: the generated Secret <component>-db-app holds one dbname, so the model writes no variable for another. The application reads the second database’s credentials in one of two ways, and kurel build shows both as objects and references. (1) A role the caller owns: create a Secret of type kubernetes.io/basic-auth with username and password, name it in managedRoles[].passwordSecret, set login: true on the role (it defaults to no login, so the application could not connect with it), set the role as the database’s owner, and read the Secret’s keys with env[].valueFrom.secretKeyRef. (2) The cluster’s own role: owner: app needs no managedRoles, and the application reads password from <component>-db-app. Either way the host is the read-write Service <component>-db-rw. The model does not check that owner names an existing role, so a wrong owner fails in the operator, not in the build. The model proves the objects and the references; whether the operator reconciles the role and the database on a live cluster is not proven here.

Moving from a plain webservice, worker or job. A part is named <component>-<part name>, so a component shop of this model writes objects named shop-app (the Deployment, the Service, the ServiceAccount, or the Job), where a plain webservice named shop writes shop. A caller that moves to the model renames its objects, and anything that names one of them (a Service address, a selector, a patch) changes with it (TestShippedWorkloadObjectNames builds both). In job mode the model writes the container as the Kubernetes API has it, so resources, envFrom and valueFrom reach it unchanged and kurel build holds them to the API’s field shapes only; in service and worker mode the component checks the values (a fieldPath the API does not take, a quantity that does not parse) and refuses them with its own text.

What the model format cannot express, and what the model does instead.

  • The model format can make a trait conditional (traits[].when), and this model uses it for the scaler trait, which sits on each workload part under when: ${ inputs.scaling != null }. The two older workarounds stay for now. The volume backup is still the volsync trait on a part of its own, a serviceaccount that exists to carry it, so a volume backup writes one extra ServiceAccount, <component>-backup. The expose trait must sit on the component that owns the Service, so the service mode has two parts with one property list, one with the trait and one without. A later change can fold both.
  • A part’s type cannot depend on an input, so each mode is a part, and a read of a part’s outputs repeats that part’s condition. The DATABASE_URI environment entry is written in each of the workload parts, because a model value cannot read a part.
  • An input object must declare every key it takes. env, envFrom, resources, monitoring.rules and database.backup, database.databases and database.managedRoles declare theirs, and a key they do not declare is refused.
  • A null is written to a generic-route object, and the CRD refuses it. So path and interval are written as /metrics and 30s when unset. The monitoring trait leaves both out and lets VictoriaMetrics’ defaults apply.
  • A part is named <component>-<part name>, and objectName is refused on it. So scrapeName and ruleName are the suffix of the object name (defaults <component>-scrape and <component>-rules), where the trait uses them as the whole name.
  • The model format can refuse two inputs set together (spec.exclusive), and this model declares one group, replicas and scaling. exposure and port are read in service mode only and are not read in another. monitoring.port is required in worker and job mode; without it the build fails with no such key: port and names the part.
  • The scrape selects the app label of the workload by the name of its Deployment (the Job’s name in job mode). A Naming hook that renames the Deployment and not the label breaks the match.

Not covered. Probes, a security context and sidecars are not inputs, and scaling takes only the range and the two targets of scaling (no PodDisruptionBudget, no object names); the monitoring objects are held to the object kind policy as the trait’s are, so a policy that does not allow cluster-scoped objects refuses them (go-kure/launcher#1744). Restarting the workload when a config changes stays Go. There is no model per mode.

Scopes. Load marks every definition it registers with Transformer.MarkScopeTrusted, so the object kind check counts the scope its pinned CRD gives the kind whatever the policy says. A definition an application supplies is not marked: it counts only for a kind the policy names in TrustedScopePolicy (go-kure/launcher#1758).

The datastore model

content/models/datastore.yaml is one model of type datastore.launcher.gokure.dev@v1 (go-kure/launcher#1755), written type: datastore@v1 in an application. It is one generic model for a replicated stateful store (a database, a cache, a queue): it writes the objects such a store needs and agrees their selectors and labels, and it knows no store in particular.

components:
  - name: orders
    type: datastore@v1
    properties:
      image: registry.example.org/mariadb:11.4
      replicas: 3
      ports: [{name: db, port: 3306}]
      storage: {size: 10Gi, mountPath: /var/lib/mysql}
      config: {mountPath: /etc/mysql/conf.d, data: {my.cnf: "[mysqld]\nmax_connections=200\n"}}
      disruption: {maxUnavailable: 1}
InputType and defaultWhat it does
imagestring, requiredThe container image.
portslist of {name, port, protocol}, requiredContainer ports and the ports of both Services. protocol defaults to TCP. A port is required because the client Service needs one.
replicasinteger, 1The number of pods.
storage{size, mountPath}One claim template data, ReadWriteOnce, mounted at mountPath (default /data). Without it the pods have no persistent data volume (a config still writes its own volume).
env, command, argsas in the workload modelThe container’s environment, command and arguments.
config{mountPath, data}Writes a ConfigMap from data (file name to text) and mounts it at mountPath.
disruption{maxUnavailable}Writes a PodDisruptionBudget. maxUnavailable is a count or a percentage, and is required inside disruption.
restartTokenstringWritten as the pod template annotation launcher.gokure.dev/restart-token. Changing it rolls the pods.

What it writes. Parts are always named <component>-<part>, so a component orders writes:

ObjectNameWritten when
Service, clusterIP: None (the StatefulSet’s governing Service)orders-headlessalways
Service, with a virtual IP: the address a client connects toorders-clientalways
ConfigMaporders-configconfig is set
StatefulSetorders-store (pods orders-store-0, …)always
PodDisruptionBudgetorders-budgetdisruption is set

The pods carry the label app.kubernetes.io/instance: <component>, and the StatefulSet selector, both Services and the budget select on it. The model writes no app label (launcher adds its own) and sets automountServiceAccountToken: false on the pods. The budget and the ConfigMap are kind parts of their own, each switched by a when on disruption and config: this model’s choice, because each is an object of its own and not a trait of the StatefulSet.

Output. The model publishes one output, client: the name of the client Service. A model that nests datastore@v1 as a part reads it as parts.<id>.client.name (go-kure/launcher#1766; TestShippedDatastoreClientIsReadByANestingModel), so a caller does not repeat the <component>-client convention. Another engine goes beside the workload as a datastore component: the workload reads its address from client and takes its credentials by env.

Limits. A model input cannot declare boundedBy, so the replica count, the storage size and the image publish no bound on the model. The refusal comes from the StatefulSet part at build, under the environment policy, as for the workload model (datastore_policy_test.go).

Not covered. A hash of the config: a change to the text in config.data does not roll the pods, so bump restartToken with it (a hash is a CEL function and its own design). Adding or removing config, or changing config.mountPath, does change the pod template and rolls the pods. A store preset (MariaDB, Redis), credentials and replication wiring (pass secrets by env), backup, probes, resources, a security context beyond the token default, and a configuration-defined trait (go-kure/launcher#102). A store that has an operator type (postgresql) is better served by it.

Where the CRDs come from

A CRD is taken from a release asset where the release has one, and never from a branch. The VictoriaMetrics files are documents of https://github.com/VictoriaMetrics/operator/releases/download/v0.76.0/crd.yaml (6101924 bytes, sha256 9362fcf82df73584aa6d97651090be324475345e8e48495eedf810557f00af84, the digest the release lists), split with yq 4.54.3:

yq eval 'select(.metadata.name == "vmrules.operator.victoriametrics.com")' crd.yaml > content/definitions/crds/vmrules.yaml

The same command, with vmpodscrapes and vmservicescrapes, makes the other two. Each definition pins its split file’s digest. To move to another release, download that release’s crd.yaml, split the three files again and put the new digests in the definitions.

The snapshot CRDs come from the tag instead, because external-snapshotter v8.7.1 (released 2026-11-23) has no release assets (gh release view v8.7.1 --repo kubernetes-csi/external-snapshotter lists none). They are the files of the tag v8.7.1 under client/config/crd/, copied byte for byte (a tag is a name, so the digest is what pins the bytes):

File hereFile of the tagBytessha256
content/definitions/crds/volumesnapshots.yamlsnapshot.storage.k8s.io_volumesnapshots.yaml22409b032116e987fb1d7d93cec7d942833adeb9d95c9bdc7e00c10b280c2fe4a6c33
content/definitions/crds/volumesnapshotclasses.yamlsnapshot.storage.k8s.io_volumesnapshotclasses.yaml663675e6565aac2c0f2949ed13ea884bbaa388cb7be576b558b709cf1168e011828d
gh api -H 'Accept: application/vnd.github.raw' \
  'repos/kubernetes-csi/external-snapshotter/contents/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml?ref=v8.7.1' \
  > content/definitions/crds/volumesnapshots.yaml

The same command, with volumesnapshotclasses, makes the other file. To move to another release, fetch the two files at its tag, compare them with the digests the release publishes where it has any, and put the new digests in the definitions.

The NodeFeatureRule file (go-kure/launcher#1822). node-feature-discovery v0.20.1 publishes only its Helm chart as a release asset: https://github.com/kubernetes-sigs/node-feature-discovery/releases/download/v0.20.1/node-feature-discovery-chart-0.20.1.tgz (77359 bytes, sha256 c7e2a38ca3bf0faca5ec7ce0981eeb24bf249407748b35a4b6f087f5a8c7acdd, the digest the release lists). Its CRDs are the three documents (NodeFeature, NodeFeatureGroup, NodeFeatureRule) of node-feature-discovery/crds/nfd-api-crds.yaml inside the chart (40128 bytes, sha256 95e5334016af6d8b8e90958cc52917398cb2192acb556e2fc2652e4ce6065a0f, the same bytes as that file at the tag v0.20.1). Only NodeFeatureRule ships, split with yq 4.54.3 (18959 bytes, sha256 0001ce0fcf69834a43c517db2d7f48a2b3a1892eb9e9596055282d46ac172e14):

yq eval 'select(.metadata.name == "nodefeaturerules.nfd.k8s-sigs.io")' nfd-api-crds.yaml > content/definitions/crds/nodefeaturerules.yaml

To move to another release, download that release’s chart asset, extract crds/nfd-api-crds.yaml, split the document again and put the new digest in the definition.

The six mariadb-* CRDs are documents of the mariadb-operator release 26.10.2 asset crds.yaml (https://github.com/mariadb-operator/mariadb-operator/releases/download/mariadb-operator-crds-26.10.2/crds.yaml, sha256 d794f294bed49cba8d5c0a60497b3d82451513564c96fd9bf28c41af6507bebd), split with yq 4.54.3 by the CRD’s name in the same way (databases, users, grants, connections, pointintimerecoveries and externalmariadbs, each <plural>.k8s.mariadb.com):

yq 'select(.metadata.name == "databases.k8s.mariadb.com")' crds.yaml > content/definitions/crds/databases.yaml

Only a CRD the loader accepts can ship. It refuses one whose spec is open (VMAuth and two other kinds), so the instance kinds are not shipped.

Not done

  • The CRDs’ CEL rules are not evaluated (see Component definitions).
  • The whole set registers on every build, used or not.