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

Don't update k8s-settings object, if already present

Open 0sewa0 opened this issue 4 months ago • 1 comments

Description

K8S-11513

If we update the k8s settings object that already exists, for some reason causes data gaps.

We should avoid updating it, as it was done before v1.3

The diff looks a bit confusing:

  • I just moved the settings.TotalCount > 0 check(and related calls) , before the r.dtc.CreateOrUpdateKubernetesSetting(... call

How can this be tested?

There was a unit-test that was supposed to test for this.

  • I fixed it, now it fails with the old logic

Otherwise you have to make it update, and see gaps in the collected data

0sewa0 avatar Oct 04 '24 10:10 0sewa0