Skip to content

Commit

Permalink
chore(receiver/kubeletstatsreceiver): address lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennep committed Nov 12, 2023
1 parent 1d4cf91 commit 4e5f13d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions receiver/kubeletstatsreceiver/internal/kubelet/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ func NewMetadata(labels []MetadataLabel, podsMetadata *v1.PodList,
allContainersCPURequestsDefined := true
allContainersMemoryLimitsDefined := true
allContainersMemoryRequestsDefined := true
for _, container := range pod.Spec.Containers {
// nolint G601
for i := range pod.Spec.Containers {
container := pod.Spec.Containers[i]
containerResource := getContainerResources(&container.Resources)

if allContainersCPULimitsDefined && containerResource.cpuLimit == 0 {
Expand Down

0 comments on commit 4e5f13d

Please sign in to comment.