Skip to content

Commit 8ce72b2

Browse files
committed
[chore] lint
Signed-off-by: RealAnna <anna.reale@dynatrace.com>
1 parent 38c1585 commit 8ce72b2

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

processor/k8sattributesprocessor/internal/kube/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,6 +1778,7 @@ func (c *WatchClient) handleReplicaSetUpdate(_, newRS any) {
17781778
c.logger.Error("object received was not of type apps_v1.ReplicaSet", zap.Any("received", newRS))
17791779
}
17801780
}
1781+
17811782
func (c *WatchClient) handleReplicaSetDelete(obj any) {
17821783
c.telemetryBuilder.OtelsvcK8sReplicasetDeleted.Add(context.Background(), 1)
17831784

processor/k8sattributesprocessor/internal/kube/client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3578,7 +3578,7 @@ func (i *trackableInformer) hasRun() bool {
35783578
return i.runCalled
35793579
}
35803580

3581-
func newTrackableInformer(client metadata.Interface, namespace string, labelSelector labels.Selector, fieldSelector fields.Selector) cache.SharedInformer {
3581+
func newTrackableInformer(client metadata.Interface, namespace string) cache.SharedInformer {
35823582
return &trackableInformer{
35833583
SharedInformer: NewFakeReplicaSetInformer(client, namespace),
35843584
}
@@ -3629,7 +3629,7 @@ func TestReplicaSetInformerConditionalStart(t *testing.T) {
36293629
newInformer: NewFakeInformer,
36303630
newNamespaceInformer: NewFakeNamespaceInformer,
36313631
newReplicaSetInformer: func(kc metadata.Interface, ns string) cache.SharedInformer {
3632-
return newTrackableInformer(kc, ns, labels.Everything(), fields.Everything())
3632+
return newTrackableInformer(kc, ns)
36333633
},
36343634
}
36353635

processor/k8sattributesprocessor/internal/kube/informer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ func replicaSetWatchFuncWithSelectors(mc metadata.Interface, gvr schema.GroupVer
154154
return mc.Resource(gvr).Namespace(namespace).Watch(ctx, opts)
155155
}
156156
}
157+
157158
func newDeploymentSharedInformer(
158159
client kubernetes.Interface,
159160
namespace string,

0 commit comments

Comments
 (0)