Skip to content

[v11] Refactor teleterm protos to match project conventions#21394

Merged
ravicious merged 4 commits intobranch/v11from
ravicious/v11/backport-20810-grpc-refactor
Feb 14, 2023
Merged

[v11] Refactor teleterm protos to match project conventions#21394
ravicious merged 4 commits intobranch/v11from
ravicious/v11/backport-20810-grpc-refactor

Conversation

@ravicious
Copy link
Copy Markdown
Member

@ravicious ravicious commented Feb 7, 2023

Backport #20810 & #21362.

Compared to the original PR and v12 backport, I didn't touch lib/prehog protos as #19631 was not backported to v11 so on v11 those are still generated manually. Fortunately though, the main reason for which I undertook this refactoring, that is lib/teleterm importing lib/prehog protos, doesn't take place on v11.

The rest of the changes is similar to those from the original PR:

  • Moved teleterm's proto files from their respective lib/ dir to proto/.
  • Updated go_package of lib/teleterm protobufs to match conventions used by api/proto and proto.
    • lib/teleterm/api/protogen/golang/v1 before
    • gen/proto/go/teleport/lib/teleterm/v1/ now
    • proto package name has been updated to match the new location.
  • JS protobufs for now live in gen/proto/js in the root folder.
  • Connect no longer needs to copy protobufs to its own directory.
    • Instead it uses protobufs from gen/proto/js so that any change done through make grpc is automatically picked up by Connect.

This PR also includes a backport for #21362 which fixes teleport-operator build broken by #20810.

ravicious and others added 2 commits February 7, 2023 15:08
* Moved teleterm's proto files from their respective `lib/` dir to `proto/`.
* Updated `go_package` of `lib/teleterm` protobufs to match conventions
  used by `api/proto` and `proto`.
  * `lib/teleterm/api/protogen/golang/v1` before
  * `gen/proto/go/teleport/lib/teleterm/v1/` now
  * proto package name has been updated to match the new location.
* JS protobufs for now live in `gen/proto/js` in the root folder.
* Connect no longer needs to copy protobufs to its own directory.
   * Instead it uses protobufs from `gen/proto/js` so that any change
     done through `make grpc` is automatically picked up by Connect.
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from codingllama February 7, 2023 15:31
@ravicious ravicious changed the title [v11] Refactor prehog & teleterm protos to match project conventions [v11] Refactor teleterm protos to match project conventions Feb 7, 2023
@ravicious ravicious enabled auto-merge (squash) February 14, 2023 14:24
@ravicious ravicious merged commit 520aba4 into branch/v11 Feb 14, 2023
@ravicious ravicious deleted the ravicious/v11/backport-20810-grpc-refactor branch February 14, 2023 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants