-
Notifications
You must be signed in to change notification settings - Fork 246
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
Add endpoint workload filters #794
Add endpoint workload filters #794
Conversation
1afd33b
to
bd8a719
Compare
Need to also figure out if this works correctly with |
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.
CI complains seems legit (I tested it and it's pulling LICENSE.txt
files):
please run 'go mod tidy && go mod vendor', and submit your changes
Apparently my global gitignore ignores |
So far I think the flag properly handles the difference between |
@chancez I feel conflicted about Now we could change the workload filter on the server side to support partial matching but I don't think it makes a lot of sense for workloads, and also we could still do that later if need be (it would be a backward compatible change). If we elect to support |
Then maybe to start we remove |
bd8a719
to
3559e09
Compare
i updated cilium in hubble and now this fails:
This is because my update to cilium adds a new event type
do we need this as an option in the CLI event types? |
![:basecamp: :basecamp:](https://github.githubassets.com/images/icons/emoji/basecamp.png)
I agree with just supporting |
Ah, CI working as expected 🙂 I'm not sure about what level of support is expected for |
Yes, we want to add the trace sock events as well, but the server-side code is still missing. The Hubble portion is on my TODO list at the moment. |
@gandro So to answer Chance's question (and have CI happy), the fix would be to add |
Even if it isn't supported on the server? The other option is to just adjust the test. |
Ah, I thought the error was due to the list of possible values is being pulled in via vendor (which I think we used to). But I was wrong, we maintain our own list here and ensure it's kept up to date via test. In that case, yes, we should adjust the test, and add TraceSock to the test's exclude list. Sorry about that, I should have read the failing test first. |
38ff5b7
to
46aaea9
Compare
Updated tests and I removed the usage of |
46aaea9
to
685e6c3
Compare
![:basecamp: :basecamp:](https://github.githubassets.com/images/icons/emoji/basecamp.png)
Also updates flow tests to exclude trace-sock message type We need an updated cilium from master so that we can pull in the newest protobufs with the TraceContext field. Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com>
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 @chancez LGTM. One more nit on the way: about the first commit ("go.{mod,sum},vendor: Update cilium") can we have the cilium version updated to in the commit message please? Make it a bit easier to track without having to look at the diff.
This adds support to Hubble CLI for filtering against endpoints workloads The server side of this was implemented in cilium/cilium#21296 Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com>
This will aid debugging if improperly vendored Signed-off-by: Chance Zibolski <chance.zibolski@gmail.com>
685e6c3
to
02d3989
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.
ci-structure
was pinged due to a trivial change in workflow files, acking without looking further.
This adds support to Hubble CLI for filtering against endpoints workloads
The server side of this was implemented in cilium/cilium#21296