Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrJiraConfigNotFound = errors.New("no Jira configuration found in domain config")
ErrJiraConfigNotFound is returned when no JIRA configuration is found in the domain config.
Functions ¶
func LoadEnvConfig ¶
LoadEnvConfig retrieves the environment configuration for a given domain and environment.
Loading strategy:
- In CI environments: Loads configuration exclusively from environment variables set by the CI pipeline.
- In local development: Loads configuration from a local config file specific to the domain and environment.
func LoadJiraConfig ¶ added in v0.51.0
LoadJiraConfig retrieves the JIRA configuration for a given domain.
func LoadNetworks ¶
LoadNetworks retrieves the network configuration for the given domain and filters the networks according to the specified environment. This ensures that only networks relevant to the selected environment are accessible, minimizing the risk of accidental operations on unintended networks.
Types ¶
type Config ¶
type Config struct {
// Networks contains blockchain network configurations loaded from YAML manifest files.
// This includes chain selectors, RPC endpoints, and network-specific parameters
// for all supported blockchain networks.
Networks *cfgnet.Config
// Env contains environment-specific configuration including credentials, API keys,
// and deployment settings. This configuration varies between environments
// (development, staging, production) and contains sensitive data.
Env *cfgenv.Config
// Jira contains JIRA integration configuration including connection details
// and field mappings for using JIRA in resolvers.
Jira *cfgjira.Config
}
Config aggregates all configuration required by the Chainlink Deployments (CLD) engine. It combines network-specific settings and environment-specific configuration to provide a complete runtime configuration for deployment operations.