Skip to content
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

build(deps): bump the go-dependencies group across 1 directory with 6 updates #1901

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 23, 2024

Bumps the go-dependencies group with 3 updates in the / directory: github.com/cilium/ebpf, github.com/klauspost/cpuid/v2 and github.com/prometheus/prometheus.

Updates github.com/cilium/ebpf from 0.16.0 to 0.17.1

Release notes

Sourced from github.com/cilium/ebpf's releases.

Hotfix: don't retry endlessly on verifier errors on kernels <6.4

During the prior removal of ProgramOptions.LogSize in v0.16, the tests weren't updated to exercise the retry logic. With the last-minute addition of ProgramOptions.LogSizeStart, a bug was introduced that would cause program loads to retry indefinitely without ever growing the buffer in case of a verifier error on kernels before 6.4. This is now fixed, and the tests were updated to exercise the retry logic.

Global Variables, Decl Tags, and package pin

Note: the hotfix release 0.17.1 is out. Users are highly encouraged to upgrade.

As we close the door on the year 2024, we're also wrapping up the ebpf-go v0.17 development cycle. This release represents a large body of work and is our largest feature release since BTF.

Users are, as always, highly encouraged to upgrade, and we're looking forward to hearing your feedback on the new Global Variables API. We've been putting this interface trough its paces internally, along with a few eager community members, and we're ready to let the wider community make use of it.

This release also marks the end of our Go 1.21 support; Go 1.22 is required going forward.

Breaking Changes

Before we get to the fun stuff, we need to call out a few breaking changes:

  • Global variables with a static qualifier can no longer be rewritten using CollectionSpec.RewriteConstants()! See the section on global variables under major features below.

  • program: remove LogSize and VerifierError.Truncated by @​lmb in cilium/ebpf#1526

  • prog: add ProgramOptions.LogSizeStart to obtain full log after verifier bug by @​ti-mo in cilium/ebpf#1630

    The ProgramOptions.LogSize field was deprecated and a no-op since 0.16 and has now been removed completely. In its place, a new field was added to obtain full verifier logs when the verifier hits an internal bug. The ProgramOptions.LogSizeStart field controls the starting size of the log buffer. Use this if you have a good understanding of the log size you're expecting, or if you're trying to pull out the full log when the verifier hits an internal bug. The error string now also contains some hints about what happened and how to handle this situation.

  • map: remove MapSpec.Freeze field by @​ti-mo in cilium/ebpf#1558

  • elf_reader: don't use BPF_F_RDONLY_PROG flag to trigger map freezing by @​ti-mo in cilium/ebpf#1568

    The Freeze field was ambiguous from the start, and has been a source of subtle bugs over the years. Automatic map freezing is now done based solely on map name (.(ro)data prefix). If you were manually setting this flag, consider using a conventional map name instead.

  • info: expose ksym info and func info by ProgramInfo by @​Asphaltt in cilium/ebpf#1576

  • info: expose more prog jited info by @​Asphaltt in cilium/ebpf#1598

    Some ext_info types in package btf were redefined to enable pulling raw func and line infos out of Program.Info(). These were all types without methods and all unexported fields, but calling them out regardless in case someone's doing unintended advanced things with BTF.

  • kallsyms: change Modules caching strategy, cache address lookups by @​ti-mo in cilium/ebpf#1590

    Users attaching bpf programs to kernel symbols should see a marked decrease in allocations made in the library during program creation in the general case. Only used entries are now cached, making kallsyms lookups on subsequent program loads free. In the pathological case (new kernel symbols on every load), scanning is repeated, resulting in more CPU time being used instead of holding on to all kallsyms symbols indefinitely. ProgramSpec.KernelModule() was unexported until further notice.

    Also, bpf2go users should now be able to generate Go bindings as unprivileged users once again. Oops!

Major Features

Easy global variables: introducing ebpf.VariableSpec and ebpf.Variable

This has been a frequent ask in the community for years, so we finally bit the bullet and committed to an API to interact with global bpf variables through CollectionSpec.Variables and CollectionSpec.Variables. We've published a small guide over on ebpf-go.dev/concepts/global-variables that details how to use them, so we're not going to reiterate here.

... (truncated)

Commits
  • e439d37 prog: fix shadowing log size variable in verifier log retry loop
  • 228bb4e examples: tcx: use Variable API
  • 580ff21 bpf2go: generate Go types used in global variables
  • 1e8f079 bpf2go: generate assignment structs for Variables and VariableSpecs
  • c37b7af bpf2go: test: remove unused typesEqualComparer function
  • 97cfce5 map: automatically set CPUMap MaxEntries based on possible CPUs
  • e8b05c5 prog: add ProgramOptions.LogSizeStart to obtain full log after verifier bug
  • f283106 internal: add Between function for clamping a value between min and max
  • 6546014 README.md: add pin package to the overview
  • 60405bb examples: annotate ringbuf and perf event arrays with value type information
  • Additional commits viewable in compare view

Updates github.com/klauspost/cpuid/v2 from 2.2.8 to 2.2.9

Release notes

Sourced from github.com/klauspost/cpuid/v2's releases.

v2.2.9

What's Changed

New Contributors

Full Changelog: klauspost/cpuid@v2.2.8...v2.2.9

Commits

Updates github.com/prometheus/prometheus from 0.54.1 to 0.300.1

Commits
  • 1f56e84 Merge pull request #15478 from jan--f/prep-release-3.0.1
  • 67d4be7 prepare release 3.0.1
  • c5c222e Merge pull request #15399 from prometheus/labels-utf8-fix
  • 12577e3 Add support for values unescaping on /v1/label/:name/values endpoint
  • 8867571 Add support for utf8 names on /v1/label/:name/values endpoint
  • fee61fb Merge pull request #15434 from tjhop/fix/query-logger-compounding-keys
  • 3e24e84 fix!: stop unbounded memory usage from query log
  • bafb4d6 Merge pull request #15431 from prometheus/beorn7/promql2
  • 4b573e0 promql: Fix subqueries to be really left-open
  • c5d009d Merge pull request #15393 from jan--f/prep-release-3.0.0
  • Additional commits viewable in compare view

Updates k8s.io/api from 0.29.9 to 0.31.1

Commits
  • eb5129b Update dependencies to v0.31.1 tag
  • 46f6230 Merge pull request #126761thockin/automated-cherry-pick-of-#126749
  • 1857695 fix v1a3 ResourceSliceList metadata field name
  • 382a091 update codegen and openapi
  • 1073c1e regen clients
  • 6f8e3bd Review feedback
  • 437d97a Coordinated Leader Election Alpha API
  • 63e21d3 Merge pull request #126243 from SergeyKanzhelev/devicePluginFailures
  • ca07d5a generated files
  • 7192863 add AllocatedResourcesStatus field to ContainerStatus
  • Additional commits viewable in compare view

Updates k8s.io/apimachinery from 0.29.9 to 0.31.1

Commits
  • a8f449e Falls back to SPDY for gorilla/websocket https proxy error
  • 62791ec Merge pull request #125571 from liggitt/filter-auth-02-sar
  • cc2ba35 add field and label selectors to authorization attributes
  • ce76a8f generate
  • 35052c5 add subjectaccessreview field and label selectors
  • ab06869 Merge pull request #126105 from benluddy/cbor-framer
  • 429f4e4 Implement runtime.Framer for CBOR Sequences.
  • d7e1c53 Merge pull request #126018 from aroradaman/bump-k8s-utils
  • 07cb122 Merge pull request #125748 from benluddy/cbor-custom-marshalers
  • dd17456 bump k8s.io/utils
  • Additional commits viewable in compare view

Updates k8s.io/client-go from 0.29.9 to 0.31.1

Commits
  • c5196eb Update dependencies to v0.31.1 tag
  • 5e3e8ea informers: add comment that Start does not block
  • f71a5cc Call non-blocking informerFactory.Start synchronously to avoid races
  • 4536e5a Merge pull request #124012 from Jefftree/le-controller
  • 93c6a5b Merge pull request #126353 from liggitt/fix-vendor
  • 6a9911a revendor dependencies
  • fe54892 Merge pull request #126243 from SergeyKanzhelev/devicePluginFailures
  • 825f52e Change PingTime to be persistent
  • f45c451 fix ordering issue in candidates
  • 18dd587 feedback: leasecandidate clients
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

… updates

Bumps the go-dependencies group with 3 updates in the / directory: [github.com/cilium/ebpf](https://github.com/cilium/ebpf), [github.com/klauspost/cpuid/v2](https://github.com/klauspost/cpuid) and [github.com/prometheus/prometheus](https://github.com/prometheus/prometheus).


Updates `github.com/cilium/ebpf` from 0.16.0 to 0.17.1
- [Release notes](https://github.com/cilium/ebpf/releases)
- [Commits](cilium/ebpf@v0.16.0...v0.17.1)

Updates `github.com/klauspost/cpuid/v2` from 2.2.8 to 2.2.9
- [Release notes](https://github.com/klauspost/cpuid/releases)
- [Changelog](https://github.com/klauspost/cpuid/blob/master/.goreleaser.yml)
- [Commits](klauspost/cpuid@v2.2.8...v2.2.9)

Updates `github.com/prometheus/prometheus` from 0.54.1 to 0.300.1
- [Release notes](https://github.com/prometheus/prometheus/releases)
- [Changelog](https://github.com/prometheus/prometheus/blob/main/CHANGELOG.md)
- [Commits](prometheus/prometheus@v0.54.1...v0.300.1)

Updates `k8s.io/api` from 0.29.9 to 0.31.1
- [Commits](kubernetes/api@v0.29.9...v0.31.1)

Updates `k8s.io/apimachinery` from 0.29.9 to 0.31.1
- [Commits](kubernetes/apimachinery@v0.29.9...v0.31.1)

Updates `k8s.io/client-go` from 0.29.9 to 0.31.1
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md)
- [Commits](kubernetes/client-go@v0.29.9...v0.31.1)

---
updated-dependencies:
- dependency-name: github.com/cilium/ebpf
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: github.com/klauspost/cpuid/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-dependencies
- dependency-name: github.com/prometheus/prometheus
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: k8s.io/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: k8s.io/apimachinery
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: k8s.io/client-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants