Skip to content

Commit 26099a7

Browse files
author
hexi.ghx
committed
update sigs.k8s.io/controller-runtime to v0.12.1, k8s.io/client-go to v0.24.0
1 parent 72fb8d4 commit 26099a7

File tree

2,212 files changed

+241984
-60082
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,212 files changed

+241984
-60082
lines changed

cmd/kubernetes-cronhpa-controller/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
_ "net/http/pprof"
2727
"os"
2828
ctrl "sigs.k8s.io/controller-runtime"
29-
"sigs.k8s.io/controller-runtime/pkg/runtime/signals"
29+
"sigs.k8s.io/controller-runtime/pkg/manager/signals"
3030
)
3131

3232
var (

go.mod

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,34 @@ module github.com/AliyunContainerService/kubernetes-cronhpa-controller
33
go 1.14
44

55
require (
6-
github.com/go-logr/zapr v0.2.0 // indirect; indrect
7-
github.com/googleapis/gnostic v0.5.1 // indirect
6+
github.com/cespare/xxhash/v2 v2.2.0 // indirect
7+
github.com/emicklei/go-restful v2.16.0+incompatible // indirect
8+
github.com/emicklei/go-restful/v3 v3.10.2 // indirect
9+
github.com/evanphx/json-patch v5.6.0+incompatible // indirect
10+
github.com/fsnotify/fsnotify v1.6.0 // indirect
11+
github.com/go-logr/zapr v1.2.3 // indirect
12+
github.com/go-openapi/jsonreference v0.20.2 // indirect
13+
github.com/golang/protobuf v1.5.3 // indirect
14+
github.com/google/gnostic v0.6.9 // indirect
15+
github.com/google/gofuzz v1.2.0 // indirect
16+
github.com/google/uuid v1.3.0 // indirect
817
github.com/gorilla/mux v1.8.0
9-
github.com/prometheus/client_golang v1.7.1
18+
github.com/imdario/mergo v0.3.14 // indirect
19+
github.com/onsi/gomega v1.23.0 // indirect
20+
github.com/prometheus/client_golang v1.14.0
21+
github.com/prometheus/common v0.42.0 // indirect
22+
github.com/prometheus/procfs v0.9.0 // indirect
1023
github.com/ringtail/go-cron v1.0.1-0.20201027122514-cfb21c105f50
1124
github.com/satori/go.uuid v1.2.0
12-
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d // indirect
13-
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6 // indirect
14-
k8s.io/api v0.19.0
15-
k8s.io/apiextensions-apiserver v0.19.0
25+
golang.org/x/oauth2 v0.6.0 // indirect
26+
golang.org/x/time v0.3.0 // indirect
27+
google.golang.org/protobuf v1.29.1 // indirect
28+
k8s.io/api v0.24.0
29+
k8s.io/apiextensions-apiserver v0.24.0
1630
k8s.io/apimachinery v0.24.0
17-
k8s.io/client-go v0.19.0
18-
k8s.io/klog/v2 v2.60.1
19-
sigs.k8s.io/controller-runtime v0.6.2
31+
k8s.io/client-go v0.24.0
32+
k8s.io/klog/v2 v2.90.1
33+
k8s.io/kube-openapi v0.0.0-20230308215209-15aac26d736a // indirect
34+
k8s.io/utils v0.0.0-20230313181309-38a27ef9d749 // indirect
35+
sigs.k8s.io/controller-runtime v0.12.1
2036
)

go.sum

Lines changed: 620 additions & 258 deletions
Large diffs are not rendered by default.

pkg/apis/autoscaling/v1beta1/register.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ package v1beta1
2323

2424
import (
2525
"k8s.io/apimachinery/pkg/runtime/schema"
26-
"sigs.k8s.io/controller-runtime/pkg/runtime/scheme"
26+
"sigs.k8s.io/controller-runtime/pkg/scheme"
2727
)
2828

2929
var (

pkg/controller/cronhorizontalpodautoscaler_controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ type ReconcileCronHorizontalPodAutoscaler struct {
7070
// Automatically generate RBAC rules to allow the Controller to read and write Deployments
7171
// +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch;delete
7272
// +kubebuilder:rbac:groups=autoscaling.alibabacloud.com,resources=cronhorizontalpodautoscalers,verbs=get;list;watch;create;update;patch;delete
73-
func (r *ReconcileCronHorizontalPodAutoscaler) Reconcile(request reconcile.Request) (reconcile.Result, error) {
73+
func (r *ReconcileCronHorizontalPodAutoscaler) Reconcile(context context.Context, request reconcile.Request) (reconcile.Result, error) {
7474
// Fetch the CronHorizontalPodAutoscaler instance
7575
log.Infof("Start to handle cronHPA %s in %s namespace", request.Name, request.Namespace)
7676
instance := &autoscalingv1beta1.CronHorizontalPodAutoscaler{}
77-
err := r.Get(context.TODO(), request.NamespacedName, instance)
77+
err := r.Get(context, request.NamespacedName, instance)
7878
if err != nil {
7979
if errors.IsNotFound(err) {
8080
// Object not found, return. Created objects are automatically garbage collected.
@@ -197,7 +197,7 @@ func (r *ReconcileCronHorizontalPodAutoscaler) Reconcile(request reconcile.Reque
197197
}
198198
// conditions are not changed and no need to update.
199199
if !noNeedUpdateStatus || len(leftConditions) != len(conditions) {
200-
err := r.Update(context.Background(), instance)
200+
err := r.Update(context, instance)
201201
if err != nil {
202202
log.Errorf("Failed to update cron hpa %s in namespace %s status, because of %v", instance.Name, instance.Namespace, err)
203203
}

vendor/github.com/cespare/xxhash/v2/.travis.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

vendor/github.com/cespare/xxhash/v2/README.md

Lines changed: 21 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cespare/xxhash/v2/testall.sh

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cespare/xxhash/v2/xxhash.go

Lines changed: 20 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)