config

package
v1.24.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	EnvVarPrefix = "TEST_"

	EnvVarNoManifestUpdate            = "NO_MANIFEST_UPDATE"
	EnvVarNoManifestUpdateDescription = "Skip updating manifest when connecting to the namespace"
	EnvVarNoManifestUpdateExample     = "false"

	EnvVarKeepEnvironments            = "KEEP_ENVIRONMENTS"
	EnvVarKeepEnvironmentsDescription = "Should we keep environments on test completion"
	EnvVarKeepEnvironmentsExample     = "NEVER|ALWAYS|ON_FAILURE"

	EnvVarNamespace            = "ENV_NAMESPACE"
	EnvVarNamespaceDescription = "Namespace name to connect to"
	EnvVarNamespaceExample     = "chainlink-test-epic"

	EnvVarJobImage            = "ENV_JOB_IMAGE"
	EnvVarJobImageDescription = "Image to run as a job in k8s"
	EnvVarJobImageExample     = "795953128386.dkr.ecr.us-west-2.amazonaws.com/core-integration-tests:v1.0"

	EnvVarInsideK8s            = "ENV_INSIDE_K8S"
	EnvVarInsideK8sDescription = "Internal variable to turn forwarding strategy off inside k8s, do not use"
	EnvVarInsideK8sExample     = ""

	// deprecated (use TOML config instead to pass the image)
	EnvVarCLImage            = "CHAINLINK_IMAGE"
	EnvVarCLImageDescription = "Chainlink image repository"
	EnvVarCLImageExample     = "public.ecr.aws/chainlink/chainlink"

	// deprecated (use TOML config instead to pass the version)
	EnvVarCLTag            = "CHAINLINK_VERSION"
	EnvVarCLTagDescription = "Chainlink image tag"
	EnvVarCLTagExample     = "1.9.0"

	EnvVarUser            = "CHAINLINK_ENV_USER"
	EnvVarUserDescription = "Owner of an environment"
	EnvVarUserExample     = "Satoshi"

	EnvVarCLCommitSha            = "CHAINLINK_COMMIT_SHA"
	EnvVarCLCommitShaDescription = "The sha of the commit that you're running tests on. Mostly used for CI"
	EnvVarCLCommitShaExample     = "${{ github.sha }}"

	EnvVarTestTrigger            = "TEST_TRIGGERED_BY"
	EnvVarTestTriggerDescription = "How the test was triggered, either manual or CI."
	EnvVarTestTriggerExample     = "CI"

	EnvVarLogLevel            = "TEST_LOG_LEVEL"
	EnvVarLogLevelDescription = "Environment logging level"
	EnvVarLogLevelExample     = "info | debug | trace"

	EnvVarDBURL            = "DATABASE_URL"
	EnvVarDBURLDescription = "DATABASE_URL needed for component test. This is only necessary if testhelper methods are imported from core"
	EnvVarDBURLExample     = "postgresql://postgres:node@localhost:5432/chainlink_test?sslmode=disable"

	EnvVarSlackKey            = "SLACK_API_KEY"
	EnvVarSlackKeyDescription = "The OAuth Slack API key to report tests results with"
	EnvVarSlackKeyExample     = "xoxb-example-key"

	EnvVarSlackChannel            = "SLACK_CHANNEL"
	EnvVarSlackChannelDescription = "The Slack code for the channel you want to send the notification to"
	EnvVarSlackChannelExample     = "C000000000"

	EnvVarSlackUser            = "SLACK_USER"
	EnvVarSlackUserDescription = "The Slack code for the user you want to notify"
	EnvVarSlackUserExample     = "U000000000"

	EnvVarToleration                 = "K8S_TOLERATION"
	EnvVarTolerationsUserDescription = "Node roles to tolerate"
	EnvVarTolerationsExample         = "foundations"

	EnvVarNodeSelector                = "K8S_NODE_SELECTOR"
	EnvVarNodeSelectorUserDescription = "Node role to deploy to"
	EnvVarNodeSelectorExample         = "foundations"

	EnvVarDetachRunner                = "DETACH_RUNNER"
	EnvVarDetachRunnerUserDescription = "Should we detach the remote runner after starting a test using it"
	EnvVarDetachRunnerExample         = "true"

	EnvVarRemoteRunnerCpu                = "RR_CPU"
	EnvVarRemoteRunnerCpuUserDescription = "The cpu limit and req for the remote runner"
	EnvVarRemoteRunnerCpuExample         = "1000m"

	EnvVarRemoteRunnerMem                = "RR_MEM"
	EnvVarRemoteRunnerMemUserDescription = "The mem limit and req for the remote runner"
	EnvVarRemoteRunnerMemExample         = "1024Mi"

	EnvVarInternalDockerRepo            = "INTERNAL_DOCKER_REPO"
	EnvVarInternalDockerRepoDescription = "Use internal docker repository for some images"
	EnvVarInternalDockerRepoExample     = "public.ecr.aws"

	EnvVarLocalCharts                = "LOCAL_CHARTS"
	EnvVarLocalChartsUserDescription = "Use local charts from the CTF repository directly"
	EnvVarLocalChartsExample         = "true"

	EnvBase64ConfigOverride             = "BASE64_CONFIG_OVERRIDE"
	EnvBase64ConfigOverriderDescription = "Base64-encoded TOML config (should contain at least chainlink image and version)"
	EnvBase64ConfigOverrideExample      = "" /* 192-byte string literal not displayed */

	EnvBase64NetworkConfig            = "BASE64_NETWORK_CONFIG"
	EnvBase64NetworkConfigDescription = "Base64-encoded TOML network config with default RPC/WS endpoints and private keys"
	EnvBase64NetworkConfigExample     = "Nope :-)"
)

Variables

View Source
var (
	JSIIGlobalMu = &sync.Mutex{}
)

Functions

func MustEnvOverrideVersion

func MustEnvOverrideVersion(target interface{})

func MustMerge

func MustMerge(targetVars interface{}, codeVars interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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