feat(destination): Add meshed HTTP/2 keep-alive settings#12504
Merged
Conversation
b68ed59 to
dc600ae
Compare
Member
Author
|
Validated via the diagnostics commands: proxy consuming this: |
This commit adds destination controller configuration that enables default keep-alives for meshed HTTP/2 clients. This is accomplished by encoding the raw protobuf message structure into the helm values, and then encoding that as JSON in the destination controller's command-line options. This allows operators to set any supported HTTP/2 client configuration without having to modify the destination controller.
adleong
approved these changes
Apr 30, 2024
| - -default-opaque-ports={{.Values.proxy.opaquePorts}} | ||
| - -enable-pprof={{.Values.enablePprof | default false}} | ||
| {{- if (.Values.destinationController).meshedHttp2ClientProtobuf }} | ||
| - --meshed-http2-client-params={{ toJson .Values.destinationController.meshedHttp2ClientProtobuf }} |
Member
There was a problem hiding this comment.
since this is in a yaml list of args, does that mean that it will gracefully handle json which contains spaces? or would we need to introduce quoting/escaping?
Member
Author
There was a problem hiding this comment.
toJson (mustToJson): Convert list, slice, array, dict, or object to JSON.
toPrettyJson (mustToPrettyJson): Convert list, slice, array, dict, or object to indented JSON.
toRawJson (mustToRawJson): Convert list, slice, array, dict, or object to JSON with HTML characters unescaped.
toJson gives us a compact, escaped string. Non-newline whitespace is fine in this context.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 commit adds destination controller configuration that enables default
keep-alives for meshed HTTP/2 clients.
This is accomplished by encoding the raw protobuf message structure into the
helm values, and then encoding that as JSON in the destination controller's
command-line options. This allows operators to set any supported HTTP/2 client
configuration without having to modify the destination controller.