Skip to content

Commit

Permalink
upgrade Kubernetes version to v0.28.5 (#329)
Browse files Browse the repository at this point in the history
* upgrade Kubernetes version to v0.28.5

* extend timeout for linter

* upgrade golangci-lint

* install golangci-lint in another way

* change the installation order
  • Loading branch information
sanposhiho authored Jan 23, 2024
1 parent 4b0dd78 commit c8491d1
Show file tree
Hide file tree
Showing 24 changed files with 446 additions and 2,457 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.PHONY: tools
tools:
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2
cd ./tools; \
cat tools.go | grep "_" | awk -F'"' '{print $$2}' | xargs -tI % go install %

Expand Down
2 changes: 1 addition & 1 deletion simulator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ generate:

.PHONY: lint
lint:
golangci-lint run --timeout 30m ./...
golangci-lint run --timeout 90m ./...

.PHONY: format
format:
Expand Down
1 change: 1 addition & 0 deletions simulator/controller/deployment_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ var _ initFunc = startDeploymentController

func startDeploymentController(ctx context.Context, controllerCtx controllerContext) error {
dc, err := deployment.NewDeploymentController(
ctx,
controllerCtx.InformerFactory.Apps().V1().Deployments(),
controllerCtx.InformerFactory.Apps().V1().ReplicaSets(),
controllerCtx.InformerFactory.Core().V1().Pods(),
Expand Down
2 changes: 1 addition & 1 deletion simulator/controller/pvcontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func startPersistentVolumeController(ctx context.Context, controllerCtx controll
NodeInformer: controllerCtx.InformerFactory.Core().V1().Nodes(),
EnableDynamicProvisioning: true,
}
volumeController, err := persistentvolume.NewController(params)
volumeController, err := persistentvolume.NewController(ctx, params)
if err != nil {
return xerrors.Errorf("construct persistentvolume controller: %w", err)
}
Expand Down
2 changes: 2 additions & 0 deletions simulator/controller/replicaset_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ package controller
import (
"context"

"k8s.io/klog/v2"
"k8s.io/kubernetes/pkg/controller/replicaset"
)

var _ initFunc = startReplicaSetController

func startReplicaSetController(ctx context.Context, controllerCtx controllerContext) error {
go replicaset.NewReplicaSetController(
klog.FromContext(ctx),
controllerCtx.InformerFactory.Apps().V1().ReplicaSets(),
controllerCtx.InformerFactory.Core().V1().Pods(),
controllerCtx.ClientBuilder.ClientOrDie("replicaset-controller"),
Expand Down
228 changes: 116 additions & 112 deletions simulator/go.mod
Original file line number Diff line number Diff line change
@@ -1,124 +1,125 @@
module sigs.k8s.io/kube-scheduler-simulator/simulator

go 1.17
go 1.21

replace (
google.golang.org/grpc => google.golang.org/grpc v1.38.0
k8s.io/api => k8s.io/api v0.26.2
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.26.2
k8s.io/apimachinery => k8s.io/apimachinery v0.26.2
k8s.io/apiserver => k8s.io/apiserver v0.26.2
k8s.io/cli-runtime => k8s.io/cli-runtime v0.26.2
k8s.io/client-go => k8s.io/client-go v0.26.2
k8s.io/cloud-provider => k8s.io/cloud-provider v0.26.2
k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.26.2
k8s.io/code-generator => k8s.io/code-generator v0.26.2
k8s.io/component-base => k8s.io/component-base v0.26.2
k8s.io/component-helpers => k8s.io/component-helpers v0.26.2
k8s.io/controller-manager => k8s.io/controller-manager v0.26.2
k8s.io/cri-api => k8s.io/cri-api v0.26.2
k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.26.2
k8s.io/dynamic-resource-allocation => k8s.io/dynamic-resource-allocation v0.26.2
k8s.io/kms => k8s.io/kms v0.26.1
k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.26.2
k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.26.2
k8s.io/kube-proxy => k8s.io/kube-proxy v0.26.2
k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.26.2
k8s.io/kubectl => k8s.io/kubectl v0.26.2
k8s.io/kubelet => k8s.io/kubelet v0.26.2
k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.26.2
k8s.io/metrics => k8s.io/metrics v0.26.2
k8s.io/mount-utils => k8s.io/mount-utils v0.26.2
k8s.io/pod-security-admission => k8s.io/pod-security-admission v0.26.2
k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.26.2
k8s.io/api => k8s.io/api v0.28.5
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.28.5
k8s.io/apimachinery => k8s.io/apimachinery v0.28.5
k8s.io/apiserver => k8s.io/apiserver v0.28.5
k8s.io/cli-runtime => k8s.io/cli-runtime v0.28.5
k8s.io/client-go => k8s.io/client-go v0.28.5
k8s.io/cloud-provider => k8s.io/cloud-provider v0.28.5
k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.28.5
k8s.io/code-generator => k8s.io/code-generator v0.28.5
k8s.io/component-base => k8s.io/component-base v0.28.5
k8s.io/component-helpers => k8s.io/component-helpers v0.28.5
k8s.io/controller-manager => k8s.io/controller-manager v0.28.5
k8s.io/cri-api => k8s.io/cri-api v0.28.5
k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.28.5
k8s.io/dynamic-resource-allocation => k8s.io/dynamic-resource-allocation v0.28.5
k8s.io/endpointslice => k8s.io/endpointslice v0.28.5
k8s.io/kms => k8s.io/kms v0.28.5
k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.28.5
k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.28.5
k8s.io/kube-proxy => k8s.io/kube-proxy v0.28.5
k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.28.5
k8s.io/kubectl => k8s.io/kubectl v0.28.5
k8s.io/kubelet => k8s.io/kubelet v0.28.5
k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.28.5
k8s.io/metrics => k8s.io/metrics v0.28.5
k8s.io/mount-utils => k8s.io/mount-utils v0.28.5
k8s.io/pod-security-admission => k8s.io/pod-security-admission v0.28.5
k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.28.5
)

require (
github.com/golang/mock v1.6.0
github.com/google/go-cmp v0.5.9
github.com/labstack/echo/v4 v4.5.0
github.com/labstack/gommon v0.3.0
github.com/spf13/cobra v1.6.0
github.com/stretchr/testify v1.8.0
go.etcd.io/etcd/client/v3 v3.5.5
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
k8s.io/api v0.26.2
k8s.io/apimachinery v0.26.2
k8s.io/apiserver v0.26.2
k8s.io/client-go v0.26.2
k8s.io/code-generator v0.26.2
k8s.io/component-base v0.26.2
k8s.io/controller-manager v0.26.2
k8s.io/klog/v2 v2.80.1
github.com/spf13/cobra v1.7.0
github.com/stretchr/testify v1.8.2
go.etcd.io/etcd/client/v3 v3.5.9
golang.org/x/sync v0.2.0
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2
k8s.io/api v0.28.5
k8s.io/apimachinery v0.28.5
k8s.io/apiserver v0.28.5
k8s.io/client-go v0.28.5
k8s.io/code-generator v0.28.5
k8s.io/component-base v0.28.5
k8s.io/controller-manager v0.28.5
k8s.io/klog/v2 v2.100.1
k8s.io/kube-aggregator v0.0.0
k8s.io/kube-scheduler v0.26.2
k8s.io/kubernetes v1.26.2
k8s.io/utils v0.0.0-20221107191617-1a15be271d1d
k8s.io/kube-scheduler v0.28.5
k8s.io/kubernetes v1.28.5
k8s.io/utils v0.0.0-20230406110748-d93618cff8a2
)

require (
cloud.google.com/go v0.97.0 // indirect
github.com/Azure/azure-sdk-for-go v55.0.0+incompatible // indirect
cloud.google.com/go/compute v1.19.1 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
github.com/Azure/azure-sdk-for-go v68.0.0+incompatible // indirect
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
github.com/Azure/go-autorest/autorest v0.11.27 // indirect
github.com/Azure/go-autorest/autorest/adal v0.9.20 // indirect
github.com/Azure/go-autorest/autorest v0.11.29 // indirect
github.com/Azure/go-autorest/autorest/adal v0.9.23 // indirect
github.com/Azure/go-autorest/autorest/date v0.3.0 // indirect
github.com/Azure/go-autorest/autorest/mocks v0.4.2 // indirect
github.com/Azure/go-autorest/autorest/to v0.4.0 // indirect
github.com/Azure/go-autorest/autorest/validation v0.1.0 // indirect
github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect
github.com/Azure/go-autorest/logger v0.2.1 // indirect
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
github.com/GoogleCloudPlatform/k8s-cloud-provider v1.18.1-0.20220218231025-f11817397a1b // indirect
github.com/NYTimes/gziphandler v1.1.1 // indirect
github.com/antlr/antlr4/runtime/Go/antlr v1.4.10 // indirect
github.com/antlr/antlr4/runtime/Go/antlr/v4 v4.0.0-20230305170008-8188dc5388df // indirect
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a // indirect
github.com/aws/aws-sdk-go v1.44.116 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/blang/semver/v4 v4.0.0 // indirect
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/coreos/go-oidc v2.1.0+incompatible // indirect
github.com/coreos/go-semver v0.3.0 // indirect
github.com/coreos/go-systemd/v22 v22.3.2 // indirect
github.com/cenkalti/backoff/v4 v4.2.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/coreos/go-oidc v2.2.1+incompatible // indirect
github.com/coreos/go-semver v0.3.1 // indirect
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/docker/distribution v2.8.1+incompatible // indirect
github.com/docker/distribution v2.8.2+incompatible // indirect
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
github.com/felixge/httpsnoop v1.0.3 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/go-logr/logr v1.2.3 // indirect
github.com/go-logr/logr v1.2.4 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-logr/zapr v1.2.3 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/jsonreference v0.20.0 // indirect
github.com/go-openapi/swag v0.19.14 // indirect
github.com/gofrs/uuid v4.0.0+incompatible // indirect
github.com/go-openapi/jsonpointer v0.19.6 // indirect
github.com/go-openapi/jsonreference v0.20.2 // indirect
github.com/go-openapi/swag v0.22.3 // indirect
github.com/gofrs/uuid v4.4.0+incompatible // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
github.com/golang-jwt/jwt/v4 v4.2.0 // indirect
github.com/golang-jwt/jwt/v4 v4.5.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/cel-go v0.12.6 // indirect
github.com/google/gnostic v0.5.7-v3refs // indirect
github.com/google/gofuzz v1.1.0 // indirect
github.com/google/uuid v1.1.2 // indirect
github.com/googleapis/gax-go/v2 v2.1.1 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/cel-go v0.16.1 // indirect
github.com/google/gnostic-models v0.6.8 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect
github.com/googleapis/gax-go/v2 v2.7.1 // indirect
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.7.0 // indirect
github.com/imdario/mergo v0.3.6 // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/mailru/easyjson v0.7.6 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.8 // indirect
github.com/mattn/go-isatty v0.0.12 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2 // indirect
github.com/mitchellh/mapstructure v1.4.1 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/moby/spdystream v0.2.0 // indirect
github.com/moby/sys/mountinfo v0.6.2 // indirect
github.com/moby/term v0.0.0-20220808134915-39b0c02b01ae // indirect
github.com/moby/term v0.0.0-20221205130635-1aeaba878587 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
Expand All @@ -128,23 +129,22 @@ require (
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/pquerna/cachecontrol v0.1.0 // indirect
github.com/prometheus/client_golang v1.14.0 // indirect
github.com/prometheus/client_model v0.3.0 // indirect
github.com/prometheus/common v0.37.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
github.com/prometheus/client_golang v1.16.0 // indirect
github.com/prometheus/client_model v0.4.0 // indirect
github.com/prometheus/common v0.44.0 // indirect
github.com/prometheus/procfs v0.10.1 // indirect
github.com/robfig/cron/v3 v3.0.1 // indirect
github.com/rubiojr/go-vhd v0.0.0-20200706105327-02e210299021 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stoewer/go-strcase v1.2.0 // indirect
github.com/stretchr/objx v0.4.0 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.1 // indirect
github.com/vmware/govmomi v0.20.3 // indirect
go.etcd.io/etcd/api/v3 v3.5.5 // indirect
go.etcd.io/etcd/client/pkg/v3 v3.5.5 // indirect
go.opencensus.io v0.23.0 // indirect
github.com/vmware/govmomi v0.30.6 // indirect
go.etcd.io/etcd/api/v3 v3.5.9 // indirect
go.etcd.io/etcd/client/pkg/v3 v3.5.9 // indirect
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.35.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.35.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.35.1 // indirect
go.opentelemetry.io/otel v1.10.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/internal/retry v1.10.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.10.0 // indirect
Expand All @@ -153,46 +153,50 @@ require (
go.opentelemetry.io/otel/sdk v1.10.0 // indirect
go.opentelemetry.io/otel/trace v1.10.0 // indirect
go.opentelemetry.io/proto/otlp v0.19.0 // indirect
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.19.0 // indirect
golang.org/x/crypto v0.1.0 // indirect
golang.org/x/mod v0.6.0 // indirect
golang.org/x/net v0.7.0 // indirect
golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/term v0.5.0 // indirect
golang.org/x/text v0.7.0 // indirect
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect
golang.org/x/tools v0.2.0 // indirect
google.golang.org/api v0.60.0 // indirect
golang.org/x/crypto v0.14.0 // indirect
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect
golang.org/x/mod v0.10.0 // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/oauth2 v0.8.0 // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/term v0.13.0 // indirect
golang.org/x/text v0.13.0 // indirect
golang.org/x/time v0.3.0 // indirect
golang.org/x/tools v0.8.0 // indirect
google.golang.org/api v0.114.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21 // indirect
google.golang.org/grpc v1.49.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/gcfg.v1 v1.2.0 // indirect
google.golang.org/genproto v0.0.0-20230526161137-0005af68ea54 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230525234035-dd9d682886f9 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234030-28d5490b6b19 // indirect
google.golang.org/grpc v1.56.3 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/gcfg.v1 v1.2.3 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
gopkg.in/square/go-jose.v2 v2.2.2 // indirect
gopkg.in/warnings.v0 v0.1.1 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/apiextensions-apiserver v0.0.0 // indirect
k8s.io/cloud-provider v0.26.2 // indirect
k8s.io/cloud-provider v0.28.5 // indirect
k8s.io/cluster-bootstrap v0.0.0 // indirect
k8s.io/component-helpers v0.26.2 // indirect
k8s.io/csi-translation-lib v0.26.2 // indirect
k8s.io/component-helpers v0.28.5 // indirect
k8s.io/cri-api v0.28.5 // indirect
k8s.io/csi-translation-lib v0.0.0 // indirect
k8s.io/dynamic-resource-allocation v0.0.0 // indirect
k8s.io/gengo v0.0.0-20220902162205-c0856e24416d // indirect
k8s.io/kms v0.26.2 // indirect
k8s.io/kms v0.28.5 // indirect
k8s.io/kube-controller-manager v0.0.0 // indirect
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 // indirect
k8s.io/kubelet v0.26.2 // indirect
k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect
k8s.io/kubelet v0.28.5 // indirect
k8s.io/legacy-cloud-providers v0.0.0 // indirect
k8s.io/mount-utils v0.0.0 // indirect
k8s.io/pod-security-admission v0.0.0 // indirect
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.35 // indirect
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.1.2 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
)
Loading

0 comments on commit c8491d1

Please sign in to comment.