test

package
v1.8.0-rc.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatadogAgent

func NewDatadogAgent(ns, name string, globalOverride *v2alpha1.GlobalConfig) *v2alpha1.DatadogAgent

NewDatadogAgent returns an initialized and defaulted DatadogAgent for testing purpose

Types

type DatadogAgentBuilder added in v1.3.0

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

func NewDatadogAgentBuilder added in v1.3.0

func NewDatadogAgentBuilder() *DatadogAgentBuilder

NewDatadogAgentBuilder creates DatadogAgent and initializes Global, Features, Override properties

func NewDefaultDatadogAgentBuilder added in v1.3.0

func NewDefaultDatadogAgentBuilder() *DatadogAgentBuilder

NewDefaultDatadogAgentBuilder created DatadogAgent and applies defaults

func NewInitializedDatadogAgentBuilder added in v1.4.0

func NewInitializedDatadogAgentBuilder(ns, name string) *DatadogAgentBuilder

NewDefaultDatadogAgentBuilder initialized with name, namespace, creds and metadata

func (*DatadogAgentBuilder) Build added in v1.3.0

func (builder *DatadogAgentBuilder) Build() *v2alpha1.DatadogAgent

Build returns DatadogAgent pointer with current properties

func (*DatadogAgentBuilder) BuildWithDefaults added in v1.3.0

func (builder *DatadogAgentBuilder) BuildWithDefaults() *v2alpha1.DatadogAgent

BuildWithDefaults applies defaults to current properties and returns resulting DatadogAgent

func (*DatadogAgentBuilder) WithAPMEnabled added in v1.4.0

func (builder *DatadogAgentBuilder) WithAPMEnabled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithAPMHostPortEnabled added in v1.4.0

func (builder *DatadogAgentBuilder) WithAPMHostPortEnabled(enabled bool, port *int32) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithAPMSingleStepInstrumentationEnabled added in v1.5.0

func (builder *DatadogAgentBuilder) WithAPMSingleStepInstrumentationEnabled(enabled bool, enabledNamespaces []string, disabledNamespaces []string, libVersion map[string]string, languageDetectionEnabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithAPMUDSEnabled added in v1.4.0

func (builder *DatadogAgentBuilder) WithAPMUDSEnabled(enabled bool, apmSocketHostPath string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithASMEnabled added in v1.7.0

func (builder *DatadogAgentBuilder) WithASMEnabled(threats, sca, iast bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithAdmissionControllerAgentCommunicationMode added in v1.7.0

func (builder *DatadogAgentBuilder) WithAdmissionControllerAgentCommunicationMode(comMode string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithAdmissionControllerEnabled added in v1.5.0

func (builder *DatadogAgentBuilder) WithAdmissionControllerEnabled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithAdmissionControllerFailurePolicy added in v1.7.0

func (builder *DatadogAgentBuilder) WithAdmissionControllerFailurePolicy(policy string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithAdmissionControllerMutateUnlabelled added in v1.7.0

func (builder *DatadogAgentBuilder) WithAdmissionControllerMutateUnlabelled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithAdmissionControllerRegistry added in v1.7.0

func (builder *DatadogAgentBuilder) WithAdmissionControllerRegistry(name string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithAdmissionControllerServiceName added in v1.7.0

func (builder *DatadogAgentBuilder) WithAdmissionControllerServiceName(name string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithAdmissionControllerWebhookName added in v1.7.0

func (builder *DatadogAgentBuilder) WithAdmissionControllerWebhookName(name string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithCSPMEnabled added in v1.4.0

func (builder *DatadogAgentBuilder) WithCSPMEnabled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithCWSEnabled added in v1.4.0

func (builder *DatadogAgentBuilder) WithCWSEnabled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithCWSInstrumentationEnabled added in v1.7.0

func (builder *DatadogAgentBuilder) WithCWSInstrumentationEnabled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithCWSInstrumentationMode added in v1.7.0

func (builder *DatadogAgentBuilder) WithCWSInstrumentationMode(mode string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithClusterChecksEnabled added in v1.3.0

func (builder *DatadogAgentBuilder) WithClusterChecksEnabled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithClusterChecksUseCLCEnabled added in v1.3.0

func (builder *DatadogAgentBuilder) WithClusterChecksUseCLCEnabled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithComponentOverride added in v1.4.0

func (builder *DatadogAgentBuilder) WithComponentOverride(componentName v2alpha1.ComponentName, override v2alpha1.DatadogAgentComponentOverride) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithCredentials added in v1.4.0

func (builder *DatadogAgentBuilder) WithCredentials(apiKey, appKey string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithDogstatsdHostPortConfig added in v1.3.0

func (builder *DatadogAgentBuilder) WithDogstatsdHostPortConfig(port int32) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithDogstatsdHostPortEnabled added in v1.3.0

func (builder *DatadogAgentBuilder) WithDogstatsdHostPortEnabled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithDogstatsdMapperProfiles added in v1.3.0

func (builder *DatadogAgentBuilder) WithDogstatsdMapperProfiles(customMapperProfilesConf string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithDogstatsdOriginDetectionEnabled added in v1.3.0

func (builder *DatadogAgentBuilder) WithDogstatsdOriginDetectionEnabled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithDogstatsdTagCardinality added in v1.3.0

func (builder *DatadogAgentBuilder) WithDogstatsdTagCardinality(cardinality string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithDogstatsdUnixDomainSocketConfigEnabled added in v1.3.0

func (builder *DatadogAgentBuilder) WithDogstatsdUnixDomainSocketConfigEnabled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithDogstatsdUnixDomainSocketConfigPath added in v1.3.0

func (builder *DatadogAgentBuilder) WithDogstatsdUnixDomainSocketConfigPath(customPath string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithEventCollectionKubernetesEvents added in v1.3.0

func (builder *DatadogAgentBuilder) WithEventCollectionKubernetesEvents(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithEventCollectionUnbundleEvents added in v1.8.0

func (builder *DatadogAgentBuilder) WithEventCollectionUnbundleEvents(enabled bool, eventTypes []v2alpha1.EventTypes) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithFIPS added in v1.5.0

func (builder *DatadogAgentBuilder) WithFIPS(fipsConfig v2alpha1.FIPSConfig) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithGlobalCriSocketPath added in v1.4.0

func (builder *DatadogAgentBuilder) WithGlobalCriSocketPath(criSocketPath string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithGlobalDockerSocketPath added in v1.4.0

func (builder *DatadogAgentBuilder) WithGlobalDockerSocketPath(dockerSocketPath string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithGlobalKubeletConfig added in v1.4.0

func (builder *DatadogAgentBuilder) WithGlobalKubeletConfig(hostCAPath, agentCAPath string, tlsVerify bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithHelmCheckCollectEvents added in v1.5.0

func (builder *DatadogAgentBuilder) WithHelmCheckCollectEvents(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithHelmCheckEnabled added in v1.5.0

func (builder *DatadogAgentBuilder) WithHelmCheckEnabled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithHelmCheckValuesAsTags added in v1.5.0

func (builder *DatadogAgentBuilder) WithHelmCheckValuesAsTags(valuesAsTags map[string]string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithKSMCustomConf added in v1.4.0

func (builder *DatadogAgentBuilder) WithKSMCustomConf(customData string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithKSMEnabled added in v1.4.0

func (builder *DatadogAgentBuilder) WithKSMEnabled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithLiveContainerCollectionEnabled added in v1.4.0

func (builder *DatadogAgentBuilder) WithLiveContainerCollectionEnabled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithLiveProcessEnabled added in v1.3.0

func (builder *DatadogAgentBuilder) WithLiveProcessEnabled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithLiveProcessScrubStrip added in v1.3.0

func (builder *DatadogAgentBuilder) WithLiveProcessScrubStrip(scrubEnabled, stripEnabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithLogCollectionCollectAll added in v1.3.0

func (builder *DatadogAgentBuilder) WithLogCollectionCollectAll(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithLogCollectionEnabled added in v1.3.0

func (builder *DatadogAgentBuilder) WithLogCollectionEnabled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithLogCollectionLogCollectionUsingFiles added in v1.3.0

func (builder *DatadogAgentBuilder) WithLogCollectionLogCollectionUsingFiles(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithLogCollectionOpenFilesLimit added in v1.3.0

func (builder *DatadogAgentBuilder) WithLogCollectionOpenFilesLimit(limit int32) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithLogCollectionPaths added in v1.3.0

func (builder *DatadogAgentBuilder) WithLogCollectionPaths(podLogs, containerLogs, containerSymlinks, tempStorate string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithNPMEnabled added in v1.4.0

func (builder *DatadogAgentBuilder) WithNPMEnabled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithName added in v1.3.0

func (builder *DatadogAgentBuilder) WithName(name string) *DatadogAgentBuilder

Common

func (*DatadogAgentBuilder) WithOOMKillEnabled added in v1.4.0

func (builder *DatadogAgentBuilder) WithOOMKillEnabled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithOTLPGRPCSettings added in v1.4.0

func (builder *DatadogAgentBuilder) WithOTLPGRPCSettings(enabled bool, endpoint string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithOTLPHTTPSettings added in v1.4.0

func (builder *DatadogAgentBuilder) WithOTLPHTTPSettings(enabled bool, endpoint string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithOrchestratorExplorerCustomConfigData added in v1.3.0

func (builder *DatadogAgentBuilder) WithOrchestratorExplorerCustomConfigData(customConfigData string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithOrchestratorExplorerDDUrl added in v1.3.0

func (builder *DatadogAgentBuilder) WithOrchestratorExplorerDDUrl(ddUrl string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithOrchestratorExplorerEnabled added in v1.3.0

func (builder *DatadogAgentBuilder) WithOrchestratorExplorerEnabled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithOrchestratorExplorerExtraTags added in v1.3.0

func (builder *DatadogAgentBuilder) WithOrchestratorExplorerExtraTags(tags []string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithOrchestratorExplorerScrubContainers added in v1.3.0

func (builder *DatadogAgentBuilder) WithOrchestratorExplorerScrubContainers(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithOriginDetectionUnified added in v1.7.0

func (builder *DatadogAgentBuilder) WithOriginDetectionUnified(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithProcessDiscoveryEnabled added in v1.6.0

func (builder *DatadogAgentBuilder) WithProcessDiscoveryEnabled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithPrometheusScrapeAdditionalConfigs added in v1.3.0

func (builder *DatadogAgentBuilder) WithPrometheusScrapeAdditionalConfigs(additionalConfig string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithPrometheusScrapeEnabled added in v1.3.0

func (builder *DatadogAgentBuilder) WithPrometheusScrapeEnabled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithPrometheusScrapeServiceEndpoints added in v1.3.0

func (builder *DatadogAgentBuilder) WithPrometheusScrapeServiceEndpoints(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithPrometheusScrapeVersion added in v1.3.0

func (builder *DatadogAgentBuilder) WithPrometheusScrapeVersion(version int) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithRegistry added in v1.7.0

func (builder *DatadogAgentBuilder) WithRegistry(registry string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithRemoteConfigEnabled added in v1.3.0

func (builder *DatadogAgentBuilder) WithRemoteConfigEnabled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithSidecarInjectionClusterAgentCommunicationEnabled added in v1.7.0

func (builder *DatadogAgentBuilder) WithSidecarInjectionClusterAgentCommunicationEnabled(enabled bool) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithSidecarInjectionEnabled added in v1.7.0

func (builder *DatadogAgentBuilder) WithSidecarInjectionEnabled(enabled bool) *DatadogAgentBuilder

sidecar Injection

func (*DatadogAgentBuilder) WithSidecarInjectionImageName added in v1.7.0

func (builder *DatadogAgentBuilder) WithSidecarInjectionImageName(name string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithSidecarInjectionImageTag added in v1.7.0

func (builder *DatadogAgentBuilder) WithSidecarInjectionImageTag(tag string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithSidecarInjectionProfiles added in v1.7.0

func (builder *DatadogAgentBuilder) WithSidecarInjectionProfiles(envKey, envValue, resourceCPU, resourceMem string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithSidecarInjectionProvider added in v1.7.0

func (builder *DatadogAgentBuilder) WithSidecarInjectionProvider(provider string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithSidecarInjectionRegistry added in v1.7.0

func (builder *DatadogAgentBuilder) WithSidecarInjectionRegistry(registry string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithSidecarInjectionSelectors added in v1.7.0

func (builder *DatadogAgentBuilder) WithSidecarInjectionSelectors(selectorKey, selectorValue string) *DatadogAgentBuilder

func (*DatadogAgentBuilder) WithSingleContainerStrategy added in v1.4.0

func (builder *DatadogAgentBuilder) WithSingleContainerStrategy(enabled bool) *DatadogAgentBuilder

Jump to

Keyboard shortcuts

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