-
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
move processing of labels and annotations as tags #1522
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1522 +/- ##
==========================================
+ Coverage 48.63% 48.64% +0.01%
==========================================
Files 227 226 -1
Lines 20227 20233 +6
==========================================
+ Hits 9838 9843 +5
- Misses 9872 9874 +2
+ Partials 517 516 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
|
internal/controller/datadogagent/feature/enabledefault/feature.go
Outdated
Show resolved
Hide resolved
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.
Thanks @celenechang , I've left a comment
internal/controller/datadogagent/feature/enabledefault/feature.go
Outdated
Show resolved
Hide resolved
This reverts commit 47efbf4.
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.
Question:
kubernetesResourcesLabelsAsTags
and podLabelsAsTags
are very similar in the sense that they should be applied to all 3 agents (node, cluster and runner), and the cluster agent needs an rbac to watch pods.
I am curious why these 2 features are implemented differently in the operator?
If we had an rbac issue with kubernetesResourcesLabelsAsTags
shouldn't we also have the same issue for podLabelsAsTags
?
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.
LGTM
What does this PR do?
Motivation
The presence of the ClusterRole and ClusterRoleBinding was causing a requeue of a nonexistant object
Additional Notes
Anything else we should know when reviewing?
Minimum Agent Versions
Are there minimum versions of the Datadog Agent and/or Cluster Agent required?
Describe your test plan
Test according to instructions in #1379
In addition:
datadog-cluster-agent-annotations-and-labels-as-tags
kubernetesResourcesLabelsAsTags
andkubernetesResourcesAnnotationsAsTags
from the DatadogAgent manifest results in the absence of the ClusterRoledatadog-cluster-agent-annotations-and-labels-as-tags
.Checklist
bug
,enhancement
,refactoring
,documentation
,tooling
, and/ordependencies
qa/skip-qa
label