Skip to content

Commit

Permalink
upgrade to latest dependencies
Browse files Browse the repository at this point in the history
bumping knative.dev/serving ad26685...899b332:
  > 899b332 Update net-contour nightly (# 14304)
  > 09a8095 Use dataplane-trust instead of internal-encryption (# 14301)
  > ae86b1d upgrade to latest dependencies (# 14302)
  > 43f7526 Do not skip TestTargetBurstCapacity when `dataplane-trust` is not specified (# 14300)
  > d39a379 Support conformance test with cgroup v2 (# 14297)
  > c63d9be Fix comment about Cgroup limit (# 14298)
  > 9ac8996 Update net-istio nightly (# 14293)
  > 59bfc12 Update net-certmanager nightly (# 14294)
  > 7aef47b Update net-contour nightly (# 14295)
  > 90046c3 Don't reset ENV vars (# 14276)
  > 82747ef Update net-kourier nightly (# 14292)
  > eaff0b3 upgrade to latest dependencies (# 14290)
  > 587de3d Update net-kourier nightly (# 14286)
  > 21264fc Update net-contour nightly (# 14284)
  > a9b48be Deprecate calling kubetest2 via kntest (# 13329)
  > 397cfde Update net-istio nightly (# 14285)
  > e9425f8 chore: remove v1alpha1 domainmapping (# 14275)
  > b3b793f Update net-gateway-api nightly (# 14280)
  > 89b4341 upgrade to latest dependencies (# 14277)
  > b5585ac Update net-certmanager nightly (# 14279)
  > 1d6701e upgrade to latest dependencies (# 14266)
  > 8e2aa70 Update net-gateway-api nightly (# 14272)
  > ec057c1 Update net-contour nightly (# 14271)
  > 38f9b47 Update net-istio nightly (# 14270)
  > b7e573d Update net-kourier nightly (# 14269)
  > 8d29085 Update net-certmanager nightly (# 14268)
  > becea87 Update net-kourier nightly (# 14261)
  > 2cb31ee Update community files (# 14259)
  > 59cb3d3 Update net-contour nightly (# 14264)
  > 4931532 Update net-certmanager nightly (# 14262)
  > 5e20e1e Update net-istio nightly (# 14263)
  > 6bfe5c3 add app: webhook label to webhook service (# 14258)
  > ece2fea upgrade to latest dependencies (# 14256)
  > 5c1c855 Support to use vegeta client with HTTPS (# 14255)
  > f9d9b28 Update net-gateway-api nightly (# 14249)
  > 4ab6b88 Update net-istio nightly (# 14247)
  > 5edb5a9 Update community files (# 14241)
  > 3f62086 Update net-kourier nightly (# 14246)
  > 342693a Update net-certmanager nightly (# 14245)
  > e1bbe1f Update net-gateway-api nightly (# 14243)
  > 0d79514 Update net-contour nightly (# 14244)
bumping knative.dev/eventing 248a471...e255593:
  > e255593 Update to kind v0.20.0 (# 7138)
  > 763eb0c [main] Upgrade to latest dependencies (# 7156)
  > 4a77f6f [main] Upgrade to latest dependencies (# 7155)
  > 8d5cfd9 Rename knative-sandbox to knative-extensions (# 7137)
  > f614df3 [main] Upgrade to latest dependencies (# 7143)
  > ce3b0c8 [main] Update community files (# 7152)
  > 6ab1a21 Remove deprecated kncloudevents.CloudEventsRequest (# 7146)
  > 67b3bf5 Set cluster domain suffix in TLS manifests correctly (# 7145)
  > 55225e0 Install Kail from source in test_setup (# 7150)
  > 37a5651 Fix retryAfter experimental e2e test (# 7148)
  > 0fd9aa1 Benchmark Base SubscriptionsAPI filters (# 7121)
  > 8a90e40 TLS certificate rotation tests (# 7103)
  > bfba6fd Use correct cluster domain in e2e tests (# 7140)
  > 91e156c [main] Upgrade to latest dependencies (# 7131)
  > 3915df7 Refactor kncloudevents and add `SendEvent` function (# 7092)
  > 8a09756 [main] Update actions (# 7136)
  > de2e8ff Global resync brokers on config-features changes (# 7126)
  > 5e76ff2 Watch config-features in IMC controller (# 7125)
  > 63fd638 Introduce a script to build and deploy Eventing for local development (# 7117)
  > 694ae3e Fix edit role aggregation (# 7124)
  > 187be65 [main] Upgrade to latest dependencies (# 7123)
  > ffa5915 Remove deprecated httpclient msgsender (# 7018)
  > 874d288 [main] Update community files (# 7116)
bumping go.uber.org/zap a55bdc3...56468e7:
  > 56468e7 Release v1.25.0
  > 249507a zap.Any: Reduce stack size with generics (# 1310)
  > 50b2db4 zap.Any add benchmarks
  > a0674c8 Add direct coverage to zap.Any (# 1309)
  > 1310691 Table test TestFieldConstructors
  > 382e251 Swap expected and got fields (# 1282)
  > 24b7977 Add Name() to Logger (# 1273)
  > 1155ed3 Introduce Str + Strs generic string helpers (# 1281)
  > 4451b47 exp: Update slog, adjust for changes (# 1276)
  > 845ca51 internal: Add and use a generic pool instead of using sync.Pool directly (# 1262)
  > 42b7ef0 slog: Ignore frames with a zero PC (# 1258)
  > 05c4b6c Remove dependency on github.com/pkg/errors (# 1255)
  > d1a1923 Minimize permissions on CI workflows (# 1257)
  > 384e782 Use sync/atomic, drop external atomics (# 1253)
  > 740fda7 TestLevelFlag: Don't print to stderr (# 1254)
  > f2f1f41 [Feature] Add  experiment `zapslog` package to integrate with slog (# 1246)
  > 54862f5 benchmark: add slog (# 1245)
  > 85c4932 Add govulncheck as a CI step (# 1239)
  > f4ba5f5 make: Switch from golint to revive (# 1238)
  > 8310f89 chore: update bench package versions and results (# 1207)
  > 8d89127 Bump actions/checkout from 2 to 3 (# 1237)
  > bc64796 doc: New{Production,Development}Encoder{,Config} (# 1234)
  > 692ec13 ci: Set up dependabot for GH actions and tools (# 1236)
  > 7d6a9af ci: Test with Go 1.19 and 1.20 (# 1235)
  > d4a1083 doc(SugaredLogger): Document print, printf, and println methods (# 1233)
  > b32f3c5 Update Snyk vulnerable modules (# 1227)
  > 53fdb6f Reverse comparison for readability (# 1228)
  > 077b03e Use iota like a original from grpc-go (# 1220)
bumping knative.dev/networking 29c1660...1e4e183:
  > 1e4e183 Improve InternalTLSEnabled util function (# 847)
  > 1d7920d upgrade to latest dependencies (# 845)
  > 4bfcc9f Network Config Changes (# 842)
  > 4901742 upgrade to latest dependencies (# 844)
  > ed0534b Update community files (# 843)
  > e50e66f upgrade to latest dependencies (# 841)
  > 1632591 correct readme link (# 840)
  > 04f25c2 Update community files (# 838)
bumping go.uber.org/multierr 10aaa3c...8767aa9:
  > 8767aa9 Prepare release v1.10 (# 74)
  > 4504ef7 README: Add Features section (# 73)
  > 2fd451d Drop external atomic dependency (# 72)
  > 7876a02 Remove unused glide.yaml (# 71)
  > 55bc553 Support Go 1.20 Unwrap() []error (# 69)
  > 39ca40c Prepare release v1.9.0 (# 68)
  > 4459990 Add a shorthand for AppendInvoke (# 65)
  > 80b07a7 Document named return constraint for defer (# 63)
  > 492b792 Test and lint against Go 1.19 (# 62)
  > aa8f15f Upgrade to yaml.v3 3.0.1 (# 60)
  > f46d400 Use append instead of copy to clone slices (# 58)
  > 6fede5c CI: Test against Go 1.17/1.18 (# 57)
bumping github.com/openzipkin/zipkin-go f916476...4541717:
  > 4541717 remove circleci from list (# 213)
  > a58f3b6 Bump dependencies and remove unnecessary external dependency for example.  (# 212)
bumping google.golang.org/grpc 5b67e5e...87bf02a:
  > 87bf02a Change version to 1.57.0 (# 6448)
  > 6b64be9 resolver/weighted_round_robin: remove experimental suffix from name
  > 9489082 github: replace deprecated command with environment file (# 6417)
  > d1868a5 clusterresolver: add logs for dns discovery mechanism error cases (# 6444)
  > 8e9c8f8 grpc: do not use balancer attributes during address comparison (# 6439)
  > db32c5b Fix preloader mode in benchmarks (# 6359)
  > f0280f9 xds: require EDS service name in new-style CDS clusters (gRFC A47) (# 6438)
  > bf5b7ae clusterresolver: handle EDS nacks and resource-not-found errors correctly (# 6436)
  > fc0aa46 client: encode the authority by default (# 6428)
  > 11feb0a resolver: delete Target.Scheme and Target.Authority (# 6363)
  > df3e021 status: fix panic when servers return a wrapped error with status OK (# 6374)
  > acbfcbb internal/grpcsync: refactor test (# 6427)
  > 51042db internal/grpcsync: Provide an internal-only pub-sub type API (# 6167)
  > 620a118 xds/internal/balancer/clusterimpl: Switch cluster impl child to graceful switch (# 6420)
  > 6b8f427 orca: remove useless log statement (# 6424)
  > ea492f5 xdsclient: indicate authority serverURI in authority + transport logs (# 6425)
  > 67e881c xds: E2E Test for Audit Logging (# 6377)
  > 07718ef internal/xds/rbac: Add support for string matcher in RBAC header matching (# 6419)
  > 575a936 xds: Fail xDS Server Serve() if called after Stop() or GracefulStop() (# 6410)
  > 7eb5727 xds: switch EDS watch to new generic xdsClient API (# 6414)
  > e859984 server: with TLS, set TCP user timeout on the underlying raw connection (# 5646) (# 6321)
  > 1634254 rpc_util: Reuse memory buffer for receiving message (# 5862)
  > 789cf4e reflection: rename proto imports for disambiguation in import script (# 6411)
  > 0673105 clusterresolver: switch a couple of tests to e2e style (# 6394)
  > 0b3a81e clusterresolver: remove priority LB related tests (# 6395)
  > dd931c8 xds: clusterresolver e2e test cleanup (# 6391)
  > 10f5b50 [PSM interop] Don't fail target if sub-target already failed (# 6390)
  > 963238a clusterresolver: move tests around to different files (# 6392)
  > f24b4c7 clusterresolver: remove redundant tests (# 6388)
  > a9c7942 benchmark: Add support for Poisson load in benchmark client (# 6378)
  > dd350d0 stats/opencensus: Fix flaky metrics test (# 6372)
  > 642dd63 reflection: expose both v1 and v1alpha reflection services (# 6329)
  > 3c6084b xds/outlierdetection: fix config handling (# 6361)
  > 3e8eca8 Revert "client: encode the authority by default (# 6318)" (# 6365)
  > 1c0572a benchmark: fix package used to reference service to use grpc suffix instead of pb (# 6362)
  > 7a7caf3 protoc-gen-go-grpc: Update README.md file (# 6349)
  > 89790ea grpclb: fix typo (# 6356)
  > 907bdaa alts: Read max number of concurrent ALTS handshakes from environment variable. (# 6267)
  > 2ac1aae weightedroundrobin: prefer application_utilization to cpu_utilization (# 6358)
  > 7aeea8f orca: add application utilization and range checking (# 6357)
  > 6578ef7 client: handle empty address lists correctly in addrConn.updateAddrs (# 6354)
  > 761c084 xds/ringhash: cache connectivity state of subchannels inside picker (# 6351)
  > 1b66663 benchmark: Add sleepBetweenRPCs and connections parameters (# 6299)
  > 81c513a opencensus: stop overwriting ctx parameter in tests (# 6350)
  > 68576b3 client: encode the authority by default (# 6318)
  > c9d3ea5 deps: google.golang.org/genproto to latest in all modules (# 6319)
  > 02188e6 Change version to 1.57.0-dev (# 6346)
bumping gomodules.xyz/jsonpatch/v2 93a4daf...13a9e4a:
  > 13a9e4a Merge pull request # 36 from howardjohn/v2/improvements
  > 62e0c90 Update repository config (# 33)
  > 6d5c3df Fully remove dead code
  > 0c26413 Update repository config (# 32)
  > 45186ed (hackily) remove inefficient optimization
  > e0f6c24 Fix known broken case
  > c616a48 Fix marshaling invalid chars
  > 2c05a51 Fix inputs with empty keys
  > 1f7eb13 Improve fuzz tests
  > 471fa30 Fix CI
  > 4844bbf Add fuzzing test
  > 87f8876 add benchmarks
  > a81e531 Go.mod for go 1.20
  > fc9e957 Update to Go 1.20
bumping knative.dev/pkg ea6c1f2...81e4ee1:
  > 81e4ee1 Bump go.uber.org/zap from 1.24.0 to 1.25.0 (# 2800)
  > 2aafe0e Bump cloud.google.com/go/storage from 1.31.0 to 1.32.0 (# 2801)
  > 2ad39e9 Bump github.com/hashicorp/golang-lru from 0.5.4 to 1.0.2 (# 2804)
  > d36cc59 Bump google.golang.org/api from 0.136.0 to 0.138.0 (# 2802)
  > 35b0890 Bump go.uber.org/automaxprocs from 1.4.0 to 1.5.3 (# 2803)
  > 93a9858 upgrade to latest dependencies (# 2799)
  > 4f651e0 Bump gomodules.xyz/jsonpatch/v2 from 2.2.0 to 2.3.0 (# 2789)
  > 6519aff Update community files (# 2794)
  > 26b41ba Bump google.golang.org/api from 0.126.0 to 0.136.0 (# 2790)
  > 42a4ec1 Bump contrib.go.opencensus.io/exporter/prometheus from 0.4.0 to 0.4.2 (# 2793)
  > 404648b Bump golang.org/x/oauth2 from 0.8.0 to 0.11.0 (# 2792)
  > a6e28fc Bump golang.org/x/tools from 0.11.0 to 0.12.0 (# 2791)
  > b409e16 Bump github.com/openzipkin/zipkin-go from 0.3.0 to 0.4.1 (# 2785)
  > cceb144 Update community files (# 2788)
bumping google.golang.org/genproto/googleapis/rpc 9506855...1744710:
  > 1744710 chore(all): update all (# 1043)
  > f966b18 chore(googleapis): remove obsolete types referencing field_mask package (# 1042)
  > e0aa005 chore(all): update all (# 1033)
  > cbb8c96 chore(all): update all (major) (# 1041)
  > 23370e0 chore(all): auto-regenerate .pb.go files (# 1039)
  > b022f6e chore(all): auto-regenerate .pb.go files (# 1038)
  > 66ad5b6 chore(all): update all (major) (# 1037)
  > 659f7aa chore(all): auto-regenerate .pb.go files (# 1036)
  > 3f92550 chore(all): update all (major) (# 1024)
  > 782d3b1 chore: remove gaming (# 1032)
  > e685fd7 chore(all): update all (# 1031)
  > ccb25ca chore(all): update all (# 1022)
  > f517056 chore(all): add go.work and fix apidiff (# 1030)
bumping knative.dev/hack a75befb...9cc05a3:
  > 9cc05a3 Deprecate calling kubetest2 via kntest (# 230)
  > 044c02b Update community files (# 309)
  > 3403e35 Update e2e-kind.sh (# 308)
  > ab12e24 Update community files (# 306)
bumping google.golang.org/api 884dbd5...85e7e70:
  > 85e7e70 chore(main): release 0.138.0 (# 2116)
  > 9b75278 feat(all): auto-regenerate discovery clients (# 2119)
  > 40ea606 feat(all): auto-regenerate discovery clients (# 2118)
  > 1770219 feat(all): auto-regenerate discovery clients (# 2115)
  > c631c0a chore(main): release 0.137.0 (# 2107)
  > caea956 feat: ok to use S2A with override endpoint (# 2114)
  > 142ffeb feat(all): auto-regenerate discovery clients (# 2113)
  > f7f1c7b feat(all): auto-regenerate discovery clients (# 2112)
  > 0cc62ab feat(all): auto-regenerate discovery clients (# 2111)
  > 4d775db feat(all): auto-regenerate discovery clients (# 2110)
  > 6d29bab chore(all): update module github.com/google/s2a-go to v0.1.5 (# 2109)
  > 80485e0 feat(all): auto-regenerate discovery clients (# 2108)
  > 3f3ed3d feat(all): auto-regenerate discovery clients (# 2106)
  > 113082d chore(main): release 0.136.0 (# 2105)
  > 919cee6 chore(all): update all (# 2101)
  > c62e5c6 feat: add additional checks before using S2A (# 2103)
  > 8029f73 feat(all): auto-regenerate discovery clients (# 2104)
  > cd62080 chore(main): release 0.135.0 (# 2088)
  > 8fbf572 feat(all): auto-regenerate discovery clients (# 2102)
  > 262aa70 feat(all): auto-regenerate discovery clients (# 2100)
  > b16a2d3 feat(all): auto-regenerate discovery clients (# 2099)
  > ff054ff feat(all): auto-regenerate discovery clients (# 2098)
  > e59738c feat(all): auto-regenerate discovery clients (# 2096)
  > 1e19c22 feat(all): auto-regenerate discovery clients (# 2095)
  > 979195d feat(all): auto-regenerate discovery clients (# 2094)
  > 06fee15 chore(all): update all (# 2092)
  > 2b1c61f feat(all): auto-regenerate discovery clients (# 2093)
  > 597995c feat(all): auto-regenerate discovery clients (# 2091)
  > 8ba6963 feat(all): auto-regenerate discovery clients (# 2090)
  > c4d9f14 feat(all): auto-regenerate discovery clients (# 2089)
  > 8875932 feat(all): auto-regenerate discovery clients (# 2087)
  > 7fb7c47 chore(main): release 0.134.0 (# 2085)
  > aec89b7 feat(all): auto-regenerate discovery clients (# 2086)
  > 66d077d feat(all): auto-regenerate discovery clients (# 2084)
  > 9a94c5b chore(main): release 0.133.0 (# 2078)
  > 15c15a6 chore(all): update all to 659f7aa (# 2083)
  > 0846d92 feat(all): auto-regenerate discovery clients (# 2082)
  > 94f3caf feat(all): auto-regenerate discovery clients (# 2081)
  > 3a5236c feat(all): auto-regenerate discovery clients (# 2080)
  > b88678a feat(all): auto-regenerate discovery clients (# 2079)
  > d9bd05b feat(all): auto-regenerate discovery clients (# 2077)
  > 2eab0d1 chore(main): release 0.132.0 (# 2066)
  > 334c07e feat(all): auto-regenerate discovery clients (# 2076)
  > bf32188 chore(all): update all to 782d3b1 (# 2074)
  > 25d96d9 feat(all): auto-regenerate discovery clients (# 2075)
  > 0011a92 feat(all): auto-regenerate discovery clients (# 2073)
  > 52ac522 feat(all): auto-regenerate discovery clients (# 2072)
  > 16cf0c3 feat(all): auto-regenerate discovery clients (# 2069)
  > 25a3230 feat(all): auto-regenerate discovery clients (# 2065)
  > 5e7109a chore(main): release 0.131.0 (# 2056)
  > f391921 feat(all): auto-regenerate discovery clients (# 2064)
  > 524f72b feat(all): auto-regenerate discovery clients (# 2063)
  > 16b834e chore(all): update all (# 2061)
  > 90038ee feat(all): auto-regenerate discovery clients (# 2062)
  > 16ad84c feat(all): auto-regenerate discovery clients (# 2060)
  > 24b4d0b feat(all): auto-regenerate discovery clients (# 2059)
  > c836da9 feat(gensupport): pass in headers via context (# 2052)
  > e871335 feat(all): auto-regenerate discovery clients (# 2058)
  > 1b0f818 feat(all): auto-regenerate discovery clients (# 2054)
  > ed3a635 chore(main): release 0.130.0 (# 2042)
  > d5c7eef chore(all): update all (# 2048)
  > 5ec0817 feat(all): auto-regenerate discovery clients (# 2051)
  > d79dfc2 feat(all): auto-regenerate discovery clients (# 2050)
  > 5e08be4 feat(all): auto-regenerate discovery clients (# 2049)
  > 6711565 feat(all): auto-regenerate discovery clients (# 2046)
  > 50d3e98 feat(all): auto-regenerate discovery clients (# 2045)
  > 380eafd feat(all): auto-regenerate discovery clients (# 2044)
  > 7a8816b feat(all): auto-regenerate discovery clients (# 2043)
  > dc4d425 feat(all): auto-regenerate discovery clients (# 2041)
  > 78ebbdb chore(main): release 0.129.0 (# 2029)
  > 5e1c531 feat(all): auto-regenerate discovery clients (# 2040)
  > 888df6f chore: skip generating integrations:v1alpha (# 2039)
  > bbfccf8 chore(all): update all (# 2038)
  > efba8fa chore: restore generating integrations:v1alpha (# 2037)
  > 177408e feat(all): auto-regenerate discovery clients (# 2035)
  > 807827a chore(all): update all (# 2031)
  > cc73573 feat(all): auto-regenerate discovery clients (# 2033)
  > 247ad09 feat(all): auto-regenerate discovery clients (# 2032)
  > 3eb845f feat(all): auto-regenerate discovery clients (# 2030)
  > 922fc6a feat(all): auto-regenerate discovery clients (# 2028)
  > f06cac5 chore(main): release 0.128.0 (# 2023)
  > 229def0 feat(all): auto-regenerate discovery clients (# 2027)
  > 58512c3 feat(all): auto-regenerate discovery clients (# 2026)
  > d846ea5 feat(all): auto-regenerate discovery clients (# 2022)
  > 5e2fcf7 chore(main): release 0.127.0 (# 2016)
  > 0d9a82b chore(all): update module github.com/googleapis/enterprise-certificate-proxy to v0.2.4 (# 2019)
  > eb914ce feat(all): auto-regenerate discovery clients (# 2021)
  > c86a815 feat(all): auto-regenerate discovery clients (# 2018)
  > 4c6e7c1 feat(all): auto-regenerate discovery clients (# 2017)
  > 21af27f feat(all): auto-regenerate discovery clients (# 2015)
bumping github.com/hashicorp/golang-lru 14eae34...a032ef5:
  > a032ef5 Update README for v1.0.2
  > bdf35e3 Remove deprecated linters
  > bc1608d Update other tests to get rid of math/rand
  > f2408b3 Update test to remove bad rand usage
  > fa11c6b Update github workflow
  > 6da3f98 Update MPL 2.0 LICENSE (# 110)
  > d4900dc fix onEvictedCB bug (# 84)
  > 003b81b Update go doc url (# 93)
  > 80c9821 rework lru's external registered callback invocation to avoid concurr… (# 80)
  > eb52994 Code quality improvements (# 67)
bumping google.golang.org/genproto/googleapis/api e85fd2c...f966b18:
  > f966b18 chore(googleapis): remove obsolete types referencing field_mask package (# 1042)
  > e0aa005 chore(all): update all (# 1033)
  > cbb8c96 chore(all): update all (major) (# 1041)
  > 23370e0 chore(all): auto-regenerate .pb.go files (# 1039)
  > b022f6e chore(all): auto-regenerate .pb.go files (# 1038)
  > 66ad5b6 chore(all): update all (major) (# 1037)
  > 659f7aa chore(all): auto-regenerate .pb.go files (# 1036)
  > 3f92550 chore(all): update all (major) (# 1024)
  > 782d3b1 chore: remove gaming (# 1032)
  > e685fd7 chore(all): update all (# 1031)
  > ccb25ca chore(all): update all (# 1022)
  > f517056 chore(all): add go.work and fix apidiff (# 1030)
  > 9506855 chore(all): auto-regenerate .pb.go files (# 1028)
  > 1f95444 chore(all): auto-regenerate .pb.go files (# 1026)
  > e449d1e chore(all): update apidiff.yaml for submodules (# 1027)
  > 9b080da chore(all): auto-regenerate .pb.go files (# 1025)
bumping google.golang.org/genproto e85fd2c...f966b18:
  > f966b18 chore(googleapis): remove obsolete types referencing field_mask package (# 1042)
  > e0aa005 chore(all): update all (# 1033)
  > cbb8c96 chore(all): update all (major) (# 1041)
  > 23370e0 chore(all): auto-regenerate .pb.go files (# 1039)
  > b022f6e chore(all): auto-regenerate .pb.go files (# 1038)
  > 66ad5b6 chore(all): update all (major) (# 1037)
  > 659f7aa chore(all): auto-regenerate .pb.go files (# 1036)
  > 3f92550 chore(all): update all (major) (# 1024)
  > 782d3b1 chore: remove gaming (# 1032)
  > e685fd7 chore(all): update all (# 1031)
  > ccb25ca chore(all): update all (# 1022)
  > f517056 chore(all): add go.work and fix apidiff (# 1030)
  > 9506855 chore(all): auto-regenerate .pb.go files (# 1028)
  > 1f95444 chore(all): auto-regenerate .pb.go files (# 1026)
  > e449d1e chore(all): update apidiff.yaml for submodules (# 1027)
  > 9b080da chore(all): auto-regenerate .pb.go files (# 1025)
bumping knative.dev/client-pkg e46f802...5abd129:
  > 5abd129 Update community files (# 116)
  > 38d2dc0 Update community files (# 114)
  > 71b851f upgrade to latest dependencies (# 112)
bumping golang.org/x/oauth2 839de22...2e4a4e2:
  > 2e4a4e2 go.mod: update golang.org/x dependencies
  > ac6658e all: update go version to 1.18
  > ec5679f go.mod: update golang.org/x dependencies
  > 989acb1 all: update dependencies to their latest versions
  > 2323c81 go.mod: update golang.org/x dependencies

Signed-off-by: Knative Automation <automation@knative.team>
  • Loading branch information
knative-automation committed Aug 29, 2023
1 parent de344d9 commit 53001e6
Show file tree
Hide file tree
Showing 107 changed files with 1,687 additions and 3,603 deletions.
35 changes: 17 additions & 18 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module knative.dev/kn-plugin-admin
go 1.18

require (
github.com/hashicorp/golang-lru v0.5.4
github.com/hashicorp/golang-lru v1.0.2
github.com/hashicorp/hcl v1.0.0
github.com/mitchellh/go-homedir v1.1.0
github.com/spf13/cobra v1.6.0
Expand All @@ -13,10 +13,10 @@ require (
k8s.io/api v0.26.5
k8s.io/apimachinery v0.26.5
k8s.io/client-go v0.26.5
knative.dev/client-pkg v0.0.0-20230807014415-e46f8029bc69
knative.dev/hack v0.0.0-20230807013713-a75befb4fd4b
knative.dev/networking v0.0.0-20230808142735-29c1660fa214
knative.dev/serving v0.38.1-0.20230808142735-ad26685213da
knative.dev/client-pkg v0.0.0-20230815131440-5abd12981b4b
knative.dev/hack v0.0.0-20230818155117-9cc05a31e8c0
knative.dev/networking v0.0.0-20230828082700-1e4e18318353
knative.dev/serving v0.38.1-0.20230829131530-899b332671b1
)

require (
Expand Down Expand Up @@ -69,7 +69,7 @@ require (
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/openzipkin/zipkin-go v0.4.0 // indirect
github.com/openzipkin/zipkin-go v0.4.1 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
Expand All @@ -90,23 +90,22 @@ require (
github.com/xlab/treeprint v1.1.0 // indirect
go.opencensus.io v0.24.0 // indirect
go.starlark.net v0.0.0-20220817180228-f738f5508c12 // indirect
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/multierr v1.8.0 // indirect
go.uber.org/zap v1.24.0 // indirect
go.uber.org/multierr v1.10.0 // indirect
go.uber.org/zap v1.25.0 // indirect
golang.org/x/net v0.14.0 // indirect
golang.org/x/oauth2 v0.8.0 // indirect
golang.org/x/oauth2 v0.11.0 // indirect
golang.org/x/sync v0.3.0 // indirect
golang.org/x/sys v0.11.0 // indirect
golang.org/x/term v0.11.0 // indirect
golang.org/x/text v0.12.0 // indirect
golang.org/x/time v0.3.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.2.0 // indirect
google.golang.org/api v0.126.0 // indirect
gomodules.xyz/jsonpatch/v2 v2.3.0 // indirect
google.golang.org/api v0.138.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230530153820-e85fd2cbaebc // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230530153820-e85fd2cbaebc // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230629202037-9506855d4529 // indirect
google.golang.org/grpc v1.56.1 // indirect
google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230803162519-f966b187b2e5 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230807174057-1744710a1577 // indirect
google.golang.org/grpc v1.57.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
Expand All @@ -116,8 +115,8 @@ require (
k8s.io/klog/v2 v2.80.2-0.20221028030830-9ae4992afb54 // indirect
k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 // indirect
k8s.io/utils v0.0.0-20221108210102-8e77b1f39fe2 // indirect
knative.dev/eventing v0.38.0 // indirect
knative.dev/pkg v0.0.0-20230808043333-ea6c1f29b641 // indirect
knative.dev/eventing v0.38.1-0.20230808082134-e2555934d297 // indirect
knative.dev/pkg v0.0.0-20230821102121-81e4ee140363 // indirect
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
sigs.k8s.io/kustomize/api v0.12.1 // indirect
sigs.k8s.io/kustomize/kyaml v0.13.9 // indirect
Expand Down
142 changes: 36 additions & 106 deletions go.sum

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
linters:
enable:
- megacheck
- revive
- govet
- unconvert
- megacheck
- gas
- gocyclo
- dupl
- misspell
- unparam
- unused
- typecheck
- ineffassign
- stylecheck
- exportloopref
- gocritic
- nakedret
- gosimple
- prealloc
fast: false
disable-all: true

issues:
exclude-rules:
- path: _test\.go
linters:
- dupl
exclude-use-default: false
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func New2Q(size int) (*TwoQueueCache, error) {

// New2QParams creates a new TwoQueueCache using the provided
// parameter values.
func New2QParams(size int, recentRatio float64, ghostRatio float64) (*TwoQueueCache, error) {
func New2QParams(size int, recentRatio, ghostRatio float64) (*TwoQueueCache, error) {
if size <= 0 {
return nil, fmt.Errorf("invalid size")
}
Expand Down Expand Up @@ -138,7 +138,6 @@ func (c *TwoQueueCache) Add(key, value interface{}) {
// Add to the recently seen list
c.ensureSpace(false)
c.recent.Add(key, value)
return
}

// ensureSpace is used to ensure we have space in the cache
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Copyright (c) 2014 HashiCorp, Inc.

Mozilla Public License, version 2.0

1. Definitions
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
golang-lru
==========

This provides the `lru` package which implements a fixed-size
thread safe LRU cache. It is based on the cache in Groupcache.

Documentation
=============

Full docs are available on [Godoc](http://godoc.org/github.com/hashicorp/golang-lru)

Example
=======

Using the LRU is very simple:

```go
l, _ := New(128)
for i := 0; i < 256; i++ {
l.Add(i, nil)
}
if l.Len() != 128 {
panic(fmt.Sprintf("bad len: %v", l.Len()))
}
```
Please upgrade to github.com/hashicorp/golang-lru/v2 for all new code as v1 will
not be updated anymore. The v2 version supports generics and is faster; old code
can specify a specific tag, e.g. github.com/hashicorp/golang-lru/v1.0.2 for
backwards compatibility.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ func (c *ARCCache) Add(key, value interface{}) {

// Add to the recently seen list
c.t1.Add(key, value)
return
}

// replace is used to adaptively evict from either T1 or T2
Expand Down
119 changes: 100 additions & 19 deletions third_party/VENDOR-LICENSE/github.com/hashicorp/golang-lru/lru.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,17 @@ import (
"github.com/hashicorp/golang-lru/simplelru"
)

const (
// DefaultEvictedBufferSize defines the default buffer size to store evicted key/val
DefaultEvictedBufferSize = 16
)

// Cache is a thread-safe fixed size LRU cache.
type Cache struct {
lru simplelru.LRUCache
lock sync.RWMutex
lru *simplelru.LRU
evictedKeys, evictedVals []interface{}
onEvictedCB func(k, v interface{})
lock sync.RWMutex
}

// New creates an LRU of the given size.
Expand All @@ -19,30 +26,63 @@ func New(size int) (*Cache, error) {

// NewWithEvict constructs a fixed size cache with the given eviction
// callback.
func NewWithEvict(size int, onEvicted func(key interface{}, value interface{})) (*Cache, error) {
lru, err := simplelru.NewLRU(size, simplelru.EvictCallback(onEvicted))
if err != nil {
return nil, err
func NewWithEvict(size int, onEvicted func(key, value interface{})) (c *Cache, err error) {
// create a cache with default settings
c = &Cache{
onEvictedCB: onEvicted,
}
c := &Cache{
lru: lru,
if onEvicted != nil {
c.initEvictBuffers()
onEvicted = c.onEvicted
}
return c, nil
c.lru, err = simplelru.NewLRU(size, onEvicted)
return
}

func (c *Cache) initEvictBuffers() {
c.evictedKeys = make([]interface{}, 0, DefaultEvictedBufferSize)
c.evictedVals = make([]interface{}, 0, DefaultEvictedBufferSize)
}

// onEvicted save evicted key/val and sent in externally registered callback
// outside of critical section
func (c *Cache) onEvicted(k, v interface{}) {
c.evictedKeys = append(c.evictedKeys, k)
c.evictedVals = append(c.evictedVals, v)
}

// Purge is used to completely clear the cache.
func (c *Cache) Purge() {
var ks, vs []interface{}
c.lock.Lock()
c.lru.Purge()
if c.onEvictedCB != nil && len(c.evictedKeys) > 0 {
ks, vs = c.evictedKeys, c.evictedVals
c.initEvictBuffers()
}
c.lock.Unlock()
// invoke callback outside of critical section
if c.onEvictedCB != nil {
for i := 0; i < len(ks); i++ {
c.onEvictedCB(ks[i], vs[i])
}
}
}

// Add adds a value to the cache. Returns true if an eviction occurred.
func (c *Cache) Add(key, value interface{}) (evicted bool) {
var k, v interface{}
c.lock.Lock()
evicted = c.lru.Add(key, value)
if c.onEvictedCB != nil && evicted {
k, v = c.evictedKeys[0], c.evictedVals[0]
c.evictedKeys, c.evictedVals = c.evictedKeys[:0], c.evictedVals[:0]
}
c.lock.Unlock()
return evicted
if c.onEvictedCB != nil && evicted {
c.onEvictedCB(k, v)
}
return
}

// Get looks up a key's value from the cache.
Expand Down Expand Up @@ -75,61 +115,102 @@ func (c *Cache) Peek(key interface{}) (value interface{}, ok bool) {
// recent-ness or deleting it for being stale, and if not, adds the value.
// Returns whether found and whether an eviction occurred.
func (c *Cache) ContainsOrAdd(key, value interface{}) (ok, evicted bool) {
var k, v interface{}
c.lock.Lock()
defer c.lock.Unlock()

if c.lru.Contains(key) {
c.lock.Unlock()
return true, false
}
evicted = c.lru.Add(key, value)
if c.onEvictedCB != nil && evicted {
k, v = c.evictedKeys[0], c.evictedVals[0]
c.evictedKeys, c.evictedVals = c.evictedKeys[:0], c.evictedVals[:0]
}
c.lock.Unlock()
if c.onEvictedCB != nil && evicted {
c.onEvictedCB(k, v)
}
return false, evicted
}

// PeekOrAdd checks if a key is in the cache without updating the
// recent-ness or deleting it for being stale, and if not, adds the value.
// Returns whether found and whether an eviction occurred.
func (c *Cache) PeekOrAdd(key, value interface{}) (previous interface{}, ok, evicted bool) {
var k, v interface{}
c.lock.Lock()
defer c.lock.Unlock()

previous, ok = c.lru.Peek(key)
if ok {
c.lock.Unlock()
return previous, true, false
}

evicted = c.lru.Add(key, value)
if c.onEvictedCB != nil && evicted {
k, v = c.evictedKeys[0], c.evictedVals[0]
c.evictedKeys, c.evictedVals = c.evictedKeys[:0], c.evictedVals[:0]
}
c.lock.Unlock()
if c.onEvictedCB != nil && evicted {
c.onEvictedCB(k, v)
}
return nil, false, evicted
}

// Remove removes the provided key from the cache.
func (c *Cache) Remove(key interface{}) (present bool) {
var k, v interface{}
c.lock.Lock()
present = c.lru.Remove(key)
if c.onEvictedCB != nil && present {
k, v = c.evictedKeys[0], c.evictedVals[0]
c.evictedKeys, c.evictedVals = c.evictedKeys[:0], c.evictedVals[:0]
}
c.lock.Unlock()
if c.onEvictedCB != nil && present {
c.onEvictedCB(k, v)
}
return
}

// Resize changes the cache size.
func (c *Cache) Resize(size int) (evicted int) {
var ks, vs []interface{}
c.lock.Lock()
evicted = c.lru.Resize(size)
if c.onEvictedCB != nil && evicted > 0 {
ks, vs = c.evictedKeys, c.evictedVals
c.initEvictBuffers()
}
c.lock.Unlock()
if c.onEvictedCB != nil && evicted > 0 {
for i := 0; i < len(ks); i++ {
c.onEvictedCB(ks[i], vs[i])
}
}
return evicted
}

// RemoveOldest removes the oldest item from the cache.
func (c *Cache) RemoveOldest() (key interface{}, value interface{}, ok bool) {
func (c *Cache) RemoveOldest() (key, value interface{}, ok bool) {
var k, v interface{}
c.lock.Lock()
key, value, ok = c.lru.RemoveOldest()
if c.onEvictedCB != nil && ok {
k, v = c.evictedKeys[0], c.evictedVals[0]
c.evictedKeys, c.evictedVals = c.evictedKeys[:0], c.evictedVals[:0]
}
c.lock.Unlock()
if c.onEvictedCB != nil && ok {
c.onEvictedCB(k, v)
}
return
}

// GetOldest returns the oldest entry
func (c *Cache) GetOldest() (key interface{}, value interface{}, ok bool) {
c.lock.Lock()
func (c *Cache) GetOldest() (key, value interface{}, ok bool) {
c.lock.RLock()
key, value, ok = c.lru.GetOldest()
c.lock.Unlock()
c.lock.RUnlock()
return
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type entry struct {
// NewLRU constructs an LRU of the given size
func NewLRU(size int, onEvict EvictCallback) (*LRU, error) {
if size <= 0 {
return nil, errors.New("Must provide a positive size")
return nil, errors.New("must provide a positive size")
}
c := &LRU{
size: size,
Expand Down Expand Up @@ -109,7 +109,7 @@ func (c *LRU) Remove(key interface{}) (present bool) {
}

// RemoveOldest removes the oldest item from the cache.
func (c *LRU) RemoveOldest() (key interface{}, value interface{}, ok bool) {
func (c *LRU) RemoveOldest() (key, value interface{}, ok bool) {
ent := c.evictList.Back()
if ent != nil {
c.removeElement(ent)
Expand All @@ -120,7 +120,7 @@ func (c *LRU) RemoveOldest() (key interface{}, value interface{}, ok bool) {
}

// GetOldest returns the oldest entry
func (c *LRU) GetOldest() (key interface{}, value interface{}, ok bool) {
func (c *LRU) GetOldest() (key, value interface{}, ok bool) {
ent := c.evictList.Back()
if ent != nil {
kv := ent.Value.(*entry)
Expand Down
Loading

0 comments on commit 53001e6

Please sign in to comment.