Skip to content

Commit

Permalink
upgrade to hpa v2 and update to k8s 1.23
Browse files Browse the repository at this point in the history
  • Loading branch information
qmhu committed Jul 19, 2023
1 parent c275702 commit 69b8319
Show file tree
Hide file tree
Showing 19 changed files with 469 additions and 327 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.20

# Get values for cache paths to be used in later steps
- id: go-cache-paths
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.20

# Get values for cache paths to be used in later steps
- id: go-cache-paths
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.20

# Get values for cache paths to be used in later steps
- id: go-cache-paths
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.20

# Get values for cache paths to be used in later steps
- id: go-cache-paths
Expand Down Expand Up @@ -182,7 +182,7 @@ jobs:
uses: actions/setup-go@v3.0.0
with:
# The Go version to download (if necessary) and use. Supports semver spec and ranges.
go-version: 1.17 # optional
go-version: 1.20 # optional

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand Down
231 changes: 125 additions & 106 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,95 +1,95 @@
module github.com/gocrane/crane

go 1.17
go 1.20

require (
github.com/evanphx/json-patch v4.11.0+incompatible
github.com/evanphx/json-patch v4.12.0+incompatible
github.com/fsnotify/fsnotify v1.5.1
github.com/gin-contrib/cors v1.4.0
github.com/gin-contrib/pprof v1.4.0
github.com/gin-gonic/gin v1.9.1
github.com/go-echarts/go-echarts/v2 v2.2.4
github.com/gocrane/api v0.10.0
github.com/google/cadvisor v0.39.2
github.com/gocrane/api v0.10.1-0.20230719062935-80579bb68f6a
github.com/golang/mock v1.5.0
github.com/google/cadvisor v0.43.0
github.com/grafana-tools/sdk v0.0.0-20220919052116-6562121319fc
github.com/jaypipes/ghw v0.9.0
github.com/lithammer/fuzzysearch v1.1.8
github.com/mjibson/go-dsp v0.0.0-20180508042940-11479a337f12
github.com/montanaflynn/stats v0.7.1
github.com/prometheus/client_golang v1.11.0
github.com/prometheus/common v0.26.0
github.com/prometheus/common v0.28.0
github.com/robfig/cron/v3 v3.0.1
github.com/shirou/gopsutil v3.21.10+incompatible
github.com/spf13/cobra v1.2.1
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.7.0
golang.org/x/net v0.0.0-20211216030914-fe4d6282115f
github.com/stretchr/testify v1.8.3
github.com/zsais/go-gin-prometheus v0.1.0
golang.org/x/net v0.10.0
golang.org/x/sync v0.1.0
google.golang.org/grpc v1.43.0
google.golang.org/protobuf v1.27.1
k8s.io/api v0.22.3
k8s.io/apimachinery v0.22.3
k8s.io/apiserver v0.22.3
google.golang.org/protobuf v1.30.0
gopkg.in/gcfg.v1 v1.2.3
k8s.io/api v0.23.3
k8s.io/apimachinery v0.23.3
k8s.io/apiserver v0.23.3
k8s.io/autoscaler/vertical-pod-autoscaler v0.10.0
k8s.io/client-go v0.22.3
k8s.io/component-base v0.22.3
k8s.io/cri-api v0.22.3
k8s.io/klog/v2 v2.9.0
k8s.io/client-go v0.23.3
k8s.io/component-base v0.23.3
k8s.io/cri-api v0.23.3
k8s.io/klog/v2 v2.30.0
k8s.io/kubelet v0.22.3
k8s.io/kubernetes v1.22.3
k8s.io/metrics v0.22.3
k8s.io/utils v0.0.0-20210819203725-bdf08cb9a70a
sigs.k8s.io/controller-runtime v0.10.2
k8s.io/kubernetes v1.23.3
k8s.io/metrics v0.23.3
k8s.io/utils v0.0.0-20211116205334-6203023598ed
sigs.k8s.io/controller-runtime v0.11.0
sigs.k8s.io/custom-metrics-apiserver v1.22.0
sigs.k8s.io/prometheus-adapter v0.9.0
sigs.k8s.io/yaml v1.2.0
)

require (
github.com/StackExchange/wmi v1.2.1 // indirect
github.com/gin-contrib/cors v1.3.1
github.com/gin-contrib/pprof v1.3.0
github.com/gin-gonic/gin v1.7.7
github.com/golang/mock v1.5.0
github.com/grafana-tools/sdk v0.0.0-20211220201350-966b3088eec9
github.com/montanaflynn/stats v0.6.6
github.com/tklauser/go-sysconf v0.3.9 // indirect
github.com/zsais/go-gin-prometheus v0.1.0
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
gopkg.in/gcfg.v1 v1.2.3
k8s.io/kube-openapi v0.0.0-20210817084001-7fbd8d59e5b8 // indirect
sigs.k8s.io/yaml v1.3.0
)

require (
github.com/Microsoft/go-winio v0.5.1 // indirect
github.com/Microsoft/go-winio v0.4.17 // indirect
github.com/NYTimes/gziphandler v1.1.1 // indirect
github.com/PuerkitoBio/purell v1.1.1 // indirect
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect
github.com/StackExchange/wmi v1.2.1 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/bits-and-blooms/bitset v1.2.0 // indirect
github.com/blang/semver v3.5.1+incompatible // indirect
github.com/bytedance/sonic v1.9.1 // indirect
github.com/cespare/xxhash/v2 v2.1.1 // indirect
github.com/checkpoint-restore/go-criu/v5 v5.0.0 // indirect
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
github.com/cilium/ebpf v0.6.2 // indirect
github.com/containerd/console v1.0.2 // indirect
github.com/containerd/containerd v1.4.4 // indirect
github.com/coreos/go-semver v0.3.0 // indirect
github.com/coreos/go-systemd/v22 v22.3.2 // indirect
github.com/cyphar/filepath-securejoin v0.2.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/docker/distribution v2.7.1+incompatible // indirect
github.com/docker/docker v20.10.2+incompatible // indirect
github.com/docker/go-connections v0.4.0 // indirect
github.com/docker/go-units v0.4.0 // indirect
github.com/emicklei/go-restful v2.15.0+incompatible // indirect
github.com/emicklei/go-restful-swagger12 v0.0.0-20201014110547-68ccff494617 // indirect
github.com/euank/go-kmsg-parser v2.0.0+incompatible // indirect
github.com/felixge/httpsnoop v1.0.1 // indirect
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
github.com/ghodss/yaml v1.0.0 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-logr/logr v0.4.0 // indirect
github.com/go-logr/logr v1.2.0 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/jsonreference v0.19.5 // indirect
github.com/go-openapi/swag v0.19.14 // indirect
github.com/go-playground/locales v0.13.0 // indirect
github.com/go-playground/universal-translator v0.17.0 // indirect
github.com/go-playground/validator/v10 v10.4.1 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/go-playground/validator/v10 v10.14.0 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/godbus/dbus/v5 v5.0.4 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-cmp v0.5.6 // indirect
github.com/google/go-cmp v0.5.5 // indirect
github.com/google/gofuzz v1.1.0 // indirect
github.com/google/uuid v1.1.2 // indirect
github.com/googleapis/gnostic v0.5.5 // indirect
Expand All @@ -100,9 +100,12 @@ require (
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/jaypipes/pcidb v1.0.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/karrick/godirwalk v1.16.1 // indirect
github.com/leodido/go-urn v1.2.0 // indirect
github.com/klauspost/cpuid/v2 v2.2.4 // indirect
github.com/leodido/go-urn v1.2.4 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/mindprince/gonvml v0.0.0-20190828220739-9ebdce4bb989 // indirect
github.com/mistifyio/go-zfs v2.1.2-0.20190413222219-f784269be439+incompatible // indirect
Expand All @@ -114,25 +117,27 @@ require (
github.com/mrunalp/fileutils v0.5.0 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.0.1 // indirect
github.com/opencontainers/runc v1.0.2 // indirect
github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417 // indirect
github.com/opencontainers/selinux v1.8.2 // indirect
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/procfs v0.6.0 // indirect
github.com/rainycape/unidecode v0.0.0-20150907023854-cb7f23ec59be // indirect
github.com/seccomp/libseccomp-golang v0.9.1 // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
github.com/stretchr/objx v0.2.0 // indirect
github.com/stretchr/objx v0.5.0 // indirect
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635 // indirect
github.com/tklauser/numcpus v0.3.0 // indirect
github.com/ugorji/go/codec v1.1.7 // indirect
github.com/tklauser/go-sysconf v0.3.11 // indirect
github.com/tklauser/numcpus v0.6.0 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.11 // indirect
github.com/vishvananda/netlink v1.1.0 // indirect
github.com/vishvananda/netns v0.0.0-20200728191858-db3c7e526aae // indirect
go.etcd.io/etcd/api/v3 v3.5.1 // indirect
go.etcd.io/etcd/client/pkg/v3 v3.5.1 // indirect
go.etcd.io/etcd/api/v3 v3.5.0 // indirect
go.etcd.io/etcd/client/pkg/v3 v3.5.0 // indirect
go.etcd.io/etcd/client/v3 v3.5.0 // indirect
go.opentelemetry.io/contrib v0.20.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.20.0 // indirect
Expand All @@ -147,71 +152,85 @@ require (
go.opentelemetry.io/proto/otlp v0.7.0 // indirect
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.19.0 // indirect
golang.org/x/text v0.3.7 // indirect
go.uber.org/zap v1.19.1 // indirect
golang.org/x/arch v0.3.0 // indirect
golang.org/x/crypto v0.9.0 // indirect
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f // indirect
golang.org/x/sys v0.8.0 // indirect
golang.org/x/term v0.8.0 // indirect
golang.org/x/text v0.9.0 // indirect
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
howett.net/plist v1.0.0 // indirect
k8s.io/apiextensions-apiserver v0.22.2 // indirect
k8s.io/cloud-provider v0.22.3 // indirect
k8s.io/component-helpers v0.22.3 // indirect
k8s.io/apiextensions-apiserver v0.23.0 // indirect
k8s.io/cloud-provider v0.23.3 // indirect
k8s.io/component-helpers v0.23.3 // indirect
k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65 // indirect
k8s.io/kube-scheduler v0.0.0 // indirect
k8s.io/mount-utils v0.22.3 // indirect
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.22 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.1.2 // indirect
k8s.io/mount-utils v0.23.3 // indirect
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.27 // indirect
sigs.k8s.io/json v0.0.0-20211020170558-c049b76a60c6 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
)

require (
cloud.google.com/go v0.84.0 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/fsnotify/fsnotify v1.5.1
github.com/json-iterator/go v1.1.12 // indirect
github.com/lithammer/fuzzysearch v1.1.5
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/robfig/cron/v3 v3.0.1
go.etcd.io/etcd/client/v2 v2.305.1 // indirect
golang.org/x/crypto v0.0.0-20220112180741-5e0467b6c7ce // indirect
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8 // indirect
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
golang.org/x/tools v0.1.8 // indirect
google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa // indirect
)
replace k8s.io/api => k8s.io/api v0.23.3

replace (
github.com/grafana-tools/sdk => github.com/csmarchbanks/sdk v0.0.0-20220120205302-870d00a83f4e
golang.org/x/net => github.com/golang/net v0.0.0-20210825183410-e898025ed96a
k8s.io/api => k8s.io/api v0.22.3
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.22.3
k8s.io/apimachinery => k8s.io/apimachinery v0.22.3
k8s.io/apiserver => k8s.io/apiserver v0.22.3
k8s.io/cli-runtime => k8s.io/cli-runtime v0.22.3
k8s.io/client-go => k8s.io/client-go v0.22.3
k8s.io/cloud-provider => k8s.io/cloud-provider v0.22.3
k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.22.3
k8s.io/code-generator => k8s.io/code-generator v0.22.3
k8s.io/component-base => k8s.io/component-base v0.22.3
k8s.io/component-helpers => k8s.io/component-helpers v0.22.3
k8s.io/controller-manager => k8s.io/controller-manager v0.22.3
k8s.io/cri-api => k8s.io/cri-api v0.22.3
k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.22.3
k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.22.3
k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.22.3
k8s.io/kube-proxy => k8s.io/kube-proxy v0.22.3
k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.22.3
k8s.io/kubectl => k8s.io/kubectl v0.22.3
k8s.io/kubelet => k8s.io/kubelet v0.22.3
k8s.io/kubernetes => k8s.io/kubernetes v1.22.3
k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.22.3
k8s.io/metrics => k8s.io/metrics v0.22.3
k8s.io/mount-utils => k8s.io/mount-utils v0.22.3
k8s.io/pod-security-admission => k8s.io/pod-security-admission v0.22.3
k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.22.3
)
replace k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.23.3

replace k8s.io/apimachinery => k8s.io/apimachinery v0.23.11-rc.0

replace k8s.io/apiserver => k8s.io/apiserver v0.23.3

replace k8s.io/cli-runtime => k8s.io/cli-runtime v0.23.3

replace k8s.io/client-go => k8s.io/client-go v0.23.3

replace k8s.io/cloud-provider => k8s.io/cloud-provider v0.23.3

replace k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.23.3

replace k8s.io/code-generator => k8s.io/code-generator v0.23.6-rc.0

replace k8s.io/component-base => k8s.io/component-base v0.23.3

replace k8s.io/component-helpers => k8s.io/component-helpers v0.23.3

replace k8s.io/controller-manager => k8s.io/controller-manager v0.23.3

replace k8s.io/cri-api => k8s.io/cri-api v0.23.4-rc.0

replace k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.23.3

replace k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.23.3

replace k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.23.3

replace k8s.io/kube-proxy => k8s.io/kube-proxy v0.23.3

replace k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.23.3

replace k8s.io/kubectl => k8s.io/kubectl v0.23.3

replace k8s.io/kubelet => k8s.io/kubelet v0.23.3

replace k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.23.3

replace k8s.io/metrics => k8s.io/metrics v0.23.3

replace k8s.io/mount-utils => k8s.io/mount-utils v0.23.14-rc.0

replace k8s.io/pod-security-admission => k8s.io/pod-security-admission v0.23.3

replace k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.23.3

replace k8s.io/sample-cli-plugin => k8s.io/sample-cli-plugin v0.23.3

replace k8s.io/sample-controller => k8s.io/sample-controller v0.23.3
Loading

0 comments on commit 69b8319

Please sign in to comment.