configstreambootstrap

package
v0.0.0-...-487e2cc Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package configstreambootstrap holds the global-config-builder helpers the configstreamconsumer component delegates to. Lives outside comp/ because the pkgconfigusage depguard blocks pkg/config/setup imports from comp/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplySetting

func ApplySetting(key string, value *structpb.Value, source string)

ApplySetting writes one streamed setting to the global config, preserving the source.

func AuthTokenFilepath

func AuthTokenFilepath() string

AuthTokenFilepath resolves the auth-token path via pkg/api/security's fallback rules.

func DisableLocalEnvLayer

func DisableLocalEnvLayer(clientName string)

DisableLocalEnvLayer drops the env layer (nodetreemodel only) so local DD_* vars can't override streamed values. Viper-backed configs cannot clear env vars.

func IPCCertFilepath

func IPCCertFilepath() string

IPCCertFilepath returns the configured ipc_cert_file_path.

func SeedGlobalBuilder

func SeedGlobalBuilder(s Settings, configFile string)

SeedGlobalBuilder writes bootstrap values to the global builder. configFile is recorded as ConfigFileUsed so pkg/api/security[/cert] fallback paths resolve next to datadog.yaml.

Types

type Settings

type Settings struct {
	AuthTokenFilePath  string
	IPCCertFilePath    string
	CmdHost            string
	CmdPort            int
	VSockAddr          string
	RARRegistryEnabled bool
}

Settings is the bounded set of values resolved from env+YAML before dial. Everything else comes from the streamed snapshot.

func ReadBaseSettings

func ReadBaseSettings() Settings

ReadBaseSettings returns the bootstrap settings from the global config (defaults + env layer).

Jump to

Keyboard shortcuts

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