We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--tls-ca
1 parent 98761db commit 0a32657Copy full SHA for 0a32657
cmd/crictl/exec.go
@@ -281,9 +281,9 @@ func tlsConfigFromFlags(ctx *cli.Context) (*rest.TLSClientConfig, error) {
281
if cfg.CAFile == "" && cfg.CertFile == "" && cfg.KeyFile == "" {
282
return &rest.TLSClientConfig{Insecure: true}, nil
283
}
284
- if cfg.CAFile == "" || cfg.CertFile == "" || cfg.KeyFile == "" {
+ if cfg.CertFile == "" || cfg.KeyFile == "" {
285
return nil, fmt.Errorf(
286
- "all three flags --%s, --%s and --%s are required for TLS streaming",
+ "all two flags --%s and --%s are required for TLS streaming, only --%s is optional",
287
flagTLSCA, flagTLSCert, flagTLSKey,
288
)
289
0 commit comments