Make app protocol case insensitive
This commit is contained in:
parent
c60815ed08
commit
3b33ffa245
5 changed files with 122 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue