Update module sigs.k8s.io/controller-runtime to v0.8.1 #4144
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.
This PR contains the following updates:
v0.6.3
->v0.8.1
Release Notes
kubernetes-sigs/controller-runtime
v0.8.1
Compare Source
Changes since v0.8.0
✨ New Features
🐛 Bug Fixes
Thanks to all our contributors! 😊
v0.8.0
Compare Source
Changes since v0.7.1
✨ New Features
🐛 Bug Fixes
📖 Documentation
Thanks to all our contributors! 😊
v0.7.2
Compare Source
Changes since v0.7.1
🐛 Bug Fixes
Thanks to all our contributors! 😊
v0.7.1
Compare Source
Changes since v0.7.0
🐛 Bug Fixes
Thanks to all our contributors! 😊
v0.7.0
Compare Source
Changes since v0.6.4
Use
client.Object
&client.ObjectList
A number of methods that previously took
runtime.Object
& internally type-asserted them tometav1.Object
now takeclient.Object
(for non-list objects) orclient.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 ametadata
field) already implementclient.Object
orclient.ObjectList
, so practical impact should be limited to folks who pass aroundruntime.Object
values instead of concrete types.High-Impact
pkg/webhook/admission: upgrade v1beta1 admission types to v1 (#1284)
Impact: construct
v1
Go types instead ofv1beta1
. Both versions aresupported on the wire.
Change leaderlock from ConfigMap to ConfigMapsLeasesResourceLock (#1144)
Impact: New RBAC permissions are needed by default for leaderelection (for
the
coordination/v1
API). The new lock will automatically deal withexisting 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)
Impact: update various methods to accept a
context.Context
object, whichcan be used to structure timeouts and stopping loops/operations in lieu of
channels
Change default webhook port to 9443 (#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)
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)
Impact: update your controller client.Client's CLI configuration "--
master" flag to "--kubeconfig"
Add a context w/ logger to Reconciler interface (#1054)
Impact: add a
context.Context
parameter to your controller'sReconcile()
method signature, which you can use throughout yourReconcile()
function.Others
Add ability for the delegating client to avoid caching objects (#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) -- Impact: REST configs use a protobuf content-type when possible (object is not unstructured), minor changes to low-level function signatures
ComponentConfig Implementation (#891) -- Impact: a Manager can be configured by a ControllerManagerConfiguration or a custom defined configuration file. See the examples for usage details
DynamicRestMapper: return NoMatchError when resource doesn't exist (#1151) -- Impact: handle
meta.NoKindMatchError
/meta.NoResourceMatchError
instead ofapiutil.ErrRateLimited
, which has been removedadmission responses with raw Status (#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) -- Impact: update envtest.WebhookInstallOptions.{DirectoryPaths -> Paths}
Expose RESTMapper on Client interface (#1109)
Expose Client runtime.Scheme (#1058)
Simplify usage of EnqueueRequestsFromMapFunc (#1119)
Removed Deprecated Items
Remove deprecated pkg/runtime/signals package (#1108) -- Impact: migrate to pkg/manager/signals
Remove deprecated pkg/runtime/scheme (#1107) -- Impact: migrate to pkg/scheme
Remove deprecated For/WithConfig from controller builder (#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) -- Impact: update client.ConstantPatch to client.RawPatch
Remove deprecated pkg/client options (#1112) -- Impact: update client.{Create,Update,Path}DryRunAll to client.DryRunAll and client.MatchingField to client.MatchingFields
Remove reconciletest deprecated package (#1106) -- Impact: update your FakeReconciler controller tests to envtest-based tests
Remove deprecated pkg/runtime/log package and utils (#1105) -- Impact: migrate to pkg/log
Remove {Add,Remove}FinalizerWithError utils (#1104) -- Impact: use controllerutil.{Add,Remove}Finalizer() directly
✨ New Features
🐛 Bug Fixes
UnstructuredList
with unregistered typed (#1238)/healthz/
when calling/healthz
(#1134)📖 Documentation
🌱 Others
Thanks to all our contributors! 😊
v0.6.5
Compare Source
Changes since v0.6.4
🐛 Bug Fixes
Thanks to all our contributors! 😊
v0.6.4
Compare Source
Changes since v0.6.3
✨ New Features
Support for metadata-only watches (#1248)
v0.5.12
metadata only watch functionality has breaking changes, in particular theOnlyMetadata
wrapper introduced in v0.5.12 is now deprecated.Migration example
If one has a controller that reconciles Deployments and owns ReplicaSets and only watches their metadata, with v0.5.12 the controller can be created with something like the following:
With this release, the code must be changed as shown below:
🐛 Bug Fixes
Thanks to all our contributors! 😊
Renovate configuration
📅 Schedule: 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.
🔕 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.