Skip to content

Instantly share code, notes, and snippets.

@tsaarni
Created June 14, 2021 08:03
Show Gist options
  • Save tsaarni/8ab8339b35d2067e31f9faf82fe2e39b to your computer and use it in GitHub Desktop.
Save tsaarni/8ab8339b35d2067e31f9faf82fe2e39b to your computer and use it in GitHub Desktop.
proto_print /tmp/tmpoyvg8bdx/b/envoy/api/v2/ratelimit/ratelimit.proto
proto_print /tmp/tmpoyvg8bdx/b/envoy/api/v2/core/health_check.proto
proto_print /tmp/tmpoyvg8bdx/b/envoy/api/v2/cluster/outlier_detection.proto
proto_print /tmp/tmpoyvg8bdx/b/envoy/admin/v2alpha/tap.proto
proto_print /tmp/tmpoyvg8bdx/b/envoy/api/v2/rds.proto
proto_print /tmp/tmpoyvg8bdx/b/envoy/api/v2/listener/udp_listener_config.proto
proto_print /tmp/tmpoyvg8bdx/b/envoy/api/v2/cluster/filter.proto
proto_print /tmp/tmpoyvg8bdx/b/envoy/admin/v2alpha/server_info.proto
proto_print /tmp/tmpoyvg8bdx/b/envoy/api/v2/listener/quic_config.proto
Please apply following patch to directory './api'
diff -Npur a/envoy/config/filter/http/squash/v2/BUILD b/envoy/config/filter/http/squash/v2/BUILD
--- a/envoy/config/filter/http/squash/v2/BUILD 1970-01-01 02:00:00.000000000 +0200
+++ b/envoy/config/filter/http/squash/v2/BUILD 2021-06-14 09:55:15.196314228 +0300
@@ -0,0 +1,9 @@
+# DO NOT EDIT. This file is generated by tools/proto_format/proto_sync.py.
+
+load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package")
+
+licenses(["notice"]) # Apache 2
+
+api_proto_package(
+ deps = ["@com_github_cncf_udpa//udpa/annotations:pkg"],
+)
diff -Npur a/envoy/config/filter/http/squash/v2/squash.proto b/envoy/config/filter/http/squash/v2/squash.proto
--- a/envoy/config/filter/http/squash/v2/squash.proto 1970-01-01 02:00:00.000000000 +0200
+++ b/envoy/config/filter/http/squash/v2/squash.proto 2021-06-14 09:55:05.540338435 +0300
@@ -0,0 +1,58 @@
+syntax = "proto3";
+
+package envoy.config.filter.http.squash.v2;
+
+import "google/protobuf/duration.proto";
+import "google/protobuf/struct.proto";
+
+import "udpa/annotations/migrate.proto";
+import "udpa/annotations/status.proto";
+import "validate/validate.proto";
+
+option java_package = "io.envoyproxy.envoy.config.filter.http.squash.v2";
+option java_outer_classname = "SquashProto";
+option java_multiple_files = true;
+option (udpa.annotations.file_migrate).move_to_package = "envoy.extensions.filters.http.squash.v3";
+option (udpa.annotations.file_status).package_version_status = FROZEN;
+
+// [#protodoc-title: Squash]
+// Squash :ref:`configuration overview <config_http_filters_squash>`.
+// [#extension: envoy.filters.http.squash]
+
+// [#next-free-field: 6]
+message Squash {
+ // The name of the cluster that hosts the Squash server.
+ string cluster = 1 [(validate.rules).string = {min_bytes: 1}];
+
+ // When the filter requests the Squash server to create a DebugAttachment, it will use this
+ // structure as template for the body of the request. It can contain reference to environment
+ // variables in the form of '{{ ENV_VAR_NAME }}'. These can be used to provide the Squash server
+ // with more information to find the process to attach the debugger to. For example, in a
+ // Istio/k8s environment, this will contain information on the pod:
+ //
+ // .. code-block:: json
+ //
+ // {
+ // "spec": {
+ // "attachment": {
+ // "pod": "{{ POD_NAME }}",
+ // "namespace": "{{ POD_NAMESPACE }}"
+ // },
+ // "match_request": true
+ // }
+ // }
+ //
+ // (where POD_NAME, POD_NAMESPACE are configured in the pod via the Downward API)
+ google.protobuf.Struct attachment_template = 2;
+
+ // The timeout for individual requests sent to the Squash cluster. Defaults to 1 second.
+ google.protobuf.Duration request_timeout = 3;
+
+ // The total timeout Squash will delay a request and wait for it to be attached. Defaults to 60
+ // seconds.
+ google.protobuf.Duration attachment_timeout = 4;
+
+ // Amount of time to poll for the status of the attachment object in the Squash server
+ // (to check if has been attached). Defaults to 1 second.
+ google.protobuf.Duration attachment_poll_period = 5;
+}
error: failed to push some refs to 'git@github.com:Nordix/envoy.git'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment