-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Gen yaml annotations for flow proto #28944
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
3195d80
to
3cc217e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. The overall idea looks good to me, but I'm not a big fan of deleting whole folders during the build.
3cc217e
to
bd894ff
Compare
bd894ff
to
f122df4
Compare
LGTM. I'll approve after #28943 is merged and the base image + CI passes. |
f122df4
to
dec100a
Compare
@christarazi Added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine by me, but will unfortunately conflict with #28945. Given both are currently blocked by the Cloudflare outage, let's just see which one gets in first and rebase the other one.
066a40f
to
10c7e03
Compare
10c7e03
to
c0c12a0
Compare
Rebased. |
c0c12a0
to
64a4a3b
Compare
/test |
64a4a3b
to
98ad6ff
Compare
/test |
Travis took a nap :-(. If this PR doesn't need any more pushes, then a close-and-reopen will do the trick. |
Plugin will be used to generate yaml annotation in structs generated from proto to be able to unmarshall FlowFilter from YAML for cilium#25508. Signed-off-by: Marek Chodor <mchodor@google.com>
Yaml annotations are needed to unmarshall FlowFilter structs for flow logging feature cilium#25508. Signed-off-by: Marek Chodor <mchodor@google.com>
98ad6ff
to
b518051
Compare
I just realized that names generated with this plugin are inconsitent with json tags. This would make a mess in the API. I will close this and instead I will use different YAML parser that works with json tags |
Add protoc-gen-gotag plugin to builder image. Add yaml annotations to flow proto gen files. Introduce dynamic hubble flow logs exporters based on config file. Signed-off-by: Marek Chodor <mchodor@google.com> Carry-Patch-Approval: b/309936968 Upstream-PR: cilium#28873 Upstream-PR: cilium#28943 Upstream-PR: cilium#28944 Change-Id: I7871d8b119822c3228a6e959b86dd1b6b23d275a Reviewed-on: https://gke-internal-review.googlesource.com/c/third_party/cilium/+/860928 Unit-Verified: Prow_Bot_V2 <425329972751-compute@developer.gserviceaccount.com> Reviewed-by: Akhil Velagapudi <avelagap@google.com> Reviewed-by: Prow_Bot_V2 <425329972751-compute@developer.gserviceaccount.com> Tested-by: Prow_Bot_V2 <425329972751-compute@developer.gserviceaccount.com>
The new parser utilizes json tags to keep API consistent. This also reverts cherry-pick of cilium#28944 as this is no longer needed. Carry-Patch-Approval: b/309936968 Upstream-PR: cilium#28873 Change-Id: I8d44e7f937fb56f3c5c6c4ed943586d39a4ea17b Reviewed-on: https://gke-internal-review.googlesource.com/c/third_party/cilium/+/867331 Tested-by: Prow_Bot_V2 <425329972751-compute@developer.gserviceaccount.com> Unit-Verified: Prow_Bot_V2 <425329972751-compute@developer.gserviceaccount.com> Reviewed-by: Akhil Velagapudi <avelagap@google.com> Reviewed-by: Prow_Bot_V2 <425329972751-compute@developer.gserviceaccount.com> Prow-Auto-Submit: Marek Chodor <mchodor@google.com>
Please ensure your pull request adheres to the following guidelines:
description and a
Fixes: #XXX
line if the commit addresses a particularGitHub issue.
Add yaml annotations to generated flow proto as discussed in #28873 (comment)
Requires: #28943
cc: @chancez @glibsm