config

package
v0.0.2-0...-4ce78c8 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOrchestratorForwarder

func NewOrchestratorForwarder() *forwarder.DefaultForwarder

NewOrchestratorForwarder returns an orchestratorForwarder if the feature is activated on the cluster-agent/cluster-check runner, nil otherwise

Types

type OrchestratorConfig

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

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 load 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