Make app protocol case insensitive
This commit is contained in:
parent
c60815ed08
commit
3b33ffa245
5 changed files with 122 additions and 2 deletions
|
|
@ -430,7 +430,7 @@ func getGRPCServiceProtocol(portSpec corev1.ServicePort) (string, error) {
|
|||
return schemeH2C, nil
|
||||
}
|
||||
|
||||
switch ap := *portSpec.AppProtocol; ap {
|
||||
switch ap := strings.ToLower(*portSpec.AppProtocol); ap {
|
||||
case appProtocolH2C:
|
||||
return schemeH2C, nil
|
||||
case appProtocolHTTPS:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue