Skip to content

Commit

Permalink
upgrade to hpa v2
Browse files Browse the repository at this point in the history
  • Loading branch information
qmhu committed Jul 19, 2023
1 parent 31991a1 commit 80579bb
Show file tree
Hide file tree
Showing 30 changed files with 723 additions and 254 deletions.
2 changes: 1 addition & 1 deletion analysis/v1alpha1/types.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package v1alpha1

import (
autoscalingv2 "k8s.io/api/autoscaling/v2beta2"
autoscalingv2 "k8s.io/api/autoscaling/v2"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

Expand Down
4 changes: 2 additions & 2 deletions analysis/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ spec:
- value
type: object
type: array
x-kubernetes-list-type: atomic
selectPolicy:
description: selectPolicy is used to specify which policy
should be used. If not set, the default value MaxPolicySelect
is used.
should be used. If not set, the default value Max is used.
type: string
stabilizationWindowSeconds:
description: 'StabilizationWindowSeconds is the number of
Expand Down Expand Up @@ -163,10 +163,10 @@ spec:
- value
type: object
type: array
x-kubernetes-list-type: atomic
selectPolicy:
description: selectPolicy is used to specify which policy
should be used. If not set, the default value MaxPolicySelect
is used.
should be used. If not set, the default value Max is used.
type: string
stabilizationWindowSeconds:
description: 'StabilizationWindowSeconds is the number of
Expand Down Expand Up @@ -240,14 +240,14 @@ spec:
at once).
properties:
containerResource:
description: container resource refers to a resource metric
(such as those specified in requests and limits) known to
Kubernetes describing a single container in each pod of the
current scale target (e.g. CPU or memory). Such metrics are
built in to Kubernetes, and have special scaling options on
top of those available to normal per-pod metrics using the
"pods" source. This is an alpha feature and can be enabled
by the HPAContainerMetrics feature flag.
description: containerResource refers to a resource metric (such
as those specified in requests and limits) known to Kubernetes
describing a single container in each pod of the current scale
target (e.g. CPU or memory). Such metrics are built in to
Kubernetes, and have special scaling options on top of those
available to normal per-pod metrics using the "pods" source.
This is an alpha feature and can be enabled by the HPAContainerMetrics
feature flag.
properties:
container:
description: container is the name of the container in the
Expand Down Expand Up @@ -410,8 +410,8 @@ spec:
object (for example, hits-per-second on an Ingress object).
properties:
describedObject:
description: CrossVersionObjectReference contains enough
information to let you identify the referred resource.
description: describedObject specifies the descriptions
of a object,such as kind,name apiVersion
properties:
apiVersion:
description: API version of the referent
Expand Down
2 changes: 1 addition & 1 deletion autoscaling/v1alpha1/ehpa_types.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package v1alpha1

import (
autoscalingv2 "k8s.io/api/autoscaling/v2beta2"
autoscalingv2 "k8s.io/api/autoscaling/v2"
_ "k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
_ "k8s.io/metrics/pkg/apis/custom_metrics"
Expand Down
2 changes: 1 addition & 1 deletion autoscaling/v1alpha1/evpa_types.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package v1alpha1

import (
autoscalingv2 "k8s.io/api/autoscaling/v2beta2"
autoscalingv2 "k8s.io/api/autoscaling/v2"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
vpatypes "k8s.io/autoscaler/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1"
Expand Down
8 changes: 4 additions & 4 deletions autoscaling/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ go 1.16
require (
github.com/onsi/ginkgo v1.16.5
github.com/onsi/gomega v1.15.0 // indirect
golang.org/x/sys v0.0.0-20210817190340-bfb29a6856f2 // indirect
google.golang.org/appengine v1.6.7 // indirect
k8s.io/api v0.22.3
k8s.io/apimachinery v0.22.3
k8s.io/api v0.23.3
k8s.io/apimachinery v0.23.3
k8s.io/autoscaler/vertical-pod-autoscaler v0.10.0
k8s.io/client-go v0.22.3
k8s.io/code-generator v0.22.3
k8s.io/kube-openapi v0.0.0-20210421082810-95288971da7e
k8s.io/client-go v0.23.3
k8s.io/code-generator v0.23.3
k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65
k8s.io/metrics v0.22.1

)
Loading

0 comments on commit 80579bb

Please sign in to comment.