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

add nodeAnnotationsAsTags configuration option #1483

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

adel121
Copy link
Contributor

@adel121 adel121 commented Aug 8, 2024

What this PR does / why we need it:

Which issue this PR fixes

Adds nodeAnnotationsAsTags configuration option to the datadog chart.

Special notes for your reviewer:

This configuration option was introduced some time ago in this PR but was not introduced yet in helm chart.

An similar option, nodeLabelsAsTags, is already present in helm.

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • Chart Version bumped
  • Documentation has been updated with helm-docs (run: .github/helm-docs.sh)
  • CHANGELOG.md has been updated
  • Variables are documented in the README.md
  • For Datadog Operator chart or value changes update the test baselines (run: make update-test-baselines)

@adel121 adel121 requested a review from a team as a code owner August 8, 2024 12:53
@adel121 adel121 marked this pull request as draft August 8, 2024 12:53
@github-actions github-actions bot added the chart/datadog This issue or pull request is related to the datadog chart label Aug 8, 2024
@adel121 adel121 force-pushed the adelhajhassan/add_node_annotations_as_tags_configuration_option branch from f52633c to d2b6c1a Compare August 8, 2024 12:57
@adel121 adel121 marked this pull request as ready for review August 8, 2024 13:43
@@ -233,6 +233,12 @@ datadog:
# kubernetes.io/role: kube_role
# <KUBERNETES_NODE_LABEL>: <DATADOG_TAG_KEY>

# datadog.nodeAnnotationsAsTags -- Provide a mapping of Kubernetes Node Annotations to Datadog Tags
nodeAnnotationsAsTags:
cluster.k8s.io/machine: kube_machine
Copy link
Member

Choose a reason for hiding this comment

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

This should be commented

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I intend to have this as a default value

Copy link
Contributor Author

Choose a reason for hiding this comment

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

see here

Copy link
Member

Choose a reason for hiding this comment

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

It might be better to not set any default here and let the one in the agent apply if there's no value specified here.

@adel121 adel121 requested a review from davidor August 8, 2024 14:45
@@ -233,6 +233,12 @@ datadog:
# kubernetes.io/role: kube_role
# <KUBERNETES_NODE_LABEL>: <DATADOG_TAG_KEY>

# datadog.nodeAnnotationsAsTags -- Provide a mapping of Kubernetes Node Annotations to Datadog Tags
nodeAnnotationsAsTags:
Copy link
Member

Choose a reason for hiding this comment

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

This option is not used in any template

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My bad, missed adding the template file before committing.

updated.

@adel121 adel121 force-pushed the adelhajhassan/add_node_annotations_as_tags_configuration_option branch from d2b6c1a to c43d19e Compare August 8, 2024 14:55
@adel121 adel121 requested a review from davidor August 8, 2024 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chart/datadog This issue or pull request is related to the datadog chart
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants