mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-22 01:17:16 +00:00
This commit bumps the k8s.io/kubernetes dependencies and all other
kubernetes deps to 1.23.1. There have been two breakages with the
upgrade:
- The `apply.NewApplyOptions` in the kubectl libraries [has been
removed / refactored](8165f83007 (diff-2672399cb3d708d5fed859b0a74387522408ab868b1c2457587b39cabe2b75ce))
and split up into `ApplyOptions` and `ApplyFlags`. This commit
populates the `ApplyOptions` directly, as going through
the `ApplyFlags` and then calling `ToOptions()` is almost impossible
due to its arguments.
- The `github.com/go-logr/logr` package has had some breaking changes
between the previous alpha release `v.0.4.0` and its stable release
`v1.0.0`. The generated mock has been updated to use `logr.LogSink`
instead (`logr.Logger` is not an interface anymore), and the test code
has been updated accordingly.
- Go has been updated to 1.17.6, as `sigs.k8s.io/json` depends on it.
Signed-off-by: Ramon Rüttimann <ramon@nine.ch>
apply reviewer notes: bump golang version; add missing ApplyOptions parameters
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
3 lines
163 B
Go
3 lines
163 B
Go
package tracer_testing
|
|
|
|
//go:generate go run github.com/golang/mock/mockgen -destination "logger.go" -package "tracer_testing" "github.com/go-logr/logr" "LogSink"
|