Delivery integrations and artifacts
KOTS delivery integrations connect application release data to the services and files needed to install an application. They exchange releases with upstream APIs, move container images into a usable registry, carry application and cluster assets through air-gapped packages, and hand a packaged release to direct or Git-backed deployment.
Delivery integration model
Delivery treats a release as more than YAML. A release includes application content, configuration and identity data, image references, and optional cluster assets. The delivery path selects the source and transport for those parts while keeping the resulting application version suitable for a downstream cluster.
The main exchange points are:
| Exchange point | Purpose | Result |
|---|---|---|
| Upstream release service | Discover and download a licensed release | Release files and release metadata |
| Git repository | Store rendered delivery state for a GitOps process | A commit that represents the application version |
| Container registry | Supply or receive images for the cluster | Rewritten image references and registry pull access |
| Air-gapped package | Move release files and offline assets without a live upstream connection | A verified package that can be installed or used for an update |
| Deployment archive | Group the application inputs and generated delivery data | A portable package for upload, download, or cluster handoff |
The GitOps synchronization page explains the Git repository path. The Image and air-gap artifacts page explains image discovery, registry transfer, and offline asset handling in more detail.
Release and service exchange
The release exchange layer turns a licensed upstream release into local application content. It keeps release identity with the files so later rendering, image processing, and deployment use the same channel and version context.
Upstream release service
The upstream release service is an HTTP API that lists pending channel releases and returns a compressed release for a selected cursor. A license supplies the application identity and access credentials. The response carries release data in an archive and carries release facts such as channel sequence, version label, release time, and registry domains in response headers. References: pkg/…/replicated.go• L368-482, pkg/…/replicated.go• L485-564
The local release model preserves application manifests and delivery metadata together. This lets the pull flow use the same release for configuration creation, rendering, image rewriting, and version records. References: pkg/…/replicated.go• L51-62, pkg/…/replicated.go• L189-319
Service request context
Requests to the upstream service include the current release cursor and selected channel. The system also adds reporting context so an upstream service can relate the request to the delivery operation. A failed service response becomes an actionable error when the service returns a useful message. References: pkg/…/replicated.go• L369-390, pkg/…/replicated.go• L502-549
Registry and image exchange
The registry path makes application images available to the target cluster. It can read from Replicated services or other source registries, rewrite image names for a configured destination, and create the pull access that rendered workloads need.
Registry roles
The system distinguishes the upstream image registry, the registry proxy, and the destination registry. The license or installation data provides the source and proxy endpoints. Per-application registry settings provide the destination host, namespace, credentials, and read-only choice. References: pkg/…/registry.go• L24-28, pkg/…/registry.go• L62-92, pkg/…/registry.go• L177-206
Registry credentials serve two related purposes. The image copy path uses them to push images, while generated Docker configuration secrets give the cluster and application workloads permission to pull them. The Admin Console validates access before it accepts a changed registry for an application. References: pkg/…/registry.go• L212-271, pkg/…/registry.go• L122-193, pkg/…/registry.go• L423-483
When registry settings are rewritten, the delivery flow carries the original license data into the new application version as well as the parsed license. This keeps license-backed values available during rendering, including values needed by air-gapped Helm delivery. References: pkg/…/registry.go• L114-170
Image transfer
Image transfer starts with image references found in the application content. The system identifies private images, rewrites private sources through the configured proxy, and copies images into the destination namespace. Digest-based images retain their digest and can carry all architectures. References: pkg/…/online.go• L58-142, pkg/…/online.go• L145-260
Delivery can opt into skip-existing behavior for registries that reject a second write to an existing tag. The destination manifest is compared with the source before a push, using both raw and normalized forms. The copy path also avoids redundant child-image writes, while a multi-architecture manifest-list fallback preserves the source manifest when the copy library cannot write it without changing its bytes. References: pkg/…/online.go• L263-364, pkg/…/online.go• L470-613, pkg/…/types.go• L40-61
Platform-managed MinIO uses the image that matches the cluster when the cluster is a Kurl installation in the default namespace. The selection accepts the add-on image from its supported repository or a private registry when it has the expected upstream release tag. Other cluster types and custom namespaces use the bundled pinned image, which the surrounding deployment path can rewrite for the configured registry. References: pkg/…/minio.go• L14-66, pkg/…/constants.go• L3-13, pkg/…/minio_test.go• L15-227, pkg/…/filesystem_minio.go• L263-285
Image lifecycle
Image data remains tied to application versions. When cleanup is allowed, the system gathers images used by current and pending versions across applications that share a registry. It limits deletion to the configured namespace and avoids cleanup when rollback or registry safety rules require the images to remain. References: pkg/…/images.go• L50-72, pkg/…/images.go• L101-189, pkg/…/images.go• L240-334
Air-gapped asset flow
Air-gapped delivery moves a release through a package instead of relying on live release and image services at install time. The package can carry application files, image data, air-gap metadata, and embedded-cluster assets. The receiving Admin Console uploads the package, verifies its identity, places images in a destination registry, and creates the application version.
Package intake
The Admin Console accepts a large air-gap package as resumable chunks. It writes the chunks into one temporary bundle, reports progress, and starts asynchronous processing after the complete bundle is available. It also supports a direct multipart update for an application that is already marked as air-gapped. References: pkg/…/airgap.go• L97-145, pkg/…/airgap.go• L148-260, pkg/…/airgap.go• L566-646
The command-line update path prepares a smaller update package from the full bundle. It pushes the image content first, then sends the application and required update assets to the Admin Console. This separates registry preparation from application version ingestion. References: cmd/…/airgap-update.go• L71-134, cmd/…/airgap-update.go• L170-251
Package verification
Before an air-gapped release is used, the system requires a license and checks the package metadata against the licensed application and channel. It also checks the package's application key. These checks prevent a valid package for one application from being used with another application's license. References: pkg/…/pull.go• L237-280, pkg/…/pull.go• L864-886
Offline image and cluster assets
The package can store images in Docker archive or registry form. Registry bundles can preserve all available architectures, while Docker archive imports handle one image archive at a time. The receiver rewrites image names for the destination and can skip images that are already present when that option is enabled. Embedded-cluster assets use a separate artifact path so binaries, charts, metadata, and additional files can be stored and later pushed as registry artifacts. References: pkg/…/airgap.go• L118-191, pkg/…/airgap.go• L317-429, pkg/…/airgap.go• L432-526, pkg/…/airgap.go• L882-1065, pkg/…/types.go• L64-125
For an embedded cluster, the Admin Console can also expose the installed cluster binary, charts, and k0s image file as downloads. These downloads let an operator move the assets needed for cluster installation or maintenance outside the running cluster. References: pkg/…/embedded_cluster_artifacts.go• L18-113, pkg/…/embedded_cluster_artifacts.go• L115-240
Air-gap installation
An air-gap install extracts the application release from the bundle, loads its license and configuration, processes the offline images, and creates the first application version. The normal version path then runs the applicable preflight or deployment step. The install records air-gap state so later updates use the same delivery rules. References: pkg/…/airgap.go• L49-92, pkg/…/airgap.go• L96-128, pkg/…/airgap.go• L193-280
Deployment packaging
Deployment packaging gives each release a portable boundary between acquisition and installation. The package keeps source inputs, generated deployment data, and optional rendered output together so the CLI, Admin Console, and downstream delivery path can exchange one release unit.
Application archive
An application archive contains the upstream release, shared deployment base, and downstream overlays. It may also include rendered output, skipped files, KOTS resource data, and Helm content. Downloads rebuild these parts into one compressed archive, while uploads read the archive before rendering and version creation. References: pkg/…/download.go• L97-180, pkg/…/upload.go• L59-99, pkg/…/upload.go• L163-199
Archive handoff
For an initial licensed pull, the delivery path can package the generated application data for the Admin Console to ingest. The package is encoded into labeled parts when a cluster object size limit makes one object too large. This gives the cluster a controlled handoff from release acquisition to application creation. References: pkg/…/archive.go• L24-104
Downstream delivery
The pull path transforms the acquired release into rendered resources and writes a downstream-specific view. That view can be deployed directly by KOTS or recorded for an external GitOps controller. Registry settings and air-gap state are part of this handoff because they change how workloads obtain their images. References: pkg/…/pull.go• L291-395, pkg/…/pull.go• L442-504, pkg/…/pull.go• L596-651
Change checklist
When these files or sections are changed, remember to consider these:
- Keep release response headers aligned with the release metadata used for channel, cursor, version, registry, and embedded-cluster state.
- Keep license, channel, and application-key checks aligned between full air-gap installs and filtered air-gap updates.
- Keep image destination naming aligned with rendered image references and generated pull secrets.
- Keep read-only registry behavior aligned across image copying, image rewriting, and registry-change handling.
- Keep the original license data available when registry rewriting creates a new version, so air-gap Helm values do not lose license-backed content.
- Keep skip-existing behavior aligned between online image copy, air-gap image push, CLI and Admin Console options, and registries that enforce tag immutability.
- Keep MinIO image selection aligned with Kurl detection, namespace selection, image rewriting, pull-secret generation, and the generated bundled image value.
- Keep Docker archive and registry bundle formats aligned with the air-gap metadata that selects the import path.
- Keep archive contents aligned across CLI upload, Admin Console download, initial cluster handoff, and GitOps output.
- Keep embedded-cluster artifact names and registry artifact paths aligned between bundle creation, upload, and later downloads.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| The license application or channel does not match the air-gap metadata | The package is rejected before it can create or update an application version | Use a package created for the selected application and channel |
| A release service returns an error without a useful body | The operator sees only a generic request failure and cannot act on the cause | Preserve actionable service response bodies and report the release endpoint failure |
| The destination registry is unreachable or credentials fail | Image transfer stops and rendered workloads may point to images the cluster cannot pull | Validate registry access before a registry change or image push |
| A read-only registry is treated as writable | The delivery task attempts a push that the registry must reject | Carry the read-only setting through image processing and registry update paths |
| A tag-immutable registry already contains the image manifest | A repeat push fails even though the image is already usable | Enable skip-existing manifest checks for repeat or resumed transfers |
| A multi-architecture copy cannot write the final manifest list without changing its content | Child images may be present while the copy still reports a failure | Retain the direct source-manifest fallback after child copies succeed |
| A Kurl MinIO deployment uses an image without the expected release tag | The platform-managed MinIO deployment falls back to the bundled image instead of reusing the installed image | Keep the installed add-on image on a supported upstream release tag or provide the bundled image through the configured registry |
| An air-gap upload is incomplete or has a missing required asset | The Admin Console cannot process the package or update the application | Check chunk completion and include the application archive, metadata, and required cluster assets |
| An archive contains an unsafe path | Extraction can fail instead of producing a usable release | Use the safe archive path checks for every extracted archive entry |
| Registry rewriting does not carry the original license data into the new version | Air-gap Helm values that depend on the license can be lost during the registry update | Preserve the source license data through the rewrite and render handoff |
Key files
| File | Why to read it |
|---|---|
| pkg/…/pull.go | Shows how source data, licenses, air-gap metadata, image processing, and downstream output meet in one delivery flow. |
| pkg/…/replicated.go | Defines the external release API exchange and the release data carried into local delivery. |
| pkg/…/online.go | Explains image discovery, source and destination registry transfer, repeat-safe pushes, and multi-architecture manifest handling. |
| pkg/…/types.go | Defines the contracts that carry registry settings, image-copy behavior, progress, and embedded-cluster artifact data across the image flows. |
| pkg/…/minio.go | Shows how platform-managed MinIO selects a cluster-aligned image or uses the bundled fallback. |
| pkg/…/constants.go | Defines the generated, pinned bundled image values used by platform-managed components. |
| pkg/…/airgap.go | Explains image imports and embedded-cluster artifact pushes from air-gap bundles. |
| pkg/…/registry.go | Shows the Admin Console contract for registry validation, updates, and image rewrite work. |
| pkg/…/registry.go | Shows how registry endpoints, credentials, source license data, and Kubernetes pull secrets relate. |
| pkg/…/airgap.go | Shows package upload, progress, update, and install entry points at the API boundary. |
| pkg/…/airgap.go | Shows how a verified air-gap package becomes an application version and deployment. |
| pkg/…/upload.go | Shows the CLI-to-Admin-Console application archive upload path. |
| pkg/…/download.go | Shows how a stored application version becomes a portable archive. |
| pkg/…/archive.go | Shows the initial application archive handoff used inside the cluster. |
| pkg/…/embedded_cluster_artifacts.go | Shows the download boundary for embedded-cluster binaries, charts, and image files. |
| GitOps synchronization | Explains the Git repository integration that turns rendered application state into commits. |
| Image and air-gap artifacts | Explains image dependency and offline artifact behavior in depth. |