test

package
v1.9.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 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

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

func NewDatadogAgentBuilder

func NewDatadogAgentBuilder() *DatadogAgentBuilder

NewDatadogAgentBuilder creates DatadogAgent and initializes Global, Features, Override properties

func NewDefaultDatadogAgentBuilder

func NewDefaultDatadogAgentBuilder() *DatadogAgentBuilder

NewDefaultDatadogAgentBuilder created DatadogAgent and applies defaults

func NewInitializedDatadogAgentBuilder

func NewInitializedDatadogAgentBuilder(ns, name string) *DatadogAgentBuilder

NewDefaultDatadogAgentBuilder initialized with name, namespace, creds and metadata

func (*DatadogAgentBuilder) Build

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

Build returns DatadogAgent pointer with current properties

func (*DatadogAgentBuilder) BuildWithDefaults

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

BuildWithDefaults applies defaults to current properties and returns resulting DatadogAgent

func (*DatadogAgentBuilder) WithAPMEnabled

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

func (*DatadogAgentBuilder) WithAPMHostPortEnabled

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

func (*DatadogAgentBuilder) WithAPMSingleStepInstrumentationEnabled

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

func (*DatadogAgentBuilder) WithAPMUDSEnabled

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

func (*DatadogAgentBuilder) WithASMEnabled

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

func (*DatadogAgentBuilder) WithAdmissionControllerAgentCommunicationMode

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

func (*DatadogAgentBuilder) WithAdmissionControllerEnabled

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

func (*DatadogAgentBuilder) WithAdmissionControllerFailurePolicy

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

func (*DatadogAgentBuilder) WithAdmissionControllerMutateUnlabelled

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

func (*DatadogAgentBuilder) WithAdmissionControllerRegistry

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

func (*DatadogAgentBuilder) WithAdmissionControllerServiceName

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

func (*DatadogAgentBuilder) WithAdmissionControllerWebhookName

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

func (*DatadogAgentBuilder) WithCSPMEnabled

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

func (*DatadogAgentBuilder) WithCWSEnabled

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

func (*DatadogAgentBuilder) WithCWSInstrumentationEnabled

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

func (*DatadogAgentBuilder) WithCWSInstrumentationMode

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

func (*DatadogAgentBuilder) WithClusterChecksEnabled

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

func (*DatadogAgentBuilder) WithClusterChecksUseCLCEnabled

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

func (*DatadogAgentBuilder) WithComponentOverride

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

func (*DatadogAgentBuilder) WithCredentials

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

func (*DatadogAgentBuilder) WithDogstatsdHostPortConfig

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

func (*DatadogAgentBuilder) WithDogstatsdHostPortEnabled

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

func (*DatadogAgentBuilder) WithDogstatsdMapperProfiles

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

func (*DatadogAgentBuilder) WithDogstatsdOriginDetectionEnabled

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

func (*DatadogAgentBuilder) WithDogstatsdTagCardinality

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

func (*DatadogAgentBuilder) WithDogstatsdUnixDomainSocketConfigEnabled

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

func (*DatadogAgentBuilder) WithDogstatsdUnixDomainSocketConfigPath

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

func (*DatadogAgentBuilder) WithEventCollectionKubernetesEvents

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

func (*DatadogAgentBuilder) WithEventCollectionUnbundleEvents

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

func (*DatadogAgentBuilder) WithFIPS

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

func (*DatadogAgentBuilder) WithGlobalCriSocketPath

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

func (*DatadogAgentBuilder) WithGlobalDockerSocketPath

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

func (*DatadogAgentBuilder) WithGlobalKubeletConfig

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

func (*DatadogAgentBuilder) WithHelmCheckCollectEvents

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

func (*DatadogAgentBuilder) WithHelmCheckEnabled

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

func (*DatadogAgentBuilder) WithHelmCheckValuesAsTags

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

func (*DatadogAgentBuilder) WithKSMCustomConf

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

func (*DatadogAgentBuilder) WithKSMEnabled

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

func (*DatadogAgentBuilder) WithLiveContainerCollectionEnabled

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

func (*DatadogAgentBuilder) WithLiveProcessEnabled

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

func (*DatadogAgentBuilder) WithLiveProcessScrubStrip

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

func (*DatadogAgentBuilder) WithLogCollectionCollectAll

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

func (*DatadogAgentBuilder) WithLogCollectionEnabled

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

func (*DatadogAgentBuilder) WithLogCollectionLogCollectionUsingFiles

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

func (*DatadogAgentBuilder) WithLogCollectionOpenFilesLimit

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

func (*DatadogAgentBuilder) WithLogCollectionPaths

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

func (*DatadogAgentBuilder) WithNPMEnabled

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

func (*DatadogAgentBuilder) WithName

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

Common

func (*DatadogAgentBuilder) WithOOMKillEnabled

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

func (*DatadogAgentBuilder) WithOTLPGRPCSettings

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

func (*DatadogAgentBuilder) WithOTLPHTTPSettings

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

func (*DatadogAgentBuilder) WithOrchestratorExplorerCustomConfigData

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

func (*DatadogAgentBuilder) WithOrchestratorExplorerDDUrl

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

func (*DatadogAgentBuilder) WithOrchestratorExplorerEnabled

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

func (*DatadogAgentBuilder) WithOrchestratorExplorerExtraTags

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

func (*DatadogAgentBuilder) WithOrchestratorExplorerScrubContainers

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

func (*DatadogAgentBuilder) WithOriginDetectionUnified

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

func (*DatadogAgentBuilder) WithProcessDiscoveryEnabled

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

func (*DatadogAgentBuilder) WithPrometheusScrapeAdditionalConfigs

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

func (*DatadogAgentBuilder) WithPrometheusScrapeEnabled

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

func (*DatadogAgentBuilder) WithPrometheusScrapeServiceEndpoints

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

func (*DatadogAgentBuilder) WithPrometheusScrapeVersion

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

func (*DatadogAgentBuilder) WithRegistry

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

func (*DatadogAgentBuilder) WithRemoteConfigEnabled

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

func (*DatadogAgentBuilder) WithSidecarInjectionClusterAgentCommunicationEnabled

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

func (*DatadogAgentBuilder) WithSidecarInjectionEnabled

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

sidecar Injection

func (*DatadogAgentBuilder) WithSidecarInjectionImageName

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

func (*DatadogAgentBuilder) WithSidecarInjectionImageTag

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

func (*DatadogAgentBuilder) WithSidecarInjectionProfiles

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

func (*DatadogAgentBuilder) WithSidecarInjectionProvider

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

func (*DatadogAgentBuilder) WithSidecarInjectionRegistry

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

func (*DatadogAgentBuilder) WithSidecarInjectionSelectors

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

func (*DatadogAgentBuilder) WithSingleContainerStrategy

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