config

package
v0.0.0-...-45b38f9 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsOrchestratorECSExplorerEnabled

func IsOrchestratorECSExplorerEnabled() bool

IsOrchestratorECSExplorerEnabled checks if orchestrator ecs explorer features are enabled

func IsOrchestratorEnabled

func IsOrchestratorEnabled() (bool, string)

IsOrchestratorEnabled checks if orchestrator explorer features are enabled, it returns the boolean and the cluster name

func OrchestratorNSKey

func OrchestratorNSKey(pieces ...string) string

OrchestratorNSKey get the config name key for orchestratorNS

Types

type OrchestratorConfig

type OrchestratorConfig struct {
	CollectorDiscoveryEnabled      bool
	OrchestrationCollectionEnabled bool
	KubeClusterName                string
	IsScrubbingEnabled             bool
	Scrubber                       *redact.DataScrubber
	OrchestratorEndpoints          []apicfg.Endpoint
	MaxPerMessage                  int
	MaxWeightPerMessageBytes       int
	PodQueueBytes                  int // The total number of bytes that can be enqueued for delivery to the orchestrator endpoint
	ExtraTags                      []string
	IsManifestCollectionEnabled    bool
	BufferedManifestEnabled        bool
	ManifestBufferFlushInterval    time.Duration
}

OrchestratorConfig is the global config for the Orchestrator related packages. This information is sourced from config files and the environment variables.

func NewDefaultOrchestratorConfig

func NewDefaultOrchestratorConfig() *OrchestratorConfig

NewDefaultOrchestratorConfig returns an NewDefaultOrchestratorConfig using a configuration file. It can be nil if there is no file available. In this case we'll configure only via environment.

func (*OrchestratorConfig) Load

func (oc *OrchestratorConfig) Load() error

Load loads orchestrator-specific configuration at this point secrets should already be resolved by the core/process/cluster agent

Jump to

Keyboard shortcuts

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