Documentation
¶
Index ¶
- Variables
- type Config
- type DatabaseSettings
- type DeploySettings
- type EnvironmentSettings
- type EnvironmentType
- type HelmConfig
- type ImageConfig
- type LabelOverride
- type LifecycleSettings
- type NotificationConfig
- type PrometheusConfig
- type ResolvedSettings
- type RoutingSettings
- type ServiceConfig
- type TopologyConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConfigNotFound = errors.New("config not found")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Version string `yaml:"version"`
Services map[string]ServiceConfig `yaml:"services"`
Defaults EnvironmentSettings `yaml:"defaults"`
Environments map[string]EnvironmentType `yaml:"environments"`
LabelOverrides map[string]LabelOverride `yaml:"label_overrides"`
Notifications NotificationConfig `yaml:"notifications"`
Topology TopologyConfig `yaml:"topology,omitempty"`
}
type DatabaseSettings ¶
type DeploySettings ¶
type EnvironmentSettings ¶
type EnvironmentSettings struct {
Deploy DeploySettings `yaml:"deploy"`
Routing RoutingSettings `yaml:"routing"`
Database DatabaseSettings `yaml:"database"`
Lifecycle LifecycleSettings `yaml:"lifecycle"`
}
type EnvironmentType ¶
type EnvironmentType struct {
EnvironmentSettings `yaml:",inline"`
Trigger string `yaml:"trigger"` // label | auto | manual | branch | schedule
Label string `yaml:"label"`
Branch string `yaml:"branch"`
}
type HelmConfig ¶
type ImageConfig ¶
type LabelOverride ¶
type LabelOverride struct {
EnvironmentSettings `yaml:",inline"`
Skip bool `yaml:"skip"`
}
type LifecycleSettings ¶
type NotificationConfig ¶
type PrometheusConfig ¶ added in v0.8.0
type PrometheusConfig struct {
Address string `yaml:"address,omitempty"`
TokenEnv string `yaml:"tokenEnv,omitempty"`
TokenFile string `yaml:"tokenFile,omitempty"`
CABundle string `yaml:"caBundle,omitempty"`
InsecureTLS bool `yaml:"insecureTLS,omitempty"`
PollInterval string `yaml:"pollInterval,omitempty"`
CacheTTL string `yaml:"cacheTTL,omitempty"`
MeshType string `yaml:"meshType,omitempty"`
LookbackWindow string `yaml:"lookbackWindow,omitempty"`
Namespaces []string `yaml:"namespaces,omitempty"`
}
type ResolvedSettings ¶
type ResolvedSettings struct {
EnvironmentSettings
}
ResolvedSettings represents a fully resolved environment configuration
type RoutingSettings ¶
type ServiceConfig ¶
type ServiceConfig struct {
Paths []string `yaml:"paths"`
Image ImageConfig `yaml:"image"`
Helm *HelmConfig `yaml:"helm,omitempty"`
AsyncRoutes []v1alpha1.AsyncRouteSpec `yaml:"asyncRoutes,omitempty" json:"asyncRoutes,omitempty"`
// DependsOn lists services that this service calls at runtime.
// Used for topology graph resolution in composable environments.
// Standard semantics: "A dependsOn B" means A calls B.
DependsOn []string `yaml:"dependsOn,omitempty"`
// Entrypoint marks this service as an ingress gateway.
// Entrypoints are the starting points for ingress path resolution.
Entrypoint bool `yaml:"entrypoint,omitempty"`
}
type TopologyConfig ¶ added in v0.8.0
type TopologyConfig struct {
Prometheus *PrometheusConfig `yaml:"prometheus,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.