Documentation
¶
Overview ¶
Package python executes the user-provided Python used by Helm value templating.
Scripts run in a fresh Gomonty REPL for every job. The package deliberately does not provide any Gomonty host callbacks, so scripts cannot access the operator process, filesystem, network, or environment.
Index ¶
Constants ¶
const ( // ExecutionTimeout bounds queue admission and execution for one job. ExecutionTimeout = 10 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func SetDefaultPool ¶
func SetDefaultPool(pool *Pool)
SetDefaultPool installs the process-wide pool used by Helm rendering. The caller owns the pool and must close it during application shutdown.
Types ¶
type Config ¶
type Config struct {
MaxConcurrentReconciles int
WorkerCount int
QueueSize int
ExecutionTimeout time.Duration
}
Config controls a Pool. WorkerCount and QueueSize are intended primarily for focused tests. Production callers should set MaxConcurrentReconciles so the fixed pool sizing policy is applied at startup.
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool owns a fixed set of workers and a bounded queue. It is safe for concurrent use. Close waits for workers to stop and is idempotent.
func DefaultPool ¶
func DefaultPool() *Pool
DefaultPool returns the pool installed by the application startup path.
func NewPool ¶
NewPool creates and health-checks a fixed-size worker pool. The health check eagerly loads Gomonty's native runtime, making startup failures visible before the first service render.
func NewPoolWithConfig ¶
NewPoolWithConfig is the configurable constructor used by tests and by callers that need to provide an explicit pool size.