@@ -114,16 +114,22 @@ type PluginConfig struct {
114114 SystemdCgroup bool `toml:"systemd_cgroup" json:"systemdCgroup"`
115115 // EnableTLSStreaming indicates to enable the TLS streaming support.
116116 EnableTLSStreaming bool `toml:"enable_tls_streaming" json:"enableTLSStreaming"`
117- // TLSCertFileStreaming is the path to a certificate file
118- TLSCertFileStreaming string `toml:"tls_cert_file_streaming" json:"tlsCertFileStreaming"`
119- // TLSKeyFileStreaming is the path to a private key file
120- TLSKeyFileStreaming string `toml:"tls_key_file_streaming" json:"tlsKeyFileStreaming"`
117+ // X509KeyPairStreaming is a x509 key pair used for TLS streaming
118+ X509KeyPairStreaming `toml:"x509_key_pair_streaming" json:"x509KeyPairStreaming"`
121119 // MaxContainerLogLineSize is the maximum log line size in bytes for a container.
122120 // Log line longer than the limit will be split into multiple lines. Non-positive
123121 // value means no limit.
124122 MaxContainerLogLineSize int `toml:"max_container_log_line_size" json:"maxContainerLogSize"`
125123}
126124
125+ // X509KeyPairStreaming contains the x509 configuration for streaming
126+ type X509KeyPairStreaming struct {
127+ // TLSCertFile is the path to a certificate file
128+ TLSCertFile string `toml:"tls_cert_file" json:"tlsCertFile"`
129+ // TLSKeyFile is the path to a private key file
130+ TLSKeyFile string `toml:"tls_key_file" json:"tlsKeyFile"`
131+ }
132+
127133// Config contains all configurations for cri server.
128134type Config struct {
129135 // PluginConfig is the config for CRI plugin.
@@ -156,10 +162,14 @@ func DefaultConfig() PluginConfig {
156162 },
157163 NoPivot : false ,
158164 },
159- StreamServerAddress : "127.0.0.1" ,
160- StreamServerPort : "0" ,
161- EnableSelinux : false ,
162- EnableTLSStreaming : false ,
165+ StreamServerAddress : "127.0.0.1" ,
166+ StreamServerPort : "0" ,
167+ EnableSelinux : false ,
168+ EnableTLSStreaming : false ,
169+ X509KeyPairStreaming : X509KeyPairStreaming {
170+ TLSKeyFile : "" ,
171+ TLSCertFile : "" ,
172+ },
163173 SandboxImage : "k8s.gcr.io/pause:3.1" ,
164174 StatsCollectPeriod : 10 ,
165175 SystemdCgroup : false ,
0 commit comments