Fix linter errors
This commit is contained in:
parent
cd8b7dc4e2
commit
27e1d0f17a
|
@ -30,9 +30,17 @@ const (
|
|||
type resourcesSource string
|
||||
|
||||
const (
|
||||
ContainerStatus resourcesSource = "Pod.Status.ContainerStatuses"
|
||||
InitContainerStatus resourcesSource = "Pod.Status.InitContainerStatuses"
|
||||
PodSpecContainer resourcesSource = "Pod.Spec.Containers"
|
||||
// ContainerStatus indicates that resources were fetched from the
|
||||
// containerStatuses pod field.
|
||||
ContainerStatus resourcesSource = "Pod.Status.ContainerStatuses"
|
||||
// InitContainerStatus indicates that resources were fetched from the
|
||||
// initContainerStatuses pod field.
|
||||
InitContainerStatus resourcesSource = "Pod.Status.InitContainerStatuses"
|
||||
// PodSpecContainer indicates that resources were fetched from the
|
||||
// containers field in the pod spec.
|
||||
PodSpecContainer resourcesSource = "Pod.Spec.Containers"
|
||||
// PodSpecInitContainer indicates that resources were fetched from the
|
||||
// initContainers field in the pod spec.
|
||||
PodSpecInitContainer resourcesSource = "Pod.Spec.InitContainers"
|
||||
)
|
||||
|
||||
|
|
|
@ -18,8 +18,9 @@ package resourcehelpers
|
|||
|
||||
import (
|
||||
v1 "k8s.io/api/core/v1"
|
||||
metrics_resources "k8s.io/autoscaler/vertical-pod-autoscaler/pkg/utils/metrics/resources"
|
||||
"k8s.io/klog/v2"
|
||||
|
||||
metrics_resources "k8s.io/autoscaler/vertical-pod-autoscaler/pkg/utils/metrics/resources"
|
||||
)
|
||||
|
||||
// ContainerRequestsAndLimits returns a copy of the actual resource requests and
|
||||
|
|
Loading…
Reference in New Issue