config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Execution speed labels
	LabelSmoke      = "smoke"
	LabelFast       = "fast"
	LabelSlow       = "slow"
	LabelRegression = "regression"
	LabelStress     = "stress"
	LabelParallel   = "parallel"

	// Priority labels (P0 = critical, must always pass)
	LabelP0 = "p0"
	LabelP1 = "p1"
	LabelP2 = "p2"

	// Category labels
	LabelSecurity   = "security"
	LabelConstraint = "constraint"
)

Test labels for selective test execution

View Source
const (
	AggregatorSuffix = "-aggregator"
	AgentSuffix      = "-agent"
)

Resource naming suffixes

View Source
const (
	ComponentLabel      = "app.kubernetes.io/component"
	AggregatorComponent = "Aggregator"
	AgentComponent      = "Agent"
)

Kubernetes labels

Variables

View Source
var (
	// Resource creation timeouts
	DeploymentCreateTimeout = getEnvDuration("E2E_DEPLOYMENT_CREATE_TIMEOUT", defaultDeploymentCreateTimeout)
	DeploymentReadyTimeout  = getEnvDuration("E2E_DEPLOYMENT_READY_TIMEOUT", defaultDeploymentReadyTimeout)
	NamespaceDeleteTimeout  = getEnvDuration("E2E_NAMESPACE_DELETE_TIMEOUT", defaultNamespaceDeleteTimeout)

	// Pipeline validation timeouts
	PipelineValidTimeout = getEnvDuration("E2E_PIPELINE_VALID_TIMEOUT", defaultPipelineValidTimeout)
	ConfigCheckTimeout   = getEnvDuration("E2E_CONFIG_CHECK_TIMEOUT", defaultConfigCheckTimeout)

	// Service check timeouts
	ServiceCreateTimeout = getEnvDuration("E2E_SERVICE_CREATE_TIMEOUT", defaultServiceCreateTimeout)

	// Polling intervals
	DefaultPollInterval = getEnvDuration("E2E_DEFAULT_POLL_INTERVAL", defaultDefaultPollInterval)
	FastPollInterval    = getEnvDuration("E2E_FAST_POLL_INTERVAL", defaultFastPollInterval)
	SlowPollInterval    = getEnvDuration("E2E_SLOW_POLL_INTERVAL", defaultSlowPollInterval)

	// Test spec timeouts
	DefaultTestTimeout = getEnvDuration("E2E_DEFAULT_TEST_TIMEOUT", defaultDefaultTestTimeout)
	LongTestTimeout    = getEnvDuration("E2E_LONG_TEST_TIMEOUT", defaultLongTestTimeout)
)

Configurable timeout variables (can be overridden via environment variables)

Functions

func GetPollInterval

func GetPollInterval(timeout time.Duration) time.Duration

GetPollInterval returns appropriate poll interval based on timeout

Types

This section is empty.

Jump to

Keyboard shortcuts

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