Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmbeddedOperator ¶
EmbeddedOperator is the main struct for the embedded operator. It allows embedding the Runtime Operator into other applications.
func NewEmbeddedOperator ¶
func NewEmbeddedOperator( ctx context.Context, mgr manager.Manager, cfg EmbeddedOperatorConfig, ) (*EmbeddedOperator, error)
NewEmbeddedOperator creates a new EmbeddedOperator.
type EmbeddedOperatorConfig ¶
type EmbeddedOperatorConfig struct {
// NATS connection string. Used to communicate with hosts.
NatsURL string
// NATS options. Used to configure the NATS connection.
NatsOptions []nats.Option
// Heartbeat TTL. Used to determine how long to wait before considering a host unreachable.
HeartbeatTTL time.Duration
// Host CPU threshold (percentage).
// Used to calculate workload scheduling, avoiding hosts that are over this threshold.
HostCPUThreshold float64
// Host Memory threshold (percentage).
// Used to calculate workload scheduling, avoiding hosts that are over this threshold.
HostMemoryThreshold float64
// Disable Artifact Controller. If set, Artifacts must be marked as 'Ready' elsewhere.
// Useful when introducing a custom artifact management solution.
DisableArtifactController bool
// Namespace is the namespace the operator itself runs in. Every Host
// CRD is created here regardless of where the underlying host pod
// runs; tenant attribution is carried on the Host's Environment
// field.
Namespace string
// HostNamespaces is the list of namespaces where host Pods run. The
// operator's Pod informer cache and per-namespace Pod RBAC cover this
// set so HostPodReconciler can manage finalizers on host Pods.
HostNamespaces []string
// onto a Host whose Environment differs from the workload's own
// namespace (via WorkloadSpec.Environment). Default (true) preserves
// legacy Cluster-scope scheduling semantics: with Environment unset
// the scheduler imposes no Environment filter. When false, scheduling
// is locked to the workload's own namespace and any non-matching
// Environment is rejected with a Warning Event.
AllowSharedHosts bool
}
Source Files
¶
- operator.go
Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
condition
+kubebuilder:object:generate=true +kubebuilder:unservedversion
|
+kubebuilder:object:generate=true +kubebuilder:unservedversion |
|
runtime/v1alpha1
Package v1alpha1 contains API Schema definitions for the runtime v1alpha1 API group.
|
Package v1alpha1 contains API Schema definitions for the runtime v1alpha1 API group. |
|
internal
|
|
|
pkg
|
|
|
test
|
|
Click to show internal directories.
Click to hide internal directories.