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