-
Notifications
You must be signed in to change notification settings - Fork 334
[NET-9097, NET-8174] Upgrade controller-runtime #3935
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
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
14d6ec7
Consume controller-runtime v0.16.3
nathancoleman 99a8edb
Reconcile breaking changes in controller-runtime
nathancoleman 7170bfd
Fix linter errors
nathancoleman ea88604
gofmt
nathancoleman 1abbe8e
Update controller tests to handle new fake client requirements
nathancoleman 0624578
Update test assertion to handle changes in controller-runtime
nathancoleman ee90dcf
Restore incorrectly-removed flags
nathancoleman 917d210
Use a proper delete on the fake client since DeletionTimestamp is imm…
nathancoleman 86139ca
Update enterprise tests to specify status subresources
nathancoleman 97b1c4b
Update controller-runtime dependency for acceptance tests
nathancoleman 540d3f6
Explicitly inject decoder into webhooks
nathancoleman 69c0d87
Appease the linter
nathancoleman b456ce6
Use SetupWithManager pattern from controllers for webhook setup
nathancoleman 230843f
Consume consistent version of k8s.io/client-go everywhere
nathancoleman 909cbab
Upgrade related dependencies for CLI, including helm/v3
nathancoleman 10ddd55
Consume latest release of helm/v3
nathancoleman e7ec36e
changelog
roncodingenthusiast 03d1d26
Inline function calls for testing
nathancoleman 095b60d
Consume controller-runtime v0.16.5
nathancoleman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| ```release-note:security | ||
| Upgrade `helm/v3` to 3.14.4. This resolves the following security vulnerabilities: | ||
| [CVE-2024-25620](https://osv.dev/vulnerability/CVE-2024-25620) | ||
| [CVE-2024-26147](https://osv.dev/vulnerability/CVE-2024-26147) | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,14 @@ | ||
| module github.com/hashicorp/consul-k8s/cli | ||
|
|
||
| go 1.20 | ||
| go 1.21 | ||
|
|
||
| toolchain go1.21.4 | ||
|
|
||
| require ( | ||
| github.com/bgentry/speakeasy v0.1.0 | ||
| github.com/cenkalti/backoff v2.2.1+incompatible | ||
| github.com/fatih/color v1.16.0 | ||
| github.com/google/go-cmp v0.5.9 | ||
| github.com/google/go-cmp v0.6.0 | ||
| github.com/hashicorp/consul-k8s/charts v0.0.0-00010101000000-000000000000 | ||
| github.com/hashicorp/consul/troubleshoot v0.5.2 | ||
| github.com/hashicorp/go-hclog v1.5.0 | ||
|
|
@@ -18,25 +20,25 @@ require ( | |
| github.com/posener/complete v1.2.3 | ||
| github.com/stretchr/testify v1.8.4 | ||
| golang.org/x/text v0.14.0 | ||
| helm.sh/helm/v3 v3.11.3 | ||
| k8s.io/api v0.26.12 | ||
| k8s.io/apiextensions-apiserver v0.26.10 | ||
| k8s.io/apimachinery v0.26.12 | ||
| k8s.io/cli-runtime v0.26.10 | ||
| k8s.io/client-go v0.26.12 | ||
| k8s.io/utils v0.0.0-20230220204549-a5ecb0141aa5 | ||
| helm.sh/helm/v3 v3.14.4 | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the |
||
| k8s.io/api v0.29.0 | ||
| k8s.io/apiextensions-apiserver v0.29.0 | ||
| k8s.io/apimachinery v0.29.0 | ||
| k8s.io/cli-runtime v0.29.0 | ||
| k8s.io/client-go v0.29.0 | ||
|
nathancoleman marked this conversation as resolved.
|
||
| k8s.io/utils v0.0.0-20230726121419-3b25d923346b | ||
| sigs.k8s.io/yaml v1.3.0 | ||
| ) | ||
|
|
||
| require ( | ||
| github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 // indirect | ||
| github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect | ||
| github.com/BurntSushi/toml v1.2.1 // indirect | ||
| github.com/BurntSushi/toml v1.3.2 // indirect | ||
| github.com/MakeNowJust/heredoc v1.0.0 // indirect | ||
| github.com/Masterminds/goutils v1.1.1 // indirect | ||
| github.com/Masterminds/semver/v3 v3.2.0 // indirect | ||
| github.com/Masterminds/semver/v3 v3.2.1 // indirect | ||
| github.com/Masterminds/sprig/v3 v3.2.3 // indirect | ||
| github.com/Masterminds/squirrel v1.5.3 // indirect | ||
| github.com/Masterminds/squirrel v1.5.4 // indirect | ||
| github.com/Microsoft/hcsshim v0.11.4 // indirect | ||
| github.com/armon/go-metrics v0.4.1 // indirect | ||
| github.com/armon/go-radix v1.0.0 // indirect | ||
|
|
@@ -57,21 +59,21 @@ require ( | |
| github.com/docker/docker-credential-helpers v0.7.0 // indirect | ||
| github.com/docker/go-connections v0.5.0 // indirect | ||
| github.com/docker/go-metrics v0.0.1 // indirect | ||
| github.com/emicklei/go-restful/v3 v3.10.1 // indirect | ||
| github.com/emicklei/go-restful/v3 v3.11.0 // indirect | ||
| github.com/envoyproxy/go-control-plane v0.11.1 // indirect | ||
| github.com/envoyproxy/go-control-plane/xdsmatcher v0.0.0-20230524161521-aaaacbfbe53e // indirect | ||
| github.com/envoyproxy/protoc-gen-validate v1.0.2 // indirect | ||
| github.com/evanphx/json-patch v5.6.0+incompatible // indirect | ||
| github.com/evanphx/json-patch v5.7.0+incompatible // indirect | ||
| github.com/exponent-io/jsonpath v0.0.0-20151013193312-d6023ce2651d // indirect | ||
| github.com/felixge/httpsnoop v1.0.3 // indirect | ||
| github.com/go-errors/errors v1.0.1 // indirect | ||
| github.com/go-errors/errors v1.4.2 // indirect | ||
| github.com/go-gorp/gorp/v3 v3.1.0 // indirect | ||
| github.com/go-logr/logr v1.2.4 // indirect | ||
| github.com/go-logr/logr v1.3.0 // indirect | ||
| github.com/go-logr/stdr v1.2.2 // indirect | ||
| github.com/go-openapi/analysis v0.21.4 // indirect | ||
| github.com/go-openapi/errors v0.20.3 // indirect | ||
| github.com/go-openapi/jsonpointer v0.19.5 // indirect | ||
| github.com/go-openapi/jsonreference v0.20.0 // indirect | ||
| github.com/go-openapi/jsonpointer v0.19.6 // indirect | ||
| github.com/go-openapi/jsonreference v0.20.2 // indirect | ||
| github.com/go-openapi/loads v0.21.2 // indirect | ||
| github.com/go-openapi/runtime v0.25.0 // indirect | ||
| github.com/go-openapi/spec v0.20.8 // indirect | ||
|
|
@@ -83,11 +85,12 @@ require ( | |
| github.com/gogo/protobuf v1.3.2 // indirect | ||
| github.com/golang/protobuf v1.5.4 // indirect | ||
| github.com/google/btree v1.0.1 // indirect | ||
| github.com/google/gnostic v0.5.7-v3refs // indirect | ||
| github.com/google/gnostic-models v0.6.8 // indirect | ||
| github.com/google/gofuzz v1.2.0 // indirect | ||
| github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect | ||
| github.com/google/uuid v1.3.0 // indirect | ||
| github.com/gorilla/mux v1.8.0 // indirect | ||
| github.com/gorilla/websocket v1.5.0 // indirect | ||
| github.com/gosuri/uitable v0.0.4 // indirect | ||
| github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 // indirect | ||
| github.com/hashicorp/consul/api v1.28.2 // indirect | ||
|
|
@@ -109,7 +112,7 @@ require ( | |
| github.com/klauspost/compress v1.16.0 // indirect | ||
| github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 // indirect | ||
| github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect | ||
| github.com/lib/pq v1.10.7 // indirect | ||
| github.com/lib/pq v1.10.9 // indirect | ||
| github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect | ||
| github.com/mailru/easyjson v0.7.7 // indirect | ||
| github.com/mattn/go-colorable v0.1.13 // indirect | ||
|
|
@@ -123,26 +126,24 @@ require ( | |
| github.com/mitchellh/reflectwalk v1.0.2 // indirect | ||
| github.com/moby/locker v1.0.1 // indirect | ||
| github.com/moby/spdystream v0.2.0 // indirect | ||
| github.com/moby/term v0.0.0-20221205130635-1aeaba878587 // indirect | ||
| github.com/moby/term v0.5.0 // indirect | ||
| github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect | ||
| github.com/modern-go/reflect2 v1.0.2 // indirect | ||
| github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect | ||
| github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect | ||
| github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect | ||
| github.com/oklog/ulid v1.3.1 // indirect | ||
| github.com/onsi/ginkgo/v2 v2.6.0 // indirect | ||
| github.com/onsi/gomega v1.24.1 // indirect | ||
| github.com/opencontainers/go-digest v1.0.0 // indirect | ||
| github.com/opencontainers/image-spec v1.1.0-rc6 // indirect | ||
| github.com/opentracing/opentracing-go v1.2.0 // indirect | ||
| github.com/peterbourgon/diskv v2.0.1+incompatible // indirect | ||
| github.com/pkg/errors v0.9.1 // indirect | ||
| github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect | ||
| github.com/prometheus/client_golang v1.14.0 // indirect | ||
| github.com/prometheus/client_golang v1.16.0 // indirect | ||
| github.com/prometheus/client_model v0.4.0 // indirect | ||
| github.com/prometheus/common v0.37.0 // indirect | ||
| github.com/prometheus/procfs v0.8.0 // indirect | ||
| github.com/rogpeppe/go-internal v1.10.0 // indirect | ||
| github.com/rubenv/sql-migrate v1.3.1 // indirect | ||
| github.com/prometheus/common v0.44.0 // indirect | ||
| github.com/prometheus/procfs v0.10.1 // indirect | ||
| github.com/rubenv/sql-migrate v1.5.2 // indirect | ||
| github.com/russross/blackfriday/v2 v2.1.0 // indirect | ||
| github.com/shopspring/decimal v1.3.1 // indirect | ||
| github.com/sirupsen/logrus v1.9.3 // indirect | ||
|
|
@@ -153,14 +154,14 @@ require ( | |
| github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect | ||
| github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect | ||
| github.com/xeipuuv/gojsonschema v1.2.0 // indirect | ||
| github.com/xlab/treeprint v1.1.0 // indirect | ||
| github.com/xlab/treeprint v1.2.0 // indirect | ||
| go.mongodb.org/mongo-driver v1.11.1 // indirect | ||
| go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.45.0 // indirect | ||
| go.opentelemetry.io/otel v1.19.0 // indirect | ||
| go.opentelemetry.io/otel/metric v1.19.0 // indirect | ||
| go.opentelemetry.io/otel/trace v1.19.0 // indirect | ||
| go.opentelemetry.io/proto/otlp v1.0.0 // indirect | ||
| go.starlark.net v0.0.0-20230128213706-3f75dec8e403 // indirect | ||
| go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect | ||
| golang.org/x/crypto v0.22.0 // indirect | ||
| golang.org/x/exp v0.0.0-20230817173708-d852ddb80c63 // indirect | ||
| golang.org/x/net v0.24.0 // indirect | ||
|
|
@@ -170,24 +171,24 @@ require ( | |
| golang.org/x/term v0.19.0 // indirect | ||
| golang.org/x/time v0.3.0 // indirect | ||
| google.golang.org/appengine v1.6.7 // indirect | ||
| google.golang.org/genproto v0.0.0-20230711160842-782d3b101e98 // indirect | ||
| google.golang.org/genproto/googleapis/api v0.0.0-20230711160842-782d3b101e98 // indirect | ||
| google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect | ||
| google.golang.org/genproto v0.0.0-20230803162519-f966b187b2e5 // indirect | ||
| google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e // indirect | ||
| google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect | ||
| google.golang.org/grpc v1.58.3 // indirect | ||
| google.golang.org/protobuf v1.33.0 // indirect | ||
| gopkg.in/inf.v0 v0.9.1 // indirect | ||
| gopkg.in/yaml.v2 v2.4.0 // indirect | ||
| gopkg.in/yaml.v3 v3.0.1 // indirect | ||
| k8s.io/apiserver v0.26.10 // indirect | ||
| k8s.io/component-base v0.26.10 // indirect | ||
| k8s.io/klog/v2 v2.90.1 // indirect | ||
| k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 // indirect | ||
| k8s.io/kubectl v0.26.10 // indirect | ||
| k8s.io/apiserver v0.29.0 // indirect | ||
| k8s.io/component-base v0.29.0 // indirect | ||
| k8s.io/klog/v2 v2.110.1 // indirect | ||
| k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 // indirect | ||
| k8s.io/kubectl v0.29.0 // indirect | ||
| oras.land/oras-go v1.2.5 // 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 | ||
| sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect | ||
| sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect | ||
| sigs.k8s.io/kustomize/api v0.13.5-0.20230601165947-6ce0bf390ce3 // indirect | ||
| sigs.k8s.io/kustomize/kyaml v0.14.3-0.20230601165947-6ce0bf390ce3 // indirect | ||
| sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect | ||
| ) | ||
|
|
||
| // This replace directive is to avoid having to manually bump the version of the charts module upon changes to the Helm | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went ahead and consumed these versions in all of our go modules so it's not so hard to keep track of