-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Refactor the recommender to allow for integration tests #8985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
adrianmoisey
wants to merge
5
commits into
kubernetes:master
Choose a base branch
from
adrianmoisey:adrian-integration-tests
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,921
−364
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
288990b
Refactor updater's flags
adrianmoisey b02f555
Move recommender start into it's own module
adrianmoisey f8a318c
Add some integration tests
adrianmoisey 073d75c
Wire up context, add stop channels, etc
adrianmoisey f97b368
Lint
adrianmoisey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,203 @@ | ||
| module k8s.io/autoscaler/vertical-pod-autoscaler/integration | ||
|
|
||
| go 1.25.0 | ||
|
|
||
| toolchain go1.25.3 | ||
|
|
||
| exclude ( | ||
| k8s.io/client-go v1.4.0 | ||
| k8s.io/client-go v1.5.0 | ||
| k8s.io/client-go v1.5.1 | ||
| k8s.io/client-go v1.5.2 | ||
| ) | ||
|
|
||
| replace ( | ||
| k8s.io/api => k8s.io/api v0.35.0 | ||
| k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.35.0 | ||
| k8s.io/apimachinery => k8s.io/apimachinery v0.35.0 | ||
| k8s.io/apiserver => k8s.io/apiserver v0.35.0 | ||
| k8s.io/autoscaler => ../../ | ||
| k8s.io/autoscaler/vertical-pod-autoscaler => ../ | ||
| k8s.io/autoscaler/vertical-pod-autoscaler/e2e => ../e2e | ||
| k8s.io/cli-runtime => k8s.io/cli-runtime v0.35.0 | ||
| k8s.io/client-go => k8s.io/client-go v0.35.0 | ||
| k8s.io/cloud-provider => k8s.io/cloud-provider v0.35.0 | ||
| k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.35.0 | ||
| k8s.io/code-generator => k8s.io/code-generator v0.35.0 | ||
| k8s.io/component-base => k8s.io/component-base v0.35.0 | ||
| k8s.io/component-helpers => k8s.io/component-helpers v0.35.0 | ||
| k8s.io/controller-manager => k8s.io/controller-manager v0.35.0 | ||
| k8s.io/cri-api => k8s.io/cri-api v0.35.0 | ||
| k8s.io/cri-client => k8s.io/cri-client v0.35.0 | ||
| k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.35.0 | ||
| k8s.io/dynamic-resource-allocation => k8s.io/dynamic-resource-allocation v0.35.0 | ||
| k8s.io/endpointslice => k8s.io/endpointslice v0.35.0 | ||
| k8s.io/externaljwt => k8s.io/externaljwt v0.35.0 | ||
| k8s.io/kms => k8s.io/kms v0.35.0 | ||
| k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.35.0 | ||
| k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.35.0 | ||
| k8s.io/kube-proxy => k8s.io/kube-proxy v0.35.0 | ||
| k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.35.0 | ||
| k8s.io/kubectl => k8s.io/kubectl v0.35.0 | ||
| k8s.io/kubelet => k8s.io/kubelet v0.35.0 | ||
| k8s.io/metrics => k8s.io/metrics v0.35.0 | ||
| k8s.io/mount-utils => k8s.io/mount-utils v0.35.0 | ||
| k8s.io/pod-security-admission => k8s.io/pod-security-admission v0.35.0 | ||
| k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.35.0 | ||
| k8s.io/sample-cli-plugin => k8s.io/sample-cli-plugin v0.35.0 | ||
| k8s.io/sample-controller => k8s.io/sample-controller v0.35.0 | ||
| ) | ||
|
|
||
| require ( | ||
| k8s.io/api v0.35.0 | ||
| k8s.io/apiextensions-apiserver v0.35.0 | ||
| k8s.io/apimachinery v0.35.0 | ||
| k8s.io/autoscaler/vertical-pod-autoscaler v1.5.1 | ||
| k8s.io/autoscaler/vertical-pod-autoscaler/e2e v0.0.0-00010101000000-000000000000 | ||
| k8s.io/client-go v0.35.0 | ||
| k8s.io/kubernetes v1.35.0 | ||
| ) | ||
|
|
||
| require ( | ||
| cel.dev/expr v0.25.1 // indirect | ||
| cyphar.com/go-pathrs v0.2.2 // indirect | ||
| github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect | ||
| github.com/Masterminds/semver/v3 v3.4.0 // indirect | ||
| github.com/NYTimes/gziphandler v1.1.1 // indirect | ||
| github.com/antlr4-go/antlr/v4 v4.13.1 // indirect | ||
| github.com/beorn7/perks v1.0.1 // indirect | ||
| github.com/blang/semver/v4 v4.0.0 // indirect | ||
| github.com/cenkalti/backoff/v5 v5.0.3 // indirect | ||
| github.com/cespare/xxhash/v2 v2.3.0 // indirect | ||
| github.com/coreos/go-oidc v2.3.0+incompatible // indirect | ||
| github.com/coreos/go-semver v0.3.1 // indirect | ||
| github.com/coreos/go-systemd/v22 v22.6.0 // indirect | ||
| github.com/cyphar/filepath-securejoin v0.6.1 // indirect | ||
| github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect | ||
| github.com/distribution/reference v0.6.0 // indirect | ||
| github.com/emicklei/go-restful/v3 v3.13.0 // indirect | ||
| github.com/felixge/httpsnoop v1.0.4 // indirect | ||
| github.com/fsnotify/fsnotify v1.9.0 // indirect | ||
| github.com/fxamacker/cbor/v2 v2.9.0 // indirect | ||
| github.com/go-logr/logr v1.4.3 // indirect | ||
| github.com/go-logr/stdr v1.2.2 // indirect | ||
| github.com/go-openapi/jsonpointer v0.22.4 // indirect | ||
| github.com/go-openapi/jsonreference v0.21.4 // indirect | ||
| github.com/go-openapi/swag v0.25.4 // indirect | ||
| github.com/go-openapi/swag/cmdutils v0.25.4 // indirect | ||
| github.com/go-openapi/swag/conv v0.25.4 // indirect | ||
| github.com/go-openapi/swag/fileutils v0.25.4 // indirect | ||
| github.com/go-openapi/swag/jsonname v0.25.4 // indirect | ||
| github.com/go-openapi/swag/jsonutils v0.25.4 // indirect | ||
| github.com/go-openapi/swag/loading v0.25.4 // indirect | ||
| github.com/go-openapi/swag/mangling v0.25.4 // indirect | ||
| github.com/go-openapi/swag/netutils v0.25.4 // indirect | ||
| github.com/go-openapi/swag/stringutils v0.25.4 // indirect | ||
| github.com/go-openapi/swag/typeutils v0.25.4 // indirect | ||
| github.com/go-openapi/swag/yamlutils v0.25.4 // indirect | ||
| github.com/go-task/slim-sprig/v3 v3.0.0 // indirect | ||
| github.com/gogo/protobuf v1.3.2 // indirect | ||
| github.com/golang/protobuf v1.5.4 // indirect | ||
| github.com/google/btree v1.1.3 // indirect | ||
| github.com/google/cel-go v0.26.1 // indirect | ||
| github.com/google/gnostic-models v0.7.1 // indirect | ||
| github.com/google/go-cmp v0.7.0 // indirect | ||
| github.com/google/pprof v0.0.0-20251213031049-b05bdaca462f // indirect | ||
| github.com/google/uuid v1.6.0 // indirect | ||
| github.com/gorilla/websocket v1.5.4-0.20250319132907-e064f32e3674 // indirect | ||
| github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect | ||
| github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.3 // indirect | ||
| github.com/inconshreveable/mousetrap v1.1.0 // indirect | ||
| github.com/json-iterator/go v1.1.12 // indirect | ||
| github.com/kylelemons/godebug v1.1.0 // indirect | ||
| github.com/moby/spdystream v0.5.0 // indirect | ||
| github.com/moby/sys/mountinfo v0.7.2 // indirect | ||
| github.com/moby/term v0.5.0 // indirect | ||
| github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect | ||
| github.com/modern-go/reflect2 v1.0.3-0.20250322232337-35a7c28c31ee // indirect | ||
| github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect | ||
| github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect | ||
| github.com/onsi/ginkgo/v2 v2.27.3 // indirect | ||
| github.com/onsi/gomega v1.38.3 // indirect | ||
| github.com/opencontainers/go-digest v1.0.0 // indirect | ||
| github.com/opencontainers/selinux v1.13.1 // indirect | ||
| github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect | ||
| github.com/pquerna/cachecontrol v0.1.0 // indirect | ||
| github.com/prometheus/client_golang v1.23.2 // indirect | ||
| github.com/prometheus/client_model v0.6.2 // indirect | ||
| github.com/prometheus/common v0.67.4 // indirect | ||
| github.com/prometheus/procfs v0.19.2 // indirect | ||
| github.com/robfig/cron/v3 v3.0.1 // indirect | ||
| github.com/spf13/cobra v1.10.2 // indirect | ||
| github.com/spf13/pflag v1.0.10 // indirect | ||
| github.com/stoewer/go-strcase v1.3.1 // indirect | ||
| github.com/stretchr/objx v0.5.3 // indirect | ||
| github.com/stretchr/testify v1.11.1 // indirect | ||
| github.com/x448/float16 v0.8.4 // indirect | ||
| go.etcd.io/etcd/api/v3 v3.6.7 // indirect | ||
| go.etcd.io/etcd/client/pkg/v3 v3.6.7 // indirect | ||
| go.etcd.io/etcd/client/v3 v3.6.7 // indirect | ||
| go.opentelemetry.io/auto/sdk v1.2.1 // indirect | ||
| go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.64.0 // indirect | ||
| go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.64.0 // indirect | ||
| go.opentelemetry.io/otel v1.39.0 // indirect | ||
| go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.39.0 // indirect | ||
| go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.39.0 // indirect | ||
| go.opentelemetry.io/otel/metric v1.39.0 // indirect | ||
| go.opentelemetry.io/otel/sdk v1.39.0 // indirect | ||
| go.opentelemetry.io/otel/trace v1.39.0 // indirect | ||
| go.opentelemetry.io/proto/otlp v1.9.0 // indirect | ||
| go.uber.org/goleak v1.3.0 // indirect | ||
| go.uber.org/multierr v1.11.0 // indirect | ||
| go.uber.org/zap v1.27.1 // indirect | ||
| go.yaml.in/yaml/v2 v2.4.3 // indirect | ||
| go.yaml.in/yaml/v3 v3.0.4 // indirect | ||
| golang.org/x/crypto v0.46.0 // indirect | ||
| golang.org/x/exp v0.0.0-20251209150349-8475f28825e9 // indirect | ||
| golang.org/x/mod v0.31.0 // indirect | ||
| golang.org/x/net v0.48.0 // indirect | ||
| golang.org/x/oauth2 v0.34.0 // indirect | ||
| golang.org/x/sync v0.19.0 // indirect | ||
| golang.org/x/sys v0.39.0 // indirect | ||
| golang.org/x/term v0.38.0 // indirect | ||
| golang.org/x/text v0.32.0 // indirect | ||
| golang.org/x/time v0.14.0 // indirect | ||
| golang.org/x/tools v0.40.0 // indirect | ||
| google.golang.org/genproto/googleapis/api v0.0.0-20251213004720-97cd9d5aeac2 // indirect | ||
| google.golang.org/genproto/googleapis/rpc v0.0.0-20251213004720-97cd9d5aeac2 // indirect | ||
| google.golang.org/grpc v1.77.0 // indirect | ||
| google.golang.org/protobuf v1.36.11 // indirect | ||
| gopkg.in/evanphx/json-patch.v4 v4.13.0 // indirect | ||
| gopkg.in/go-jose/go-jose.v2 v2.6.3 // indirect | ||
| gopkg.in/inf.v0 v0.9.1 // indirect | ||
| gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect | ||
| gopkg.in/yaml.v3 v3.0.1 // indirect | ||
| k8s.io/apiserver v0.35.0 // indirect | ||
| k8s.io/cloud-provider v0.35.0 // indirect | ||
| k8s.io/cluster-bootstrap v0.0.0 // indirect | ||
| k8s.io/component-base v0.35.0 // indirect | ||
| k8s.io/component-helpers v0.35.0 // indirect | ||
| k8s.io/controller-manager v0.35.0 // indirect | ||
| k8s.io/csi-translation-lib v0.35.0 // indirect | ||
| k8s.io/dynamic-resource-allocation v0.35.0 // indirect | ||
| k8s.io/endpointslice v0.0.0 // indirect | ||
| k8s.io/externaljwt v0.0.0 // indirect | ||
| k8s.io/klog/v2 v2.130.1 // indirect | ||
| k8s.io/kms v0.35.0 // indirect | ||
| k8s.io/kube-aggregator v0.0.0 // indirect | ||
| k8s.io/kube-controller-manager v0.0.0 // indirect | ||
| k8s.io/kube-openapi v0.0.0-20251125145642-4e65d59e963e // indirect | ||
| k8s.io/kube-proxy v0.0.0 // indirect | ||
| k8s.io/kube-scheduler v0.35.0 // indirect | ||
| k8s.io/kubectl v0.35.0 // indirect | ||
| k8s.io/kubelet v0.35.0 // indirect | ||
| k8s.io/metrics v0.35.0 // indirect | ||
| k8s.io/mount-utils v0.35.0 // indirect | ||
| k8s.io/pod-security-admission v0.35.0 // indirect | ||
| k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 // indirect | ||
| sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.34.0 // indirect | ||
| sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect | ||
| sigs.k8s.io/randfill v1.0.0 // indirect | ||
| sigs.k8s.io/structured-merge-diff/v6 v6.3.1 // indirect | ||
| sigs.k8s.io/yaml v1.6.0 // indirect | ||
| ) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lint
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I understand, what's the lint?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, exported function should have comment or be unexported