ProtocolType may not work as expected because of the case #3184
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/needs-information
Indicates an issue needs more information in order to work on it.
What happened:
Provide a configuration like:
The result is that this resource is accepted (because "tcp" is valid protocol name), but doesn't treat it as TCP protocol (because it is not equal to TCPProtocolType constant).
What you expected to happen:
Either this resource is rejected (because the TCP protocol name is "TCP", no "tcp"), or handle it as TCP protocol.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
IMHO, we can either require the ProtocolType to be treated as case-insensitive, or require all Core protocols to be uppercase.
The text was updated successfully, but these errors were encountered: