gantry

package
v0.1.24-rc.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package gantry implements the gantry peer-to-peer OCI distribution cluster component. Gantry runs one agent DaemonSet per node fronting containerd's image pulls, so it is reconciled as a cluster singleton. Unlike the other components it defaults to enabled: it is deployed unless every Site explicitly opts out via spec.components.gantry.enabled=false.

The component also manages the per-node containerd wiring: a helper DaemonSet writes /etc/containerd/certs.d/_default/hosts.toml so pulls use the node-local gantry agent as their default mirror.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnabledFor

func EnabledFor(site *unboundedv1alpha3.Site) bool

EnabledFor reports whether a Site enables the gantry component. Gantry defaults to enabled: only an explicit enabled=false opts a Site out.

func New

New returns the gantry cluster component.

Types

type Component

type Component struct{}

Component reconciles the gantry cluster singleton.

func (Component) ConditionType

func (Component) ConditionType() string

ConditionType implements component.ClusterComponent.

func (Component) Name

func (Component) Name() string

Name implements component.ClusterComponent.

func (Component) Reconcile

Reconcile deploys the gantry cluster singleton whenever at least one Site does not opt out and keeps an existing installation reconciled when every Site opts out.

func (Component) SetupWatches

func (Component) SetupWatches(b *builder.Builder, env *component.Env)

SetupWatches reconciles gantry on changes to its config payloads and on create/delete/generation changes of its agent and node-config DaemonSets.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL