Documentation
¶
Overview ¶
Package machina implements the machina controller cluster component. Machina is a required singleton: it is deployed whenever any Site exists and kept reconciled when an installation already exists.
Index ¶
Constants ¶
const (
ConfigHashAnnotation = "unbounded-cloud.io/machina-config-hash"
)
Variables ¶
This section is empty.
Functions ¶
func EnabledFor ¶
func EnabledFor(_ *unboundedv1alpha3.Site) bool
EnabledFor reports whether a Site requires the machina component. Machina is required regardless of the deprecated per-Site setting.
func SetAPIServerEndpoint ¶
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 ¶
ConditionType implements component.ClusterComponent.
func (Component) Plan ¶ added in v0.3.0
func (c Component) Plan(ctx context.Context, env *component.Env, sites []unboundedv1alpha3.Site) (*component.Plan, component.Result, error)
Plan deploys the machina controller singleton whenever at least one Site exists and keeps an existing installation reconciled with no Sites.