Commit Graph

149 Commits

Author SHA1 Message Date
Stephen Kitt
3f36c83c68 Switch to stretchr/testify / mockery for mocks
testify is used throughout the codebase; this switches mocks from
gomock to testify with the help of mockery for code generation.

Handlers and mocks in test/utils/oidc are moved to a new package:
mockery operates package by package, and requires packages to build
correctly; test/utils/oidc/testserver.go relies on the mocks and fails
to build when they are removed. Moving the interface and mocks to a
different package allows mockery to process that package without
having to build testserver.go.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-06-20 19:42:53 +02:00
Stephen Kitt
5300466a5c Use canonical json-patch v4 import
The canonical import for json-patch v4 is
gopkg.in/evanphx/json-patch.v4 (see
https://github.com/evanphx/json-patch/blob/master/README.md#get-it for
reference).

Using the v4-specific path should also reduce the risk of unwanted v5
upgrade attempts, because they won't be offered as automated upgrades
by dependency upgrade management tools, and they won't happen through
indirect dependencies (see
https://github.com/kubernetes/kubernetes/pull/120327 for context).

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-05-28 10:48:22 +02:00
Stephen Kitt
33c6f6bc65 Update kubectl kustomize to kyaml/v0.17.1, cmd/config/v0.14.1, api/v0.17.2, kustomize/v5.4.2
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-05-28 10:48:12 +02:00
Patrick Ohly
37e2dd6857 dependencies: ginkgo v2.19.0, gomega v1.33.1
Ginkgo v2.18.0 allows tweaking the output so that
it's easier to follow while a job runs in
Prow (https://github.com/onsi/ginkgo/issues/1347). Using this in
hack/ginkgo-e2e.sh will follow in a separate commit.

Gomega gets bumped to the latest release to keep it up-to-date.

Ginkgo v1.19.0 adds support for --label-filter with labels that represent
sets (like our Feature:<Foo>).
2024-05-27 15:25:50 +02:00
Davanum Srinivas
04c40ac961 Update to latest golang.org/x/oauth2 v0.20.0
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-05-08 13:06:12 -04:00
Kubernetes Prow Robot
f281a02d23 Merge pull request #124514 from brianpursley/fix-sort
Change non-quantity strings to sort alphanumerically, instead of using "Natural Sort"
2024-05-07 11:46:30 -07:00
Davanum Srinivas
bf268f02a3 Remove gcp in-tree cloud provider and credential provider
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-05-01 09:03:53 -04:00
Stefan Bueringer
04cc45b4ad Bump sigs.k8s.io/yaml to v1.4.0 2024-04-26 15:42:44 +02:00
Brian Pursley
322aa9a649 Change non-quantity strings to sort alphanumerically, instead of using "Natural Sort", which is confusing for users. 2024-04-24 15:10:16 -04:00
Jiahui Feng
350fcf957e generated: ./hack/update-vendor.sh 2024-04-22 10:54:32 -07:00
jwcesign
f0aa62bc96 upgrade: upgrade dependencies github.com/prometheus/common to the newest version
Signed-off-by: jwcesign <jwcesign@gmail.com>
2024-04-20 09:53:16 +08:00
Stephen Kitt
6bf667af06 Switch from golang/mock to uber-go/mock
See https://github.com/golang/mock#gomock: golang/mock is no longer
maintained, and should be replaced by go.uber.org/mock.

This allows golang/mock to be dropped from the status and vendored
fields in unwanted-dependencies.json.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-03-07 09:12:16 +01:00
Tim Hockin
812d5fff40 Remove old gengo detritus 2024-02-29 22:07:39 -08:00
Tim Hockin
6f2f3735e0 Re-vendor latest kube-openapi and gengo/v2
./hack/pin-dependency.sh k8s.io/kube-openapi latest
./hack/pin-dependency.sh k8s.io/gengo/v2 latest
./hack/update-vendor.sh
2024-02-29 22:06:19 -08:00
Akihiro Suda
07c701fecb agnhost: merge registry.k8s.io/stress:v1 (github.com/vishh/stress)
Merge vishh/stress@eab4e3384b into
agnhost.

Old usage: `stress -mem-alloc-size 12Mi -mem-alloc-sleep 10s -mem-total 4Gi`
New usage: `agnhost stress --mem-alloc-size 12Mi --mem-alloc-sleep 10s --mem-total 4Gi`

This is a part of the steps to migrate from legacy Schema 1 images
(issue 123146)

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-02-13 23:21:05 +09:00
Kubernetes Prow Robot
48228bf9db Merge pull request #121486 from benluddy/cbor-stub
KEP-4222: Add stub CBOR serializer.
2024-02-09 14:42:05 -08:00
Kubernetes Prow Robot
e023511deb Merge pull request #122920 from danwinship/knftables-migration
Update knftables, with new sigs.k8s.io module name
2024-01-26 07:14:16 +01:00
Ben Luddy
09a1abda99 Update vendoring to take new CBOR library dependency. 2024-01-25 08:35:26 -05:00
Davanum Srinivas
65d67101e7 Drop vsphere cloud provider
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-01-23 19:57:01 -05:00
Dan Winship
09abfa46be Update knftables, with new sigs.k8s.io module name 2024-01-23 08:09:05 -05:00
Qi Ni
3bf2bf8191 chore: Cleanup in-tree credential provider azure and cloud provider azure 2024-01-20 15:18:31 +08:00
Patrick Ohly
166b71757b dependencies: zapr v1.3.0, zap v1.26.0
The new zapr adds support for slog. The new zap has various improvements. It no
longer depends on go.uber.org/atomic which enables dropping it from the
Kubernetes dependencies. github.com/pkg/errors is also no longer needed.
2023-11-07 20:24:28 +01:00
Dan Winship
abb1a458a9 Create an nftables.Interface in nftables proxier
And update most of the comments to refer to "nftables" rather than
"iptables" (even though it doesn't actually do any nftables updating
at this point).

For now the proxy also internally creates a
utiliptablestesting.FakeIPTables to keep the existing sync code
compiling.
2023-10-31 17:38:29 -04:00
Davanum Srinivas
702d911e22 working-config-otel
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-10-25 16:31:21 -04:00
Davanum Srinivas
889c8e919b New repo who dis? distribution/reference
github.com/docker/distribution/reference has a new home github.com/distribution/reference

and a new tag v0.5.0. Let's switch to that.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-08-31 21:53:40 -04:00
Jefftree
1993a4cb37 vendor 2023-06-02 14:34:25 +00:00
Joe Betz
5c0b59891d Bump cel-go to v0.16.0 2023-05-31 18:36:43 -04:00
Jordan Liggitt
a045fedd02 Update google.golang.org/genproto 2023-05-26 13:20:33 -04:00
Jordan Liggitt
d6d1dbdd82 Update kube-openapi, drop mapstructure 2023-05-15 16:42:00 -04:00
Humble Chirammal
8723057880 dependencies: update go.uber.org/multierr v1.11.0
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-04-26 14:02:34 +05:30
Humble Chirammal
2d06fad516 dependencies: azure-sdk-for-go to v55->v68
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-04-13 14:55:56 +05:30
natasha41575
09e6e4db1d Update kubectl kustomize to kyaml/v0.14.1, cmd/config/v0.11.1, api/v0.13.2, kustomize/v5.0.1 2023-03-14 11:40:28 -05:00
Davanum Srinivas
b50d9d1e28 Cleanup vendor/
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-03-07 10:27:15 -05:00
torredil
6aebda9b1e Remove AWS legacy cloud provider + EBS in-tree storage plugin
Signed-off-by: torredil <torredil@amazon.com>
2023-03-06 14:01:15 +00:00
Paco Xu
b5dbb33da9 upgrade etcd deps to v3.5.7
Signed-off-by: Paco Xu <paco.xu@daocloud.io>
2023-03-01 12:14:52 +08:00
Patrick Ohly
f131cabfa0 test: use go-uber/goleak for strict leak checking
It provides more readable output and has additional APIs for using it inside a
unit test. goleak.IgnoreCurrent is needed to filter out the goroutine that gets
started when importing go.opencensus.io/stats/view.

In order to handle background goroutines that get created on demand and cannot
be stopped (like the one for LogzHealth), a helper function ensures that those
are running before calling goleak.IgnoreCurrent. Keeping those goroutines
running is not a problem and thus not worth the effort of adding new APIs to
stop them.

Other goroutines are genuine leaks for which no fix is available. Those get
suppressed via IgnoreTopFunction, which works as long as that function
is unique enough.

Example output for the leak fixed in https://github.com/kubernetes/kubernetes/pull/115423:

    E0202 09:30:51.641841   74789 etcd.go:205] "EtcdMain goroutine check" err=<
        found unexpected goroutines:
        [Goroutine 4889 in state chan receive, with k8s.io/apimachinery/pkg/watch.(*Broadcaster).loop on top of the stack:
        goroutine 4889 [chan receive]:
        k8s.io/apimachinery/pkg/watch.(*Broadcaster).loop(0xc0076183c0)
        	/nvme/gopath/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/watch/mux.go:268 +0x65
        created by k8s.io/apimachinery/pkg/watch.NewBroadcaster
        	/nvme/gopath/src/k8s.io/kubernetes/vendor/k8s.io/apimachinery/pkg/watch/mux.go:77 +0x116
    >
2023-02-14 12:11:37 +01:00
Jordan Liggitt
f6bb29c2d2 Add gimme 2023-02-01 16:34:23 -05:00
Mike Danese
f61c4245c1 vendor: removed unused dep github.com/elazarl/goproxy 2023-01-18 18:31:50 +00:00
Davanum Srinivas
d9b98bc36a Update to new release of moby/ipvs
hack/pin-dependency.sh github.com/moby/ipvs v1.1.0

- go to a fixed tag for `vishvananda/netns`
- no more references to `pkg/errors`

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-01-14 16:13:24 -05:00
David Porter
761dd3640e deps: Bump to cAdvisor v0.47.1
Signed-off-by: David Porter <david@porter.me>
2023-01-11 16:07:12 -08:00
Jordan Liggitt
9f07c8e346 Revert "bump golang.org/x/oauth2"
This reverts commit fc9a140bad.
2023-01-04 17:58:08 -05:00
Jordan Liggitt
fc9a140bad bump golang.org/x/oauth2 2023-01-04 11:16:43 -05:00
Kubernetes Prow Robot
353e00796e Merge pull request #112988 from alexzielenski/update-kube-openapi
update kube-openapi
2022-10-14 17:31:29 -07:00
Kubernetes Prow Robot
542ec97705 Merge pull request #113037 from pacoxu/fsnotify-v1.6.0
update fsnotify to v1.6.0
2022-10-13 23:00:57 -07:00
Alexander Zielenski
f622dd918a update kube-openapi
hack/pin-dependency.sh k8s.io/kube-openapi 172d655c2280350c77cf05962948fc67ff043492
hack/update-vendor.sh
2022-10-13 19:51:29 -07:00
John McBride
dfb55ba48a Bumps cobra from 1.5.0 to 1.6.0
- Upgrades mousetrap license to latest Apache 2.0

Signed-off-by: John McBride <jpmmcbride@gmail.com>
2022-10-13 14:52:39 +00:00
Paco Xu
3fee9d2735 update fsnotify to v1.6.0 2022-10-13 13:24:55 +08:00
Jordan Liggitt
04b178b49b Make root approval non-recursive 2022-10-10 08:26:53 -04:00
Kubernetes Prow Robot
8d1ba6a086 Merge pull request #112731 from pacoxu/blackfriday-v2
upgrade Blackfriday to v2 and re-implement render
2022-09-29 08:44:53 -07:00
Kubernetes Prow Robot
ce4fd5c31d Merge pull request #112704 from dims/drop-scripts-and-files-related-to-linkcheck
drop scripts and files related to linkcheck
2022-09-26 08:10:32 -07:00