chore(deps): address hyper deprecations in policy controller #13493
+41
−13
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.
NB: this branch is based upon #13492. see #8733 for more information about migrating to hyper 1.0.
this enables the
backports
anddeprecated
feature flags in the hyper dependencies in this project, and addresses warnings. see https://hyper.rs/guides/1/upgrading/ for more information about these feature flags.largely, the control plane is unaffected by this upgrade, besides the following changes:
one usage of a deprecated
hyper::body::aggregate
function is updated.a
hyper::rt::Executor<E>
implementation, which spawns tasks onto the tokio runtime, is provided. once we upgrade to hyper 1.0, we can replace this with the executor provided inhyper-util
.the
hyper::service::Service<hyper::Request<tonic::body::BoxBody>>
implementation forGrpcHttp
now boxes its returned future, on account ofSendRequest
returning an anonymousimpl Future<Output = ...>
.the
policy-test
additionally depends on theruntime
feature of hyper. this is an artifact of an internal config structure shared by the legacy connection builder and the backported connection builder containing two keep-alive fields that were feature gated prior to 1.0.