Skip to content

feat(container-registry): add configurable capabilities to RegistryMi…#134

Open
tim-mcdonald wants to merge 1 commit into
bottlerocket-os:developfrom
tim-mcdonald:feat/registry-mirror-capabilities
Open

feat(container-registry): add configurable capabilities to RegistryMi…#134
tim-mcdonald wants to merge 1 commit into
bottlerocket-os:developfrom
tim-mcdonald:feat/registry-mirror-capabilities

Conversation

@tim-mcdonald

@tim-mcdonald tim-mcdonald commented Apr 10, 2026

Copy link
Copy Markdown

Summary

Adds RegistryMirrorCapabilityV1 enum (pull, resolve, push) and an optional capabilities field to RegistryMirrorV1, enabling per-mirror capability configuration for containerd registry mirrors.

Previously, consumers of this model (e.g. thar-be-registries in bottlerocket-core-kit) had to hardcode capabilities for all mirrors. This blocked tools like Spegel that require pull-only mirrors. containerd 2.1's transfer service fails when Spegel's DHT hasn't initialized if resolve is also requested.

When capabilities is absent, consumers default to ["pull", "resolve"] for backward compatibility. Unknown values are rejected at serde deserialization time.

A companion PR in bottlerocket-core-kit updates thar-be-registries and the registry template to read and emit this field.

Related Issues

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…rrorV1

Adds RegistryMirrorCapabilityV1 enum (pull/resolve/push) and an optional
capabilities field to RegistryMirrorV1. Unknown values are rejected at
deserialization time. Defaults to None so existing configs are unaffected.

Updates CHANGELOG with unreleased entry.

Closes: bottlerocket-os/bottlerocket#4710
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(container-registry): add configurable capabilities to RegistryMirrorV1

1 participant