metalman

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: 10 Imported by: 0

Documentation

Overview

Package metalman implements the per-Site metalman PXE controller component.

Index

Constants

View Source
const SupportObjectNameSubstring = "metalman"

SupportObjectNameSubstring identifies the metalman RBAC objects that ship in the machina manifest set. It is exported so the machina component can skip exactly the objects the metalman component owns and applies.

Variables

This section is empty.

Functions

func DeploymentName

func DeploymentName(site string) string

DeploymentName is the per-site metalman Deployment name.

func IsSupportObject

func IsSupportObject(obj *unstructured.Unstructured) bool

IsSupportObject reports whether obj is the metalman RBAC that ships in the machina manifests. The machina component skips these; the metalman component applies them.

func New

New returns the metalman per-Site component.

Types

type Component

type Component struct{}

Component reconciles the per-Site metalman PXE controller.

func (Component) Cleanup

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

Cleanup removes the per-site metalman Deployment. The shared metalman RBAC is left in place; it is harmless when unreferenced and may still be used by other sites.

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 metalman.

func (Component) Name

func (Component) Name() string

Name implements component.SiteComponent.

func (Component) Reconcile

Reconcile deploys the per-site metalman PXE controller and its RBAC.

func (Component) SetupWatches

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

SetupWatches recreates the per-site Deployment if it is deleted or drifts, via its controller owner reference to the Site. The predicate drops status-only updates so pod-count churn does not re-apply the Deployment.

Jump to

Keyboard shortcuts

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