-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cleanup] move env vars out of /api folder #1681
Merged
Merged
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
6307c2c
move env vars out of /api folder
swang392 3550d43
Merge branch 'main' into swang392/refactor-api-env
swang392 6ac09f7
Merge branch 'main' into swang392/refactor-api-env
tbavelier 01e66bb
delete empty envvar file
swang392 7288b60
move DDLogLevel to override folder
swang392 4941bbe
Merge remote-tracking branch 'origin/main' into swang392/refactor-api…
swang392 bcd38f5
remove imports to v2alpha1!! no longer needed
swang392 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Unless explicitly stated otherwise all files in this repository are licensed | ||
// under the Apache License Version 2.0. | ||
// This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
// Copyright 2025-present Datadog, Inc. | ||
|
||
package common | ||
|
||
const ( | ||
DDAPMEnabled = "DD_APM_ENABLED" | ||
DDAPMInstrumentationInstallTime = "DD_INSTRUMENTATION_INSTALL_TIME" | ||
DDAPMInstrumentationInstallId = "DD_INSTRUMENTATION_INSTALL_ID" | ||
DDAPMInstrumentationInstallType = "DD_INSTRUMENTATION_INSTALL_TYPE" | ||
DDClusterAgentEnabled = "DD_CLUSTER_AGENT_ENABLED" | ||
DDClusterAgentKubeServiceName = "DD_CLUSTER_AGENT_KUBERNETES_SERVICE_NAME" | ||
DDClusterAgentTokenName = "DD_CLUSTER_AGENT_TOKEN_NAME" | ||
DDContainerCollectionEnabled = "DD_PROCESS_CONFIG_CONTAINER_COLLECTION_ENABLED" | ||
DDDogstatsdEnabled = "DD_USE_DOGSTATSD" | ||
DDHealthPort = "DD_HEALTH_PORT" | ||
DDHostRootEnvVar = "HOST_ROOT" | ||
DDKubeletHost = "DD_KUBERNETES_KUBELET_HOST" | ||
DDLeaderElection = "DD_LEADER_ELECTION" | ||
DDLogsEnabled = "DD_LOGS_ENABLED" | ||
DDProcessCollectionEnabled = "DD_PROCESS_CONFIG_PROCESS_COLLECTION_ENABLED" | ||
DDProcessConfigRunInCoreAgent = "DD_PROCESS_CONFIG_RUN_IN_CORE_AGENT_ENABLED" | ||
DDSystemProbeEnabled = "DD_SYSTEM_PROBE_ENABLED" | ||
DDSystemProbeExternal = "DD_SYSTEM_PROBE_EXTERNAL" | ||
DDSystemProbeSocket = "DD_SYSPROBE_SOCKET" | ||
|
||
// KubernetesEnvvarName Env var used by the Datadog Agent container entrypoint | ||
// to add kubelet config provider and listener | ||
KubernetesEnvVar = "KUBERNETES" //common | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
internal/controller/datadogagent/component/agent/envvar.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Unless explicitly stated otherwise all files in this repository are licensed | ||
// under the Apache License Version 2.0. | ||
// This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
// Copyright 2025-present Datadog, Inc. | ||
|
||
package agent | ||
|
||
const ( | ||
DDContainerImageEnabled = "DD_CONTAINER_IMAGE_ENABLED" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
internal/controller/datadogagent/component/clusteragent/envvar.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Unless explicitly stated otherwise all files in this repository are licensed | ||
// under the Apache License Version 2.0. | ||
// This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
// Copyright 2025-present Datadog, Inc. | ||
|
||
package clusteragent | ||
|
||
const ( | ||
DDAuthTokenFilePath = "DD_AUTH_TOKEN_FILE_PATH" | ||
DDKubeResourcesNamespace = "DD_KUBE_RESOURCES_NAMESPACE" | ||
DDPodName = "DD_POD_NAME" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
internal/controller/datadogagent/component/clusterchecksrunner/envvar.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Unless explicitly stated otherwise all files in this repository are licensed | ||
// under the Apache License Version 2.0. | ||
// This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
// Copyright 2025-present Datadog, Inc. | ||
|
||
package clusterchecksrunner | ||
|
||
const ( | ||
DDClcRunnerEnabled = "DD_CLC_RUNNER_ENABLED" | ||
DDClcRunnerHost = "DD_CLC_RUNNER_HOST" | ||
DDClcRunnerID = "DD_CLC_RUNNER_ID" | ||
DDEnableMetadataCollection = "DD_ENABLE_METADATA_COLLECTION" | ||
DDHostname = "DD_HOSTNAME" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be in favor of fully removing this file now that it's empty