1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-01 06:56:29 +00:00

Work around systemd-resolved for dind

Add dind-dns-server option
Set sysctl configration for calico
This commit is contained in:
moelsayed
2019-01-22 02:46:08 +02:00
committed by Alena Prokharchyk
parent 6288d3406f
commit 3b3cda1b08
3 changed files with 44 additions and 11 deletions

View File

@@ -2,6 +2,7 @@ package util
import (
"fmt"
"os"
"reflect"
"strings"
@@ -51,3 +52,14 @@ func UniqueStringSlice(elements []string) []string {
}
return result
}
func IsSymlink(file string) (bool, error) {
f, err := os.Lstat(file)
if err != nil {
return false, err
}
if f.Mode()&os.ModeSymlink != 0 {
return true, nil
}
return false, nil
}