storage

package
v0.1.24-rc.7 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package storage implements the per-Site unbounded-storage supervisor component. The supervisor runs as a site-scoped DaemonSet on the nodes belonging to the Site, mounting a per-Site config ConfigMap.

Index

Constants

View Source
const (
	ConfigHashAnnotation = "unbounded-cloud.io/storage-config-hash"
)

Variables

This section is empty.

Functions

func New

New returns the storage per-Site component.

func SiteConfigName

func SiteConfigName(site string) string

SiteConfigName is the per-site storage supervisor ConfigMap name. Storage config is per-Site in the API, so each Site gets its own ConfigMap.

func SiteDaemonSetName

func SiteDaemonSetName(site string) string

SiteDaemonSetName is the per-site storage supervisor DaemonSet name.

Types

type Component

type Component struct{}

Component reconciles the per-Site storage supervisor.

func (Component) Cleanup

func (Component) Cleanup(ctx context.Context, env *component.Env, site *unboundedv1alpha3.Site) error

Cleanup removes the per-site storage DaemonSet and ConfigMap.

func (Component) ConditionType

func (Component) ConditionType() string

ConditionType implements component.SiteComponent.

func (Component) Enabled

func (Component) Enabled(site *unboundedv1alpha3.Site) bool

Enabled reports whether the Site enables storage.

func (Component) Name

func (Component) Name() string

Name implements component.SiteComponent.

func (Component) Reconcile

Reconcile deploys a site-scoped storage supervisor DaemonSet that runs only on the nodes belonging to the Site.

func (Component) SetupWatches

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

SetupWatches reconciles a Site on changes to its per-site config payload and recreates the per-site DaemonSet if it is deleted or drifts. The DaemonSet predicate drops status-only updates so pod churn does not re-apply it.

Jump to

Keyboard shortcuts

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