Skip to content
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

[backport] Add NodeLabelsAsTags and NamespaceLabelsAsTags, remove default Pod behavior #475

Merged
merged 1 commit into from
Apr 28, 2022

Conversation

JacksonDavenport
Copy link
Contributor

What does this PR do?

Backport #471 to v0.8 Branch

Add agent.config.namespaceLabelsAsTags and agent.config.nodeLabelsAsTags to Operator configuration. Remove the behavior where the environment variables DD_KUBERNETES_POD_LABELS_AS_TAGS and DD_KUBERNETES_POD_ANNOTATIONS_AS_TAGS would default to {} when Operator config not set (instead just don't set these in the first place).

Motivation

Add feature to v0.8 release

Additional Notes

Anything else we should know when reviewing?

Describe your test plan

Write there any instructions and details you may have to test your PR.

…v vars (#471)

Remove POD_X_AS_TAGS as no longer defaulting to {}

Test cases for various metadata as tags configs

Move the xyzAsTags to the common set of environment variables

Revert "Move the xyzAsTags to the common set of environment variables"

This reverts commit 11a8cfa.

Update tests to use NodeAgentConfig/EnvVar rather than generics

Add port names to agent service (#468)

Update default DCA image to 1.19.0 (#470)

Share common structs in common/v1 and adds missing fields to v2alpha1 (#438)

fix: k8s version detection for agent service (#472)

Rename Test_getEnvVarsForMetadataAsTags function

Co-authored-by: Celene Chang <[email protected]>
@JacksonDavenport JacksonDavenport requested review from a team as code owners April 28, 2022 16:48
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request does not contain a valid label. Please add one of the following labels: bug, enhancement, refactoring, documentation, tooling

@JacksonDavenport JacksonDavenport changed the title Add NodeLabelsAsTags and NamespaceLabelsAsTags, remove default Pod en… [backport] Add NodeLabelsAsTags and NamespaceLabelsAsTags, remove default Pod behavior Apr 28, 2022
@JacksonDavenport JacksonDavenport added the enhancement New feature or request label Apr 28, 2022
@celenechang celenechang added this to the v0.8.0 milestone Apr 28, 2022
@JacksonDavenport JacksonDavenport merged commit 0670d6b into v0.8 Apr 28, 2022
@JacksonDavenport JacksonDavenport deleted the jack.davenport/backport_471 branch April 28, 2022 18:18
@khewonc khewonc mentioned this pull request May 17, 2022
celenechang added a commit that referenced this pull request May 18, 2022
…v vars (#471) (#475)

Remove POD_X_AS_TAGS as no longer defaulting to {}

Test cases for various metadata as tags configs

Move the xyzAsTags to the common set of environment variables

Revert "Move the xyzAsTags to the common set of environment variables"

This reverts commit 11a8cfa.

Update tests to use NodeAgentConfig/EnvVar rather than generics

Add port names to agent service (#468)

Update default DCA image to 1.19.0 (#470)

Share common structs in common/v1 and adds missing fields to v2alpha1 (#438)

fix: k8s version detection for agent service (#472)

Rename Test_getEnvVarsForMetadataAsTags function

Co-authored-by: Celene Chang <[email protected]>

Co-authored-by: Celene Chang <[email protected]>
khewonc added a commit that referenced this pull request May 19, 2022
* release v0.8.0-rc.1

* [defaulting/images] Update agent to 7.35.0 (#465)

* [controllers/datadogagent/utils] Fix process collection nil check (#466)

* [examples] Fix datadog-agent-secret-backend (#467)

* Add port names to agent service (#468)

* Update default DCA image to 1.19.0 (#470)

* release v0.8.0-rc.2

* fix: k8s version detection for agent service (#472) (#473)

* Add NodeLabelsAsTags and NamespaceLabelsAsTags, remove default Pod env vars (#471) (#475)

Remove POD_X_AS_TAGS as no longer defaulting to {}

Test cases for various metadata as tags configs

Move the xyzAsTags to the common set of environment variables

Revert "Move the xyzAsTags to the common set of environment variables"

This reverts commit 11a8cfa.

Update tests to use NodeAgentConfig/EnvVar rather than generics

Add port names to agent service (#468)

Update default DCA image to 1.19.0 (#470)

Share common structs in common/v1 and adds missing fields to v2alpha1 (#438)

fix: k8s version detection for agent service (#472)

Rename Test_getEnvVarsForMetadataAsTags function

Co-authored-by: Celene Chang <[email protected]>

Co-authored-by: Celene Chang <[email protected]>

* release v0.8.0-rc.3

* Default Agent version to 7.35.2 (#480)

* release v0.8.0-rc.4

* release v0.8.0

Co-authored-by: David Ortiz <[email protected]>
Co-authored-by: Cedric Lamoriniere <[email protected]>
Co-authored-by: JacksonDavenport <[email protected]>
Co-authored-by: Celene Chang <[email protected]>
Co-authored-by: Paul Cacheux <[email protected]>
mftoure pushed a commit that referenced this pull request Oct 3, 2024
* release v0.8.0-rc.1

* [defaulting/images] Update agent to 7.35.0 (#465)

* [controllers/datadogagent/utils] Fix process collection nil check (#466)

* [examples] Fix datadog-agent-secret-backend (#467)

* Add port names to agent service (#468)

* Update default DCA image to 1.19.0 (#470)

* release v0.8.0-rc.2

* fix: k8s version detection for agent service (#472) (#473)

* Add NodeLabelsAsTags and NamespaceLabelsAsTags, remove default Pod env vars (#471) (#475)

Remove POD_X_AS_TAGS as no longer defaulting to {}

Test cases for various metadata as tags configs

Move the xyzAsTags to the common set of environment variables

Revert "Move the xyzAsTags to the common set of environment variables"

This reverts commit 11a8cfa.

Update tests to use NodeAgentConfig/EnvVar rather than generics

Add port names to agent service (#468)

Update default DCA image to 1.19.0 (#470)

Share common structs in common/v1 and adds missing fields to v2alpha1 (#438)

fix: k8s version detection for agent service (#472)

Rename Test_getEnvVarsForMetadataAsTags function

Co-authored-by: Celene Chang <[email protected]>

Co-authored-by: Celene Chang <[email protected]>

* release v0.8.0-rc.3

* Default Agent version to 7.35.2 (#480)

* release v0.8.0-rc.4

* release v0.8.0

Co-authored-by: David Ortiz <[email protected]>
Co-authored-by: Cedric Lamoriniere <[email protected]>
Co-authored-by: JacksonDavenport <[email protected]>
Co-authored-by: Celene Chang <[email protected]>
Co-authored-by: Paul Cacheux <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants