*: update drainExecSyncIO docs and validate the timeout

We should validate the drainExecSyncIO timeout at the beginning and
raise the error for any invalid input.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
This commit is contained in:
Wei Fu
2023-03-03 09:15:31 +08:00
parent 3c18decea7
commit 791f137a5b
4 changed files with 14 additions and 2 deletions

View File

@@ -110,6 +110,6 @@ func DefaultConfig() PluginConfig {
EnableCDI: false,
CDISpecDirs: []string{"/etc/cdi", "/var/run/cdi"},
ImagePullProgressTimeout: time.Minute.String(),
DrainExecSyncIOTimeout: "0",
DrainExecSyncIOTimeout: "0s",
}
}