File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
rootfs/etc/nginx/template Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1481,8 +1481,8 @@ stream {
14811481 proxy_next_upstream_timeout {{ $location.Proxy.NextUpstreamTimeout }};
14821482 proxy_next_upstream_tries {{ $location.Proxy.NextUpstreamTries }};
14831483
1484+ {{ if or (eq $location.BackendProtocol "GRPC") (eq $location.BackendProtocol "GRPCS") }}
14841485 # Grpc settings
1485- {{ if or (eq $location.BackendProtocol "GRPC") (eq $location.BackendProtocol "GRPCS")}}
14861486 grpc_connect_timeout {{ $location.Proxy.ConnectTimeout }}s;
14871487 grpc_send_timeout {{ $location.Proxy.SendTimeout }}s;
14881488 grpc_read_timeout {{ $location.Proxy.ReadTimeout }}s;
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ var _ = framework.DescribeAnnotation("backend-protocol - GRPC", func() {
267267 proxyReadtimeout := "30"
268268
269269 annotations := make (map [string ]string )
270- annotations ["nginx.ingress.kubernetes.io/backend-protocol" ] = "grpc "
270+ annotations ["nginx.ingress.kubernetes.io/backend-protocol" ] = "GRPC "
271271 annotations ["nginx.ingress.kubernetes.io/proxy-connect-timeout" ] = proxyConnectTimeout
272272 annotations ["nginx.ingress.kubernetes.io/proxy-send-timeout" ] = proxySendTimeout
273273 annotations ["nginx.ingress.kubernetes.io/proxy-read-timeout" ] = proxyReadtimeout
@@ -289,7 +289,7 @@ var _ = framework.DescribeAnnotation("backend-protocol - GRPC", func() {
289289 proxyReadtimeout := "30"
290290
291291 annotations := make (map [string ]string )
292- annotations ["nginx.ingress.kubernetes.io/backend-protocol" ] = "grpcs "
292+ annotations ["nginx.ingress.kubernetes.io/backend-protocol" ] = "GRPCS "
293293 annotations ["nginx.ingress.kubernetes.io/proxy-connect-timeout" ] = proxyConnectTimeout
294294 annotations ["nginx.ingress.kubernetes.io/proxy-send-timeout" ] = proxySendTimeout
295295 annotations ["nginx.ingress.kubernetes.io/proxy-read-timeout" ] = proxyReadtimeout
You can’t perform that action at this time.
0 commit comments