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

chore(deps): update go updates #78

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

Conversation

redhat-renovate-bot
Copy link
Collaborator

@redhat-renovate-bot redhat-renovate-bot commented Oct 14, 2024

This PR contains the following updates:

Package Type Update Change
github.com/cespare/xxhash/v2 indirect minor v2.2.0 -> v2.3.0
github.com/checkpoint-restore/go-criu/v5 indirect major v5.3.0 -> v7.2.0
github.com/cilium/ebpf indirect minor v0.9.1 -> v0.17.1
github.com/containerd/console indirect patch v1.0.3 -> v1.0.4
github.com/containerd/containerd/api indirect minor v1.7.19 -> v1.8.0
github.com/containerd/errdefs indirect major v0.1.0 -> v1.0.0
github.com/containerd/ttrpc indirect patch v1.2.5 -> v1.2.7
github.com/cyphar/filepath-securejoin indirect minor v0.2.4 -> v0.3.6
github.com/emicklei/go-restful/v3 indirect minor v3.11.0 -> v3.12.1
github.com/euank/go-kmsg-parser indirect major v2.0.0+incompatible -> v3.0.0
github.com/evanphx/json-patch/v5 indirect minor v5.6.0 -> v5.9.0
github.com/go-kit/kit require minor v0.10.0 -> v0.13.0
github.com/go-logfmt/logfmt indirect minor v0.5.1 -> v0.6.0
github.com/go-logr/logr indirect patch v1.4.1 -> v1.4.2
github.com/go-ole/go-ole indirect minor v1.2.6 -> v1.3.0
github.com/go-openapi/jsonpointer indirect minor v0.19.6 -> v0.21.0
github.com/go-openapi/jsonreference indirect minor v0.20.2 -> v0.21.0
github.com/go-openapi/swag indirect minor v0.22.3 -> v0.23.0
github.com/godbus/dbus/v5 indirect minor v5.0.6 -> v5.1.0
github.com/golang/glog require patch v1.2.0 -> v1.2.3
github.com/google/cadvisor require minor v0.50.0 -> v0.51.0
github.com/google/gnostic-models indirect patch v0.6.8 -> v0.6.9
github.com/google/pprof indirect digest 4bb14d4 -> 40e02aa
github.com/imdario/mergo indirect major v0.3.15 -> v1.0.1
github.com/machadovilaca/operator-observability require patch v0.0.9 -> v0.0.24
github.com/mailru/easyjson indirect minor v0.7.7 -> v0.9.0
github.com/matttproud/golang_protobuf_extensions indirect major v1.0.4 -> v2.0.0
github.com/mhenriks/library-go replace digest 63d38b5 -> 9ace650
github.com/mistifyio/go-zfs indirect digest f784269 -> 9b43ea0
github.com/moby/spdystream indirect minor v0.2.0 -> v0.5.0
github.com/moby/sys/mountinfo indirect patch v0.7.1 -> v0.7.2
github.com/onsi/ginkgo/v2 require minor v2.11.0 -> v2.22.2
github.com/onsi/gomega require minor v1.27.10 -> v1.36.2
github.com/opencontainers/runc require minor v1.1.13 -> v1.2.3
github.com/opencontainers/selinux indirect minor v1.10.0 -> v1.11.1
github.com/openshift/api replace digest ce21e3f -> d6d8306
github.com/openshift/api require major v0.0.0 -> v3.9.0+incompatible
github.com/openshift/client-go replace digest 3f1513d -> 35abaf5
github.com/operator-framework/operator-lifecycle-manager replace minor v0.0.0-20190128024246-5eb7ae5bdb7a -> v0.29.0
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring require minor v0.68.0 -> v0.79.2
github.com/prometheus/client_golang indirect minor v1.16.0 -> v1.20.5
github.com/prometheus/client_model indirect minor v0.4.0 -> v0.6.1
github.com/prometheus/common indirect minor v0.44.0 -> v0.61.0
github.com/prometheus/procfs indirect minor v0.11.0 -> v0.15.1
github.com/stretchr/testify require minor v1.9.0 -> v1.10.0
github.com/vishvananda/netlink indirect minor v1.1.0 -> v1.3.0
github.com/vishvananda/netns indirect patch v0.0.4 -> v0.0.5
golang.org/x/mod indirect minor v0.17.0 -> v0.22.0
golang.org/x/net indirect minor v0.26.0 -> v0.33.0
golang.org/x/oauth2 indirect minor v0.18.0 -> v0.24.0
golang.org/x/sys indirect minor v0.21.0 -> v0.28.0
golang.org/x/term indirect minor v0.21.0 -> v0.27.0
golang.org/x/text indirect minor v0.16.0 -> v0.21.0
golang.org/x/time indirect minor v0.3.0 -> v0.8.0
golang.org/x/tools indirect minor v0.21.1-0.20240508182429-e35e4ccd0d2d -> v0.28.0
google.golang.org/appengine indirect major v1.6.8 -> v2.0.6
google.golang.org/genproto/googleapis/rpc indirect digest fc5f0ca -> 6982302
google.golang.org/grpc require minor v1.64.1 -> v1.69.2
google.golang.org/protobuf indirect minor v1.34.1 -> v1.36.1
gopkg.in/yaml.v2 indirect major v2.4.0 -> v3.0.1
k8s.io/api replace minor v0.28.12 -> v0.32.0
k8s.io/api require minor v0.28.12 -> v0.32.0
k8s.io/apiextensions-apiserver replace minor v0.28.12 -> v0.32.0
k8s.io/apiextensions-apiserver indirect minor v0.28.3 -> v0.32.0
k8s.io/apimachinery require minor v0.28.12 -> v0.32.0
k8s.io/apiserver replace minor v0.28.12 -> v0.32.0
k8s.io/apiserver indirect minor v0.28.12 -> v0.32.0
k8s.io/cli-runtime replace minor v0.28.12 -> v0.32.0
k8s.io/client-go replace minor v0.28.12 -> v0.32.0
k8s.io/client-go require major v8.0.0+incompatible -> v11.0.0+incompatible
k8s.io/cloud-provider replace minor v0.28.12 -> v0.32.0
k8s.io/cluster-bootstrap replace minor v0.28.12 -> v0.32.0
k8s.io/code-generator require minor v0.28.12 -> v0.32.0
k8s.io/component-base replace minor v0.28.12 -> v0.32.0
k8s.io/component-base indirect minor v0.28.12 -> v0.32.0
k8s.io/component-helpers replace minor v0.28.12 -> v0.32.0
k8s.io/component-helpers require minor v0.28.12 -> v0.32.0
k8s.io/controller-manager replace minor v0.28.12 -> v0.32.0
k8s.io/cri-api replace minor v0.28.12 -> v0.32.0
k8s.io/cri-api require minor v0.28.12 -> v0.32.0
k8s.io/csi-translation-lib replace minor v0.28.12 -> v0.32.0
k8s.io/dynamic-resource-allocation replace minor v0.28.12 -> v0.32.0
k8s.io/gengo indirect digest c0856e2 -> 2b36238
k8s.io/klog replace major v0.4.0 -> v2.130.1
k8s.io/klog/v2 require minor v2.100.1 -> v2.130.1
k8s.io/kms replace minor v0.28.12 -> v0.32.0
k8s.io/kube-aggregator replace minor v0.28.12 -> v0.32.0
k8s.io/kube-controller-manager replace minor v0.28.12 -> v0.32.0
k8s.io/kube-openapi indirect digest 2695361 -> 2c72e55
k8s.io/kube-proxy replace minor v0.28.12 -> v0.32.0
k8s.io/kube-scheduler replace minor v0.28.12 -> v0.32.0
k8s.io/kubectl replace minor v0.28.12 -> v0.32.0
k8s.io/kubelet replace minor v0.28.12 -> v0.32.0
k8s.io/kubelet require minor v0.28.12 -> v0.32.0
k8s.io/kubernetes require minor v1.28.12 -> v1.32.0
k8s.io/legacy-cloud-providers replace minor v0.28.12 -> v0.30.8
k8s.io/metrics replace minor v0.28.12 -> v0.32.0
k8s.io/mount-utils replace minor v0.28.12 -> v0.32.0
k8s.io/pod-security-admission replace minor v0.28.12 -> v0.32.0
k8s.io/sample-apiserver replace minor v0.28.12 -> v0.32.0
k8s.io/sample-cli-plugin replace minor v0.28.12 -> v0.32.0
k8s.io/sample-controller replace minor v0.28.12 -> v0.32.0
k8s.io/utils require digest 3b25d92 -> 24370be
kubevirt.io/api require minor v1.2.0 -> v1.4.0
kubevirt.io/application-aware-quota require minor v1.2.3 -> v1.3.0
kubevirt.io/containerized-data-importer-api indirect minor v1.57.0-alpha1 -> v1.61.0
kubevirt.io/controller-lifecycle-operator-sdk require patch v0.2.6 -> v0.2.7
kubevirt.io/controller-lifecycle-operator-sdk/api replace minor v0.0.0-20220329064328-f3cc58c6ed90 -> v0.2.4
kubevirt.io/controller-lifecycle-operator-sdk/api require minor v0.0.0-20220329064328-f3cc58c6ed90 -> v0.2.4
sigs.k8s.io/controller-runtime require minor v0.16.3 -> v0.19.3
sigs.k8s.io/json indirect digest bc3834c -> cfa47c3
sigs.k8s.io/structured-merge-diff/v4 indirect minor v4.3.0 -> v4.5.0
sigs.k8s.io/yaml indirect minor v1.3.0 -> v1.4.0

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

cespare/xxhash (github.com/cespare/xxhash/v2)

v2.3.0

Compare Source

checkpoint-restore/go-criu (github.com/checkpoint-restore/go-criu/v5)

v7.2.0

Compare Source

What's Changed

New Contributors

Full Changelog: checkpoint-restore/go-criu@v7.1.0...v7.2.0

v7.1.0

Compare Source

What's Changed

Full Changelog: checkpoint-restore/go-criu@v7.0.0...v7.1.0

v7.0.0

Compare Source

What's Changed

New Contributors

Full Changelog: checkpoint-restore/go-criu@v6.3.0...v7.0.0

v6.3.0

Compare Source

What's Changed

Full Changelog: checkpoint-restore/go-criu@v6.2.0...v6.3.0

v6.2.0

Compare Source

What's Changed

Full Changelog: checkpoint-restore/go-criu@v6.1.0...v6.2.0

v6.1.0

Compare Source

What's Changed

Full Changelog: checkpoint-restore/go-criu@v6.0.0...v6.1.0

v6.0.0

Compare Source

What's Changed

Full Changelog: checkpoint-restore/go-criu@v5.3.0...v6.0.0

cilium/ebpf (github.com/cilium/ebpf)

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

Compare Source

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.

v0.17.0: Global Variables, Decl Tags, and package pin

Compare Source

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 https://github.com/cilium/ebpf/pull/1526

  • prog: add ProgramOptions.LogSizeStart to obtain full log after verifier bug by @​ti-mo in https://github.com/cilium/ebpf/pull/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 https://github.com/cilium/ebpf/pull/1558

  • elf_reader: don't use BPF_F_RDONLY_PROG flag to trigger map freezing by @​ti-mo in https://github.com/cilium/ebpf/pull/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 https://github.com/cilium/ebpf/pull/1576

  • info: expose more prog jited info by @​Asphaltt in https://github.com/cilium/ebpf/pull/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 https://github.com/cilium/ebpf/pull/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.

See the documentation on the use of the static qualifier! These are no longer considered global variables, and can't be modified at runtime.

bpf2go now also generates objects to be used with CollectionSpec.Assign and .LoadAndAssign(), and also emits Go type declarations for C types used as bpf C variables. Our test coverage was somewhat lacking for the latter, please drop something on the issue tracker if you're noticing surprising bpf2go output.

Note that it's currently not possible to manually create a VariableSpec and wire it up to a CollectionSpec, so if you were previously relying on e.g. manually assembling a CollectionSpec and using RewriteConstants() in tests, this will no longer work. This may land as the API crystallizes and we settle on a good mechanism to enable this. Please reach out on the Cilium Slack if you'd like to see this happen.

Tags!

As you'll notice, the btf.Struct, btf.Union, btf.Member, btf.Typedef, btf.Func and btf.Var have gained a new field: Tags! Set one or more tags on these objects from bpf C using __attribute__((btf_decl_tag("mytag"))) and
you'll find Tags being populated in Go.

There's also the btf.Func.ParamTags field that holds tags declared on individual function parameters. These are part of the Func since they appear only in the function prototype, not in the parameter type itself, since those can appear in many different types. (it does get confusing!)

Also, an honorable mention to btf.TypeTag, which has now been exported. This allows tagging pointers with an arbitrary string value and is mainly used by the Linux verifier to tag kernel pointers, see the __kptr and __kptr_ref macros in Linux' bpf_helpers.h.

Pins!

We've added a new root-level package pin, which currently features the Load() and WalkDir() functions. Since all LoadPinned* functions in the library now check for the underlying object's type, we've repurposed the machinery to allow loading an opaque pin and returning a Go object of the right type.WalkDir does what it says on the tin, it walks bpffs directories and invokes a callback that received the loaded object. Super convenient!

Minor Features

We've also added a handful of minor features during this release:

Other Changes

Last but not least, there's bugfixes, CI changes and some internal refactoring that happened to eventually make ebpf-go work with ebpf-for-windows. See individual PRs for more context. Stay tuned!

New Contributors

Full Changelog: cilium/ebpf@v0.16.0...v0.17.0

v0.16.0

Compare Source

program: automatic verifier log sizing and ProgramInfo.RecursionMisses()

For the longest time users had to specify ProgramOptions.LogSize to get the
full verifier log for large programs. The library now automatically figures out
the correct buffer size to use and the field is deprecated. It will be removed
in the next version.

ProgramInfo now exposes how often a program didn't execute due to recursion
limits via RecursionMisses.

perf, ringbuf: better control over wakeups, Flush()

There is a trade off between how fast samples are processed and how much CPU is
used. Reading samples as quickly as possible uses more CPU, reading in batches
is cheaper.

It's now possible to configure a "maximum time before a wakeup" by using
Reader.SetDeadline(). This now guarantees that any pending samples are read
at the end of the deadline, even if the Watermark wasn't reached.

It's also possible to manually flush the buffer using Flush().


Configuration

📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@redhat-renovate-bot
Copy link
Collaborator Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: go.sum
Command failed: go get -d -t ./...
go: errors parsing go.mod:
go.mod:69:2: require github.com/mistifyio/go-zfs: version "v1.0.1-0.20230523021915-9b43ea0d2c5e" invalid: go.mod has post-v1 module path "github.com/mistifyio/go-zfs/v3" at revision 9b43ea0d2c5e
go.mod:153:2: replace k8s.io/klog: version "v2.130.1" invalid: should be v0 or v1, not v2

@redhat-renovate-bot redhat-renovate-bot force-pushed the renovate/go-updates branch 11 times, most recently from 52f5a3d to 4f2dacb Compare October 21, 2024 17:14
@redhat-renovate-bot redhat-renovate-bot force-pushed the renovate/go-updates branch 14 times, most recently from f7e5258 to 76c8d33 Compare October 28, 2024 16:17
@redhat-renovate-bot redhat-renovate-bot force-pushed the renovate/go-updates branch 4 times, most recently from cfe59db to e14d165 Compare October 30, 2024 16:15
@redhat-renovate-bot redhat-renovate-bot force-pushed the renovate/go-updates branch 21 times, most recently from 4882e16 to 168da61 Compare December 20, 2024 02:16
@redhat-renovate-bot redhat-renovate-bot force-pushed the renovate/go-updates branch 4 times, most recently from 2160014 to caf2920 Compare December 24, 2024 11:18
@redhat-renovate-bot redhat-renovate-bot force-pushed the renovate/go-updates branch 3 times, most recently from efe4830 to c3b7761 Compare December 30, 2024 19:18
Signed-off-by: redhat-renovate-bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant