remoteconfig

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 28 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (

	// InstallerStateUnknownConfigVersion prevents Fleet from interpreting
	// unverified startup state as an authoritative uninstalled state.
	InstallerStateUnknownConfigVersion = "unknown"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CoreAgentFeaturesConfig

type CoreAgentFeaturesConfig struct {
	SBOM *SbomConfig `json:"sbom"`
}

type CustomResourceDefinitionURLs added in v1.10.0

type CustomResourceDefinitionURLs struct {
	Crds *[]string `json:"crds,omitempty"`
}

CustomResourceDefinitionURLs defines model for CustomResourceDefinitionURLs.

type DatadogAgentRemoteConfig

type DatadogAgentRemoteConfig struct {
	ID            string                       `json:"id,omitempty"`
	Name          string                       `json:"name,omitempty"`
	CoreAgent     *CoreAgentFeaturesConfig     `json:"config,omitempty"`
	SystemProbe   *SystemProbeFeaturesConfig   `json:"system_probe,omitempty"`
	SecurityAgent *SecurityAgentFeaturesConfig `json:"security_agent,omitempty"`
}

DatadogAgentRemoteConfig contains the struct used to update DatadogAgent object from RemoteConfig

func (DatadogAgentRemoteConfig) GetID added in v1.10.0

func (d DatadogAgentRemoteConfig) GetID() string

GetID returns the ID of the configuration

type DatadogProductRemoteConfig added in v1.10.0

type DatadogProductRemoteConfig interface {
	// GetID returns the ID of the configuration
	GetID() string
}

DatadogProductRemoteConfig is an interface for Datadog product remote configuration

type FeatureEnabledConfig

type FeatureEnabledConfig struct {
	Enabled *bool `json:"enabled"`
}

type OrchestratorK8sCRDRemoteConfig added in v1.10.0

type OrchestratorK8sCRDRemoteConfig struct {
	ID   string                        `json:"id,omitempty"`
	Name string                        `json:"name,omitempty"`
	CRDs *CustomResourceDefinitionURLs `json:"crds,omitempty"`
}

OrchestratorK8sCRDRemoteConfig contains the struct used to update OrchestratorK8sCRD object from RemoteConfig

func (OrchestratorK8sCRDRemoteConfig) GetID added in v1.10.0

GetID returns the ID of the configuration

type RCClient added in v1.26.0

type RCClient interface {
	Subscribe(product string, fn func(update map[string]state.RawConfig, applyStateCallback func(string, state.ApplyStatus)))
	GetInstallerPackages() []*pbgo.PackageState
	SetInstallerPackages(packages []*pbgo.PackageState)
}

RCClient is the interface for subscribing to RC product updates.

type RcServiceConfiguration

type RcServiceConfiguration struct {
	// contains filtered or unexported fields
}

type RemoteConfigUpdater

type RemoteConfigUpdater struct {
	// contains filtered or unexported fields
}

func NewRemoteConfigUpdater

func NewRemoteConfigUpdater(client kubeclient.Client, logger logr.Logger, options ...RemoteConfigUpdaterOption) *RemoteConfigUpdater

NewRemoteConfigUpdater creates a RemoteConfigUpdater.

func (*RemoteConfigUpdater) Client added in v1.26.0

func (r *RemoteConfigUpdater) Client() RCClient

Client returns a stable proxy for the underlying RC client.

func (*RemoteConfigUpdater) GetInstallerPackages added in v1.31.0

func (r *RemoteConfigUpdater) GetInstallerPackages() []*pbgo.PackageState

func (*RemoteConfigUpdater) RefreshUpdaterTags added in v1.30.0

func (r *RemoteConfigUpdater) RefreshUpdaterTags(ctx context.Context) error

func (*RemoteConfigUpdater) SetInstallerPackages added in v1.31.0

func (r *RemoteConfigUpdater) SetInstallerPackages(packages []*pbgo.PackageState)

func (*RemoteConfigUpdater) Setup

func (r *RemoteConfigUpdater) Setup(creds config.Creds) error

func (*RemoteConfigUpdater) Start

func (r *RemoteConfigUpdater) Start(apiKey string, site string, clusterName string, directorRoot string, configRoot string, endpoint string) error

func (*RemoteConfigUpdater) Stop

func (r *RemoteConfigUpdater) Stop() error

func (*RemoteConfigUpdater) Subscribe added in v1.30.0

func (r *RemoteConfigUpdater) Subscribe(product string, callback func(map[string]state.RawConfig, func(string, state.ApplyStatus)))

type RemoteConfigUpdaterOption added in v1.30.0

type RemoteConfigUpdaterOption func(*RemoteConfigUpdater)

RemoteConfigUpdaterOption configures a RemoteConfigUpdater.

func WithAdditionalUpdaterTags added in v1.30.0

func WithAdditionalUpdaterTags(tags ...string) RemoteConfigUpdaterOption

WithAdditionalUpdaterTags adds static tags to the Remote Configuration updater identity.

func WithDynamicUpdaterTags added in v1.30.0

func WithDynamicUpdaterTags(tags func(context.Context) ([]string, error)) RemoteConfigUpdaterOption

WithDynamicUpdaterTags configures tags that can be refreshed while the updater is running.

func WithInitialInstallerConfigVersion added in v1.30.0

func WithInitialInstallerConfigVersion(version string) RemoteConfigUpdaterOption

WithInitialInstallerConfigVersion overrides the updater's initial installer config version.

type SbomConfig

type SbomConfig struct {
	Enabled        *bool                 `json:"enabled"`
	Host           *FeatureEnabledConfig `json:"host"`
	ContainerImage *FeatureEnabledConfig `json:"container_image"`
}

type SecurityAgentFeaturesConfig

type SecurityAgentFeaturesConfig struct {
	CSPM *FeatureEnabledConfig `json:"compliance_config"`
}

type SystemProbeFeaturesConfig

type SystemProbeFeaturesConfig struct {
	CWS *FeatureEnabledConfig `json:"runtime_security_config"`
	USM *FeatureEnabledConfig `json:"service_monitoring_config"`
}

Jump to

Keyboard shortcuts

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