machina

package
v0.1.23 Latest Latest
Warning

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

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

Documentation

Overview

Package machina implements the machina controller cluster component. Machina is a singleton for now: it is deployed whenever any Site enables it and kept reconciled when an installation already exists.

Index

Constants

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

Variables

This section is empty.

Functions

func EnabledFor

func EnabledFor(site *unboundedv1alpha3.Site) bool

EnabledFor reports whether a Site enables the machina component.

func New

New returns the machina cluster component.

func SetAPIServerEndpoint

func SetAPIServerEndpoint(config, endpoint string) (string, error)

SetAPIServerEndpoint updates only the top-level apiServerEndpoint field. Using a YAML node preserves all other migrated or user-managed fields.

Types

type Component

type Component struct{}

Component reconciles the machina controller 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 machina controller singleton whenever any Site enables it and keeps an existing installation reconciled when none do.

func (Component) SetupWatches

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

SetupWatches reconciles machina on changes to its config payload and on create/delete/generation changes of its controller Deployment.

Jump to

Keyboard shortcuts

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