github.com/aporeto-inc/trireme-lib@v10.358.0+incompatible/utils/cri/cri_client_setup.go (about) 1 package cri 2 3 import "time" 4 5 // maxMsgSize use 16MB as the default message size limit. 6 // grpc library default is 4MB 7 // NOTE: this should be the exact same constant as used in the kubelet 8 // this used to be here: https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/cri/remote/utils.go#L29 9 const maxMsgSize = 1024 * 1024 * 16 // nolint: varcheck 10 11 var ( 12 // connectTimeout is used for establishing the initial grpc dial context 13 connectTimeout = time.Second * 30 14 15 // callTimeout is used for every single call to CRI 16 callTimeout = time.Second * 5 // nolint: varcheck 17 )