Documentation
¶
Index ¶
- Constants
- type CoreAgentFeaturesConfig
- type CustomResourceDefinitionURLs
- type DatadogAgentRemoteConfig
- type DatadogProductRemoteConfig
- type FeatureEnabledConfig
- type OrchestratorK8sCRDRemoteConfig
- type RCClient
- type RcServiceConfiguration
- type RemoteConfigUpdater
- func (r *RemoteConfigUpdater) Client() RCClient
- func (r *RemoteConfigUpdater) GetInstallerPackages() []*pbgo.PackageState
- func (r *RemoteConfigUpdater) RefreshUpdaterTags(ctx context.Context) error
- func (r *RemoteConfigUpdater) SetInstallerPackages(packages []*pbgo.PackageState)
- func (r *RemoteConfigUpdater) Setup(creds config.Creds) error
- func (r *RemoteConfigUpdater) Start(apiKey string, site string, clusterName string, directorRoot string, ...) error
- func (r *RemoteConfigUpdater) Stop() error
- func (r *RemoteConfigUpdater) Subscribe(product string, ...)
- type RemoteConfigUpdaterOption
- type SbomConfig
- type SecurityAgentFeaturesConfig
- type SystemProbeFeaturesConfig
Constants ¶
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
func (d OrchestratorK8sCRDRemoteConfig) GetID() string
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) 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"`
}