Skip to content
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

hubble: allow filtering by agent event subtypes #14305

Merged
merged 2 commits into from
Dec 9, 2020

Conversation

tklauser
Copy link
Member

@tklauser tklauser commented Dec 8, 2020

Follow-up for #14242

The first commit updates the protobuf enum values for the agent event types, so they match the respective monitor API values. This will make the implementation on the Hubble CLI side more straight-forward.

The second commit introduces functionality to filter agent events by event type (e.g. endpoint creation, policy update).

When originally adding support for agent events in #14168, generic agent
events were left out since there are non currently produced by the
Cilium agent. However, this leads to a mismatch between the
AgenteEventType_* values and the respective monitor API values.

In order to allow filtering on agent event types these should match, so
mark the value for generic agent events as reserved in enum
AgenteEventType.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Use the filter sub type to specify agent event type.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
@tklauser tklauser added release-note/minor This PR changes functionality that users may find relevant to operating Cilium. sig/hubble Impacts hubble server or relay labels Dec 8, 2020
@tklauser tklauser requested a review from a team as a code owner December 8, 2020 12:29
@tklauser tklauser requested review from a team, nathanjsweet and glibsm December 8, 2020 12:29
@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.10.0 Dec 8, 2020
@tklauser
Copy link
Member Author

tklauser commented Dec 8, 2020

test-me-please

Copy link
Member

@rolinh rolinh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we still need to have an API discussion to know if #14242 (comment) also needs to be tackled.

api/v1/flow/flow.proto Show resolved Hide resolved
@tklauser
Copy link
Member Author

tklauser commented Dec 8, 2020

@tklauser
Copy link
Member Author

tklauser commented Dec 8, 2020

@tklauser tklauser added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Dec 9, 2020
@nebril
Copy link
Member

nebril commented Dec 9, 2020

retest-4.19

@nebril
Copy link
Member

nebril commented Dec 9, 2020

retest-4.9

@nebril nebril merged commit 3234cd1 into master Dec 9, 2020
@nebril nebril deleted the pr/tklauser/hubble-api-filter-agent-event-subtypes branch December 9, 2020 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/minor This PR changes functionality that users may find relevant to operating Cilium. sig/hubble Impacts hubble server or relay
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants