vshn / espejo

OpenShift and Kubernetes Object Syncer
BSD 3-Clause "New" or "Revised" License
11 stars 2 forks source link

chore(deps): update module sigs.k8s.io/controller-runtime to v0.7.0 #63

Closed renovate[bot] closed 3 years ago

renovate[bot] commented 3 years ago

WhiteSource Renovate

This PR contains the following updates:

Package Type Update Change
sigs.k8s.io/controller-runtime require minor v0.6.4 -> v0.7.0

Release Notes

kubernetes-sigs/controller-runtime ### [`v0.7.0`](https://togithub.com/kubernetes-sigs/controller-runtime/releases/v0.7.0) [Compare Source](https://togithub.com/kubernetes-sigs/controller-runtime/compare/v0.6.4...v0.7.0) ## Changes since v0.6.4 #### :warning: Breaking Changes ##### Use `client.Object` & `client.ObjectList` A number of methods that previously took `runtime.Object` & internally type-asserted them to `metav1.Object` now take `client.Object` (for non-list objects) or `client.ObjectList` (for lists). The practical upshot of this is more type-safety and clarity around what's required for particular methods. All concrete API types (anything that implements `runtime.Object` & has a `metadata` field) already implement `client.Object` or `client.ObjectList`, so practical impact should be limited to folks who pass around `runtime.Object` values instead of concrete types. - Introduce and use client.Object and client.ObjectList ([#​1195](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1195)) - Use client.Object for event handlers ([#​1118](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1118)) - Fakeclient: Allow to pass ObjectLists to constructors ([#​1259](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1259)) - client.ObjectKeyFromObject now uses client.Object ([#​1224](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1224)) - Handler: Remove MapObject type and use client.Object directly ([#​1207](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1207)) - Use client.Object interface in envtest ([#​1200](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1200)) ##### High-Impact - pkg/webhook/admission: upgrade v1beta1 admission types to v1 ([#​1284](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1284)) Impact: construct `v1` Go types instead of `v1beta1`. Both versions are supported on the wire. - Change leaderlock from ConfigMap to ConfigMapsLeasesResourceLock ([#​1144](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1144)) Impact: New RBAC permissions are needed by default for leaderelection (for the `coordination/v1` API). The new lock will automatically deal with existing configmap locks (e.g. during upgrades). The can be set to its previous value ("configmaps") in manager.Options. - Propagate context.Context throughout the codebase ([#​1116](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1116)) Impact: update various methods to accept a `context.Context` object, which can be used to structure timeouts and stopping loops/operations in lieu of channels - Change default webhook port to 9443 ([#​1076](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1076)) Impact: update your deployment configuration to use port 9443, or manually configure the webhook port in manager `Options`. - Remove logs from internal controller ([#​1096](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1096)) Impact: automatic logs for "succesful reconcile" no longer exist (it tended to duplicate manual logs that folks had in place). - Remove deprecated "--master" flag ([#​1039](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1039)) Impact: update your controller client.Client's CLI configuration "-- master" flag to "--kubeconfig" - Add a context w/ logger to Reconciler interface ([#​1054](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1054)) Impact: add a `context.Context` parameter to your controller's `Reconcile()` method signature, which you can use throughout your `Reconcile()` function. ##### Others - Add ability for the delegating client to avoid caching objects ([#​1249](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1249)) -- Impact: client.NewDelegatingClient() returns an error, and can accept GVKs to avoid caching - Use application/vnd.kubernetes.protobuf as content-type if possible ([#​1149](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1149)) -- Impact: REST configs use a protobuf content-type when possible (object is not unstructured), minor changes to low-level function signatures - ComponentConfig Implementation ([#​891](https://togithub.com/kubernetes-sigs/controller-runtime/issues/891)) -- Impact: a Manager can be configured by a [ControllerManagerConfiguration](https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/config) or a custom defined configuration file. See the [examples](http://sigs.k8s.io/controller-runtime/examples/configfile) for usage details - DynamicRestMapper: return NoMatchError when resource doesn't exist ([#​1151](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1151)) -- Impact: handle `meta.NoKindMatchError`/`meta.NoResourceMatchError` instead of `apiutil.ErrRateLimited`, which has been removed - admission responses with raw Status ([#​1129](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1129)) -- Impact: `APIStatus` errors returned from high-level admission webhooks will now populate an admission response status (status codes, etc). If this is unintended, use a different error type. - Add support to read webhook configurations from files for WebhookInstallOptions ([#​1080](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1080)) -- Impact: update envtest.WebhookInstallOptions.{DirectoryPaths -> Paths} - Expose RESTMapper on Client interface ([#​1109](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1109)) - Expose Client runtime.Scheme ([#​1058](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1058)) - Simplify usage of EnqueueRequestsFromMapFunc ([#​1119](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1119)) ##### Removed Deprecated Items - Remove deprecated pkg/runtime/signals package ([#​1108](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1108)) -- Impact: migrate to pkg/manager/signals - Remove deprecated pkg/runtime/scheme ([#​1107](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1107)) -- Impact: migrate to pkg/scheme - Remove deprecated For/WithConfig from controller builder ([#​1102](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1102)) -- Impact: update Builder.ForType() to Builder.For() and use builder.ControllerManagedBy() to pass a Manager's rest.Config to a Builder - Remove deprecated client.ConstantPatch function ([#​1103](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1103)) -- Impact: update client.ConstantPatch to client.RawPatch - Remove deprecated pkg/client options ([#​1112](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1112)) -- Impact: update client.{Create,Update,Path}DryRunAll to client.DryRunAll and client.MatchingField to client.MatchingFields - Remove reconciletest deprecated package ([#​1106](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1106)) -- Impact: update your FakeReconciler controller tests to envtest-based tests - Remove deprecated pkg/runtime/log package and utils ([#​1105](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1105)) -- Impact: migrate to pkg/log - Remove {Add,Remove}FinalizerWithError utils ([#​1104](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1104)) -- Impact: use controllerutil.{Add,Remove}Finalizer() directly #### :sparkles: New Features - Add fake.NewClientBuilder to build new fake clients ([#​1281](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1281)) - Allow passing the assets path bin via the env config ([#​1214](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1214)) - Update k8s version in envtest ([#​1269](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1269)) - Add predicate for annotations change on update event ([#​1254](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1254)) - Updating Component Config error messages ([#​1251](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1251)) - ComponentConfig alias for cfg.File() ([#​1244](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1244)) - Allow to use builder.OnlyMetadata option with Watches ([#​1242](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1242)) - metadata-only watches ([#​1174](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1174)) - Zap: Add JSONEncoder and ConsoleEncoder opts ([#​1206](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1206)) - envtest utility, defaultable flags ([#​972](https://togithub.com/kubernetes-sigs/controller-runtime/issues/972)) - CreateOrPatch ([#​850](https://togithub.com/kubernetes-sigs/controller-runtime/issues/850)) - Add error check for multiple apiTypes as reconciliation object ([#​1176](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1176)) - Allow admission responses to send warnings ([#​1157](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1157)) - Make leader election resourcelock configurable ([#​1147](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1147)) - Update k8s.io dependencies to v0.19.0 ([#​1145](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1145)) - Added Encoder Config Options field. ([#​915](https://togithub.com/kubernetes-sigs/controller-runtime/issues/915)) - Add metrics for total workers and active workers ([#​1125](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1125)) - Allow configuring LeaderElectionReleaseOnCancel ([#​1126](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1126)) - Added the LabelSelectorPredicate function for filtering events ([#​1121](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1121)) #### :bug: Bug Fixes - Inject manager's logger instead of internal one ([#​1289](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1289)) - Wait for metadata cache to sync ([#​1276](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1276)) - Fix use of `UnstructuredList` with unregistered typed ([#​1238](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1238)) - Fix the unserved version CRD install timeout in envtest ([#​1189](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1189)) - Tracker upgrade should use gvk from scheme ([#​1213](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1213)) - Controller reconcileHandler shouldn't stop a worker on error ([#​1196](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1196)) - add error check when no apiType is provided for reconciliation ([#​1182](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1182)) - Ensure that webhook server is thread/start-safe ([#​1155](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1155)) - Controller.Watch() should not store watches if already started ([#​1163](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1163)) - Source.Channel: Cope with pre-existing events in the channel ([#​1146](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1146)) - Handle empty contexts in log.FromContext ([#​1141](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1141)) - Controller: Return error when started more than once ([#​1139](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1139)) - Avoid the redirection to `/healthz/` when calling `/healthz` ([#​1134](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1134)) - Fakeclient: Honor AllowUnconditionalUpdate and AllowCreateOnUpdate for resources that support it ([#​926](https://togithub.com/kubernetes-sigs/controller-runtime/issues/926)) - Try to avoid event handling leaks ([#​1089](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1089)) #### :book: Documentation - fix minor typo for the GracefulShutdownTimeout field comments ([#​1239](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1239)) - Improve docs for client.Object ([#​1231](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1231)) - Add more details for what's included in a logger ([#​1203](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1203)) - Be more specific about compat in VERSIONING ([#​1199](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1199)) - Update versioning to reference common guidelines ([#​1198](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1198)) - Fix typo ([#​1153](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1153)) #### :seedling: Others - Add test that checks List works on UnstructuredList not in Scheme ([#​1288](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1288)) - AddToProtobufScheme: Take AddToScheme, not Schemebulilder ([#​1279](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1279)) - Use go-logr context functions ([#​1277](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1277)) - Specify buckets for "controller_runtime_reconcile_time_seconds" histogram metrics ([#​1273](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1273)) - Add back error logging for Reconcile implementation ([#​1245](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1245)) - Use lowercase space separated keys ([#​1241](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1241)) - Remove duplicate lines in controller.go ([#​1240](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1240)) - Add controller.GetLogger ([#​1204](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1204)) - Add ctrl.{LoggerFrom, LoggerInto} ([#​1202](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1202)) - Use kubebuilder-release-tools ([#​1197](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1197)) - Expose handler.MapFunc to allow implementers to test mappers ([#​1194](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1194)) - Update Go mod version to 1.15 ([#​1187](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1187)) - Un-deprecate NewFakeClient ([#​1101](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1101)) - Proposal to extract cluster-specifics out of the Manager ([#​1075](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1075)) - Update dependencies to v0.19.2 ([#​1170](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1170)) - Update json-patch to v4.9.0 ([#​1136](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1136)) - Fix typo in pull_request_template.md ([#​1133](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1133)) - Propagate context on Manager.Start(...) ([#​1205](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1205)) (intermediate change to [#​1116](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1116)) - rename GetControllerManagerConfiguration to Complete ([#​1253](https://togithub.com/kubernetes-sigs/controller-runtime/issues/1253)) (intermediate change) _Thanks to all our contributors!_ 😊

Renovate configuration

:date: Schedule: At any time (no schedule defined).

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

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

:no_bell: Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by WhiteSource Renovate. View repository job log here.

renovate[bot] commented 3 years ago

Renovate Ignore Notification

As this PR has been closed unmerged, Renovate will now ignore this update (v0.7.0). You will still receive a PR once a newer version is released, so if you wish to permanently ignore this dependency, please add it to the ignoreDeps array of your renovate config.

If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.