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:
committed by
Alena Prokharchyk
parent
6288d3406f
commit
3b3cda1b08
12
util/util.go
12
util/util.go
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user