You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.go
+6-9Lines changed: 6 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -7,17 +7,15 @@ import (
7
7
"github.com/crossplane/function-sdk-go"
8
8
)
9
9
10
-
// MaxRecvMessageSize sets the maximum message size. gRPC default is 4MB
11
-
constMaxRecvMessageSize=1024*1024*16
12
-
13
10
// CLI of this Function.
14
11
typeCLIstruct {
15
12
Debugbool`short:"d" help:"Emit debug logs in addition to info logs."`
16
13
17
-
Networkstring`help:"Network on which to listen for gRPC connections." default:"tcp"`
18
-
Addressstring`help:"Address at which to listen for gRPC connections." default:":9443"`
19
-
TLSCertsDirstring`help:"Directory containing server certs (tls.key, tls.crt) and the CA used to verify client certificates (ca.crt)" env:"TLS_SERVER_CERTS_DIR"`
20
-
Insecurebool`help:"Run without mTLS credentials. If you supply this flag --tls-server-certs-dir will be ignored."`
14
+
Networkstring`help:"Network on which to listen for gRPC connections." default:"tcp"`
15
+
Addressstring`help:"Address at which to listen for gRPC connections." default:":9443"`
16
+
TLSCertsDirstring`help:"Directory containing server certs (tls.key, tls.crt) and the CA used to verify client certificates (ca.crt)" env:"TLS_SERVER_CERTS_DIR"`
17
+
Insecurebool`help:"Run without mTLS credentials. If you supply this flag --tls-server-certs-dir will be ignored."`
18
+
MaxRecvMessageSizeint`help:"gRPC maximum message size in bytes. Increase this when processing large Composites." default:"4194304"`
0 commit comments