Documentation
¶
Overview ¶
Package config stores all server application settings for benchmark job
Package config stores all server application settings
Index ¶
Constants ¶
View Source
const ( JOBNAME_ANNOTATION = "before-job-name" JOBNAMESPACE_ANNOTATION = "before-job-namespace" SERVICE_NAME = "vald-benchmark-job" )
Variables ¶
View Source
var ( NAMESPACE = os.Getenv("CRD_NAMESPACE") NAME = os.Getenv("CRD_NAME") )
NAMESPACE and NAME are resolved once from the pod's environment at package init time; they identify the benchmark job's own ValdBenchmarkJob CR so NewConfig can load its override settings.
Functions ¶
This section is empty.
Types ¶
type Data ¶ added in v1.8.0
type Data struct {
// K8sClient represent k8s client configuration
K8sClient client.Client `json:"k8s_client" yaml:"k8s_client"`
// Server represent all server configurations
Server *config.Servers `json:"server_config" yaml:"server_config"` //nolint:tagliatelle // fixed by the existing config.yaml wire format, not renameable
// Observability represent observability configurations
Observability *config.Observability `json:"observability" yaml:"observability"`
// Job represent benchmark job configuration
Job *config.BenchmarkJob `json:"job" yaml:"job"`
// GlobalConfig represent the global configuration
config.GlobalConfig `json:",inline" yaml:",inline"`
}
Data represents an application setting data content (config.yaml). In K8s environment, this configuration is stored in K8s ConfigMap.
type GlobalConfig ¶
type GlobalConfig = config.GlobalConfig
GlobalConfig is type alias for config.GlobalConfig.
Click to show internal directories.
Click to hide internal directories.