workload

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package workload builds dataplane workloads. The Unbounded operator deploys them; the controller only observes and authenticates them.

Index

Constants

View Source
const (
	DataplaneDaemonSetName  = "racer-dataplane"
	PodNetworkDaemonSetName = "racer-dataplane-podnet"
)

Variables

This section is empty.

Functions

func DesiredDaemonSets

func DesiredDaemonSets(c Config) ([]*appsv1.DaemonSet, error)

DesiredDaemonSets builds steady-state placement, not a safe migration plan. The operator must additionally exclude occupied destination nodes until every source Pod, including terminating Pods, has disappeared.

func ManagedNames

func ManagedNames(daemonSetName string) []string

ManagedNames contains only the explicitly configured workload.

Types

type Config

type Config struct {
	Cluster                 wire.ClusterID
	Namespace               string
	ControlURL              string
	BootstrapTrustConfigMap string
	DataplaneImage          string
	PeerPort                uint16
	HostNetwork             bool
	PodNetworkNodes         []string
	// Zero selects the automatic diagnostics port (9090, or 9091 when the peer
	// port is 9090).
	DiagnosticsPort         uint16
	DataplaneServiceAccount string
	DaemonSetName           string
}

Config contains only the inputs needed to build the dataplane DaemonSet. Controller limits, rotation policy, serving TLS, and durable state are independent.

func ConfigFromLookup

func ConfigFromLookup(lookup func(string) (string, bool)) (Config, error)

ConfigFromLookup reads operator deployment wiring without loading or validating controller runtime configuration. Shared settings retain the same defaults.

func (Config) Validate

func (c Config) Validate() error

Jump to

Keyboard shortcuts

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