From b2b46dc514917dc023fcdd622db5bf4dabbc088d Mon Sep 17 00:00:00 2001 From: Gregor Zeitlinger Date: Fri, 10 Jan 2025 09:30:08 +0100 Subject: [PATCH] lint --- .../internal/kube/client_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/processor/k8sattributesprocessor/internal/kube/client_test.go b/processor/k8sattributesprocessor/internal/kube/client_test.go index 49e316a9d2e5..fb7faf9af092 100644 --- a/processor/k8sattributesprocessor/internal/kube/client_test.go +++ b/processor/k8sattributesprocessor/internal/kube/client_test.go @@ -1019,18 +1019,18 @@ func TestExtractionRules(t *testing.T) { // manually call the data removal functions here // normally the informer does this, but fully emulating the informer in this test is annoying - pod := pod.DeepCopy() + podCopy := pod.DeepCopy() for k, v := range tc.additionalAnnotations { - pod.Annotations[k] = v + podCopy.Annotations[k] = v } for k, v := range tc.additionalLabels { - pod.Labels[k] = v + podCopy.Labels[k] = v } - transformedPod := removeUnnecessaryPodData(pod, c.Rules) + transformedPod := removeUnnecessaryPodData(podCopy, c.Rules) transformedReplicaset := removeUnnecessaryReplicaSetData(replicaset) c.handleReplicaSetAdd(transformedReplicaset) c.handlePodAdd(transformedPod) - p, ok := c.GetPod(newPodIdentifier("connection", "", pod.Status.PodIP)) + p, ok := c.GetPod(newPodIdentifier("connection", "", podCopy.Status.PodIP)) require.True(t, ok) assert.Equal(t, tc.attributes, p.Attributes)