Merge pull request #2408 from euanh/golang-1.12.6

Update to Golang 1.12.6
This commit is contained in:
Euan Harris 2019-06-27 09:46:29 +01:00 committed by GitHub
commit 92611bb5f7
7 changed files with 10 additions and 10 deletions

View file

@ -1,4 +1,4 @@
FROM golang:1.10.7 as dev FROM golang:1.12.6 as dev
RUN apt-get update && apt-get -y install iptables \ RUN apt-get update && apt-get -y install iptables \
protobuf-compiler protobuf-compiler

View file

@ -302,7 +302,7 @@ func setINC(iface string, enable bool) error {
if i == 1 { if i == 1 {
// Rollback the rule installed on first chain // Rollback the rule installed on first chain
if err2 := iptables.ProgramRule(iptables.Filter, chains[0], iptables.Delete, rules[0]); err2 != nil { if err2 := iptables.ProgramRule(iptables.Filter, chains[0], iptables.Delete, rules[0]); err2 != nil {
logrus.Warn("Failed to rollback iptables rule after failure (%v): %v", err, err2) logrus.Warnf("Failed to rollback iptables rule after failure (%v): %v", err, err2)
} }
} }
return fmt.Errorf(msg) return fmt.Errorf(msg)

View file

@ -7,9 +7,9 @@ import (
) )
var ovConfig = map[string]*kernel.OSValue{ var ovConfig = map[string]*kernel.OSValue{
"net.ipv4.neigh.default.gc_thresh1": {"8192", checkHigher}, "net.ipv4.neigh.default.gc_thresh1": {Value: "8192", CheckFn: checkHigher},
"net.ipv4.neigh.default.gc_thresh2": {"49152", checkHigher}, "net.ipv4.neigh.default.gc_thresh2": {Value: "49152", CheckFn: checkHigher},
"net.ipv4.neigh.default.gc_thresh3": {"65536", checkHigher}, "net.ipv4.neigh.default.gc_thresh3": {Value: "65536", CheckFn: checkHigher},
} }
func checkHigher(val1, val2 string) bool { func checkHigher(val1, val2 string) bool {

View file

@ -1054,7 +1054,7 @@ func (n *network) delete(force bool, rmLBEndpoint bool) error {
t.Name(), n.Name(), err) t.Name(), n.Name(), err)
} }
} else { } else {
logrus.Warnf("Could not find configuration network %q during removal of network %q", n.configOnly, n.Name()) logrus.Warnf("Could not find configuration network %q during removal of network %q", n.configFrom, n.Name())
} }
} }

View file

@ -40,7 +40,7 @@ var (
loadBalancerConfig = map[string]*kernel.OSValue{ loadBalancerConfig = map[string]*kernel.OSValue{
// expires connection from the IPVS connection table when the backend is not available // expires connection from the IPVS connection table when the backend is not available
// more info: https://github.com/torvalds/linux/blob/master/Documentation/networking/ipvs-sysctl.txt#L126:1 // more info: https://github.com/torvalds/linux/blob/master/Documentation/networking/ipvs-sysctl.txt#L126:1
"net.ipv4.vs.expire_nodest_conn": {"1", nil}, "net.ipv4.vs.expire_nodest_conn": {Value: "1", CheckFn: nil},
} }
) )