Skip to content

Commit

Permalink
Reducing warning of expected envvars
Browse files Browse the repository at this point in the history
  • Loading branch information
gabedos committed Dec 27, 2024
1 parent 3a1c7af commit b2fb193
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pkg/config/setup/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,18 @@ func InitConfig(config pkgconfigmodel.Setup) {
config.BindEnvAndSetDefault("secret_backend_remove_trailing_line_break", false)
config.BindEnvAndSetDefault("secret_refresh_interval", 0)
config.SetDefault("secret_audit_file_max_size", 0)
config.SetKnown("secrets_vault_auth_path")
config.SetKnown("secrets_sa_token_path")
config.SetKnown("secrets_vault_role")
config.SetKnown("secrets_vault_address")
config.SetKnown("secrets_lookup_path")
config.SetKnown("secrets_values_key")
config.SetKnown("secrets_timeout")

// Infrastucture
config.SetKnown("partition")
config.SetKnown("datacenter")
config.SetKnown("cloudprovider")

// IPC API server timeout
config.BindEnvAndSetDefault("server_timeout", 30)
Expand Down Expand Up @@ -548,6 +560,10 @@ func InitConfig(config pkgconfigmodel.Setup) {
config.BindEnvAndSetDefault("cluster_agent.kube_metadata_collection.resource_annotations_exclude", []string{})
config.BindEnvAndSetDefault("cluster_agent.cluster_tagger.grpc_max_message_size", 4<<20) // 4 MB

// Defines the entity ID to be used to identify the container. This is typically set by the cluster agent,
// however, this value can be manually overridden to "none" to disable the cluster agent entity ID injection.
config.SetKnown("entity_id")

// Metadata endpoints

// Defines the maximum size of hostame gathered from EC2, GCE, Azure, Alibaba, Oracle and Tencent cloud metadata
Expand Down Expand Up @@ -825,6 +841,7 @@ func InitConfig(config pkgconfigmodel.Setup) {
config.BindEnvAndSetDefault("orchestrator_explorer.manifest_collection.enabled", true)
config.BindEnvAndSetDefault("orchestrator_explorer.manifest_collection.buffer_manifest", true)
config.BindEnvAndSetDefault("orchestrator_explorer.manifest_collection.buffer_flush_interval", 20*time.Second)
config.SetKnown("orchestrator_explorer.run_on_node_agent")

// Container lifecycle configuration
config.BindEnvAndSetDefault("container_lifecycle.enabled", true)
Expand Down

0 comments on commit b2fb193

Please sign in to comment.