-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat(proto-detect): Convert opaque ports to app protocol #13659
Conversation
5f8a57e
to
59c293d
Compare
e23fd8b
to
b412a89
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.
This is looking pretty good! A few small things:
32afa9d
to
3ebe410
Compare
This looks good to me. I'd like @adleong to take a look before merging so we're in sync as the followup PRs come into view. |
When merging, the subject should probably be feat(policy): ... for consistency. |
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.
Food for thought, feel free to ignore:
Is it redundant that we store and Option and AppProtocol has an Unknown variant? Is there a semantic difference between None and Some(Unknown)?
There is a difference, |
Currently, we store whether or not a port in a parent is opaque with a simple boolean. This works, but is somewhat restrictive if we want to specifiy different port protocols in the resource definition. This converts it to a proper `AppProtocol` enum, which will allow us to use different protocol specifications for ports in the future. Signed-off-by: Scott Fleener <[email protected]>
3ebe410
to
9b4a271
Compare
Currently, we store whether or not a port in a parent is opaque with a simple boolean. This works, but is somewhat restrictive if we want to specifiy different port protocols in the resource definition.
This converts it to a proper
AppProtocol
enum, which will allow us to use different protocol specifications for ports in the future.