datadog-operator
datadog-operator copied to clipboard
Watch nodes if profiles or introspection is enabled
What does this PR do?
Adds more conditionals to make make watch nodes more restrictive since we only need it for introspection or profiles
Motivation
https://datadoghq.atlassian.net/browse/CECO-1267
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?
- Agent: n/a
- Cluster Agent: n/a
Describe your test plan
- Deploy the operator with either introspection or profiles enabled
- Changing node labels should cause an extra reconcile
- Deploy the operator without introspection and profiles enabled
- Changing node labels shouldn't cause a reconcile
Checklist
- [x] PR has at least one valid label:
bug
,enhancement
,refactoring
,documentation
,tooling
, and/ordependencies
- [x] PR has a milestone or the
qa/skip-qa
label