Documentation
¶
Overview ¶
Package testutil provides external workload fixtures for controller tests. It is not imported by the controller or used to deploy workloads.
Index ¶
Constants ¶
const ( DataplaneDaemonSetName = "racer-dataplane" PodNetworkDaemonSetName = "racer-dataplane-podnet" )
Variables ¶
This section is empty.
Functions ¶
func DesiredDaemonSet ¶
DesiredDaemonSet declares the token audience, controller trust projection, node-private identity and slab storage, socket mounts, and exclusion affinity. It must never introduce a per-node Secret or trust a node-name as a Node UID. This fixture models an externally provisioned workload, never controller startup.
func DesiredDaemonSets ¶
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 ¶
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 preserves the legacy automatic diagnostics port (9090, or 9091).
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 ¶
ConfigFromLookup reads operator deployment wiring without loading or validating controller runtime configuration. Shared settings retain the same defaults.