Skip to content

Commit 27e1d0f

Browse files
committed
Fix linter errors
1 parent cd8b7dc commit 27e1d0f

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

vertical-pod-autoscaler/pkg/utils/metrics/resources/resources.go

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,17 @@ const (
3030
type resourcesSource string
3131

3232
const (
33-
ContainerStatus resourcesSource = "Pod.Status.ContainerStatuses"
34-
InitContainerStatus resourcesSource = "Pod.Status.InitContainerStatuses"
35-
PodSpecContainer resourcesSource = "Pod.Spec.Containers"
33+
// ContainerStatus indicates that resources were fetched from the
34+
// containerStatuses pod field.
35+
ContainerStatus resourcesSource = "Pod.Status.ContainerStatuses"
36+
// InitContainerStatus indicates that resources were fetched from the
37+
// initContainerStatuses pod field.
38+
InitContainerStatus resourcesSource = "Pod.Status.InitContainerStatuses"
39+
// PodSpecContainer indicates that resources were fetched from the
40+
// containers field in the pod spec.
41+
PodSpecContainer resourcesSource = "Pod.Spec.Containers"
42+
// PodSpecInitContainer indicates that resources were fetched from the
43+
// initContainers field in the pod spec.
3644
PodSpecInitContainer resourcesSource = "Pod.Spec.InitContainers"
3745
)
3846

vertical-pod-autoscaler/pkg/utils/resources/resourcehelpers.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ package resourcehelpers
1818

1919
import (
2020
v1 "k8s.io/api/core/v1"
21-
metrics_resources "k8s.io/autoscaler/vertical-pod-autoscaler/pkg/utils/metrics/resources"
2221
"k8s.io/klog/v2"
22+
23+
metrics_resources "k8s.io/autoscaler/vertical-pod-autoscaler/pkg/utils/metrics/resources"
2324
)
2425

2526
// ContainerRequestsAndLimits returns a copy of the actual resource requests and

0 commit comments

Comments
 (0)