datadog-operator icon indicating copy to clipboard operation
datadog-operator copied to clipboard

Watch nodes if profiles or introspection is enabled

Open khewonc opened this issue 7 months ago • 1 comments

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/or dependencies
  • [x] PR has a milestone or the qa/skip-qa label

khewonc avatar Jul 03 '24 19:07 khewonc