api: remove generated_api_shadow (#18091)

Signed-off-by: Harvey Tuch <htuch@google.com>

Mirrored from https://github.com/envoyproxy/envoy @ b0e15260326d0d6175bc2271fb712f2f1efb029e
pull/624/head
data-plane-api(Azure Pipelines) 3 years ago
parent f6118febc7
commit 67fb6069ea
  1. 5
      STYLE.md
  2. 2
      tools/generate_listeners_test.py
  3. 2
      tools/tap2pcap.py
  4. 2
      tools/tap2pcap_test.py

@ -144,9 +144,8 @@ To add an extension config to the API, the steps below should be followed:
(`option (udpa.annotations.file_status).package_version_status = ACTIVE;`).
This is required to automatically include the config proto in [api/versioning/BUILD](versioning/BUILD).
1. Add a reference to the v3 extension config in (1) in [api/versioning/BUILD](versioning/BUILD) under `active_protos`.
1. Run `./tools/proto_format/proto_format.sh fix`. This should regenerate the `BUILD` file,
reformat `foobar.proto` as needed and also generate the shadow API protos.
1. `git add api/ generated_api_shadow/` to add any new files to your Git index.
1. Run `./tools/proto_format/proto_format.sh fix`. This should regenerate the `BUILD` file and
reformat `foobar.proto` as needed.
## API annotations

@ -5,7 +5,7 @@ import os
import generate_listeners
if __name__ == "__main__":
srcdir = os.path.join(os.getenv("TEST_SRCDIR"), 'envoy_api_canonical')
srcdir = os.path.join(os.getenv("TEST_SRCDIR"), 'envoy_api')
generate_listeners.generate_listeners(
os.path.join(srcdir, "examples/service_envoy/listeners.pb"), "/dev/stdout", "/dev/stdout",
iter([os.path.join(srcdir, "examples/service_envoy/http_connection_manager.pb")]))

@ -8,7 +8,7 @@ tap files; it is not a literal wire tap.
Usage:
bazel run @envoy_api_canonical//tools:tap2pcap <tap .pb/.pb_text> <pcap path>
bazel run @envoy_api//tools:tap2pcap <tap .pb/.pb_text> <pcap path>
Known issues:
- IPv6 PCAP generation has malformed TCP packets. This appears to be a text2pcap

@ -11,7 +11,7 @@ import tap2pcap
# a golden output file for the tshark dump. Since we run tap2pcap in a
# subshell with a limited environment, the inferred time zone should be UTC.
if __name__ == '__main__':
srcdir = os.path.join(os.getenv('TEST_SRCDIR'), 'envoy_api_canonical')
srcdir = os.path.join(os.getenv('TEST_SRCDIR'), 'envoy_api')
tap_path = os.path.join(srcdir, 'tools/data/tap2pcap_h2_ipv4.pb_text')
expected_path = os.path.join(srcdir, 'tools/data/tap2pcap_h2_ipv4.txt')
pcap_path = os.path.join(os.getenv('TEST_TMPDIR'), 'generated.pcap')

Loading…
Cancel
Save