Skip to content

[receiver/k8sclusterreceiver] Drop deprecated KubeProxyVersion from node test fixture #50419

Description

@codeboten

nodes_test.go's TestTransform builds a corev1.NodeSystemInfo fixture that sets KubeProxyVersion, which is deprecated in k8s.io/api/core/v1 (kubelet no longer reliably reports it). Currently suppressed with //nolint:staticcheck.

The transform code in nodes.go never reads KubeProxyVersion (only KubeletVersion, ContainerRuntimeVersion, OSImage, OperatingSystem are used), so it's not exercised by the test - it's just part of a realistic-looking fixture. Decide whether to drop the field from the fixture (since real clusters increasingly won't populate it) or keep it for realism and leave the lint suppressed.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions