1
0
Fork 0

Make app protocol case insensitive

This commit is contained in:
shreealt 2025-08-20 19:30:08 +05:30 committed by GitHub
parent c60815ed08
commit 3b33ffa245
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 122 additions and 2 deletions

View file

@ -817,7 +817,7 @@ func getHTTPServiceProtocol(portSpec corev1.ServicePort) (string, error) {
return protocol, nil
}
switch ap := *portSpec.AppProtocol; ap {
switch ap := strings.ToLower(*portSpec.AppProtocol); ap {
case appProtocolH2C:
return schemeH2C, nil
case appProtocolHTTP, appProtocolWS: