File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
vertical-pod-autoscaler/pkg/utils Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,17 @@ const (
30
30
type resourcesSource string
31
31
32
32
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.
36
44
PodSpecInitContainer resourcesSource = "Pod.Spec.InitContainers"
37
45
)
38
46
Original file line number Diff line number Diff line change @@ -18,8 +18,9 @@ package resourcehelpers
18
18
19
19
import (
20
20
v1 "k8s.io/api/core/v1"
21
- metrics_resources "k8s.io/autoscaler/vertical-pod-autoscaler/pkg/utils/metrics/resources"
22
21
"k8s.io/klog/v2"
22
+
23
+ metrics_resources "k8s.io/autoscaler/vertical-pod-autoscaler/pkg/utils/metrics/resources"
23
24
)
24
25
25
26
// ContainerRequestsAndLimits returns a copy of the actual resource requests and
You can’t perform that action at this time.
0 commit comments