mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 13:55:41 +00:00
node_e2e: do not return error if Docker's check-config.sh fails
This commit is contained in:
parent
f302487942
commit
7e1d74ead2
@ -139,10 +139,10 @@ func checkDockerConfig() error {
|
|||||||
if _, err := os.Stat(bin); os.IsNotExist(err) {
|
if _, err := os.Stat(bin); os.IsNotExist(err) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
output, err := runCommand(bin)
|
// We don't check the return code because it's OK if the script returns
|
||||||
if err != nil {
|
// a non-zero exit code just because the configs in the whitelist are
|
||||||
return err
|
// missing.
|
||||||
}
|
output, _ := runCommand(bin)
|
||||||
for _, line := range strings.Split(output, "\n") {
|
for _, line := range strings.Split(output, "\n") {
|
||||||
if !strings.Contains(line, "missing") {
|
if !strings.Contains(line, "missing") {
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user