Skip to content

Commit

Permalink
Merge pull request kubernetes#22 from negz/lock
Browse files Browse the repository at this point in the history
Update k8s.io/kubernetes/pkg/util/iptables dependency
  • Loading branch information
k8s-ci-robot authored Oct 4, 2018
2 parents b5e8569 + 424e376 commit 8532f20
Show file tree
Hide file tree
Showing 260 changed files with 162,209 additions and 333 deletions.
45 changes: 28 additions & 17 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ endif

IMAGE := $(REGISTRY)/$(BIN)-$(ARCH)

BUILD_IMAGE ?= golang:1.7-alpine
BUILD_IMAGE ?= golang:1.11-alpine

# If you want to build all binaries, see the 'all-build' rule.
# If you want to build all containers, see the 'all-container' rule.
Expand Down Expand Up @@ -97,6 +97,7 @@ bin/$(ARCH)/$(BIN): build-dirs
-v $$(pwd)/bin/$(ARCH):/go/bin/linux_$(ARCH) \
-v $$(pwd)/.go/std/$(ARCH):/usr/local/go/pkg/linux_$(ARCH)_static \
-w /go/src/$(PKG) \
-e GOCACHE=off \
$(BUILD_IMAGE) \
/bin/sh -c " \
ARCH=$(ARCH) \
Expand Down Expand Up @@ -144,6 +145,7 @@ test: build-dirs
-v $$(pwd)/bin/$(ARCH):/go/bin \
-v $$(pwd)/.go/std/$(ARCH):/usr/local/go/pkg/linux_$(ARCH)_static \
-w /go/src/$(PKG) \
-e GOCACHE=off \
$(BUILD_IMAGE) \
/bin/sh -c " \
./build/test.sh $(SRC_DIRS) \
Expand Down
2 changes: 1 addition & 1 deletion cmd/ip-masq-agent/ip-masq-agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ import (
"k8s.io/apiserver/pkg/util/logs"
"k8s.io/ip-masq-agent/cmd/ip-masq-agent/testing/fakefs"
utildbus "k8s.io/kubernetes/pkg/util/dbus"
utilexec "k8s.io/kubernetes/pkg/util/exec"
utiliptables "k8s.io/kubernetes/pkg/util/iptables"
"k8s.io/kubernetes/pkg/version/verflag"
utilexec "k8s.io/utils/exec"

"github.com/golang/glog"
)
Expand Down
20 changes: 10 additions & 10 deletions cmd/ip-masq-agent/ip-masq-agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ var syncConfigTests = []struct {
cfg *MasqConfig // expected values of the configuration after loading from fs
}{
// valid yaml
{"valid yaml file, all keys", fakefs.StringFS{`
{"valid yaml file, all keys", fakefs.StringFS{File: `
nonMasqueradeCIDRs:
- 172.16.0.0/12
- 10.0.0.0/8
Expand All @@ -93,33 +93,33 @@ resyncInterval: 5s
MasqLinkLocal: true,
ResyncInterval: Duration(5 * time.Second)}},

{"valid yaml file, just nonMasqueradeCIDRs", fakefs.StringFS{`
{"valid yaml file, just nonMasqueradeCIDRs", fakefs.StringFS{File: `
nonMasqueradeCIDRs:
- 192.168.0.0/16
`}, nil, &MasqConfig{
NonMasqueradeCIDRs: []string{"192.168.0.0/16"},
MasqLinkLocal: NewMasqConfig().MasqLinkLocal,
ResyncInterval: NewMasqConfig().ResyncInterval}},

{"valid yaml file, just masqLinkLocal", fakefs.StringFS{`
{"valid yaml file, just masqLinkLocal", fakefs.StringFS{File: `
masqLinkLocal: true
`}, nil, &MasqConfig{
NonMasqueradeCIDRs: NewMasqConfig().NonMasqueradeCIDRs,
MasqLinkLocal: true,
ResyncInterval: NewMasqConfig().ResyncInterval}},

{"valid yaml file, just resyncInterval", fakefs.StringFS{`
{"valid yaml file, just resyncInterval", fakefs.StringFS{File: `
resyncInterval: 5m
`}, nil, &MasqConfig{
NonMasqueradeCIDRs: NewMasqConfig().NonMasqueradeCIDRs,
MasqLinkLocal: NewMasqConfig().MasqLinkLocal,
ResyncInterval: Duration(5 * time.Minute)}},

// invalid yaml
{"invalid yaml file", fakefs.StringFS{`*`}, fmt.Errorf("yaml: did not find expected alphabetic or numeric character"), NewMasqConfig()},
{"invalid yaml file", fakefs.StringFS{File: `*`}, fmt.Errorf("yaml: did not find expected alphabetic or numeric character"), NewMasqConfig()},

// valid json
{"valid json file, all keys", fakefs.StringFS{`
{"valid json file, all keys", fakefs.StringFS{File: `
{
"nonMasqueradeCIDRs": ["172.16.0.0/12", "10.0.0.0/8"],
"masqLinkLocal": true,
Expand All @@ -131,7 +131,7 @@ resyncInterval: 5m
MasqLinkLocal: true,
ResyncInterval: Duration(5 * time.Second)}},

{"valid json file, just nonMasqueradeCIDRs", fakefs.StringFS{`
{"valid json file, just nonMasqueradeCIDRs", fakefs.StringFS{File: `
{
"nonMasqueradeCIDRs": ["192.168.0.0/16"]
}
Expand All @@ -141,7 +141,7 @@ resyncInterval: 5m
MasqLinkLocal: NewMasqConfig().MasqLinkLocal,
ResyncInterval: NewMasqConfig().ResyncInterval}},

{"valid json file, just masqLinkLocal", fakefs.StringFS{`
{"valid json file, just masqLinkLocal", fakefs.StringFS{File: `
{
"masqLinkLocal": true
}
Expand All @@ -151,7 +151,7 @@ resyncInterval: 5m
MasqLinkLocal: true,
ResyncInterval: NewMasqConfig().ResyncInterval}},

{"valid json file, just resyncInterval", fakefs.StringFS{`
{"valid json file, just resyncInterval", fakefs.StringFS{File: `
{
"resyncInterval": "5m"
}
Expand All @@ -162,7 +162,7 @@ resyncInterval: 5m
ResyncInterval: Duration(5 * time.Minute)}},

// invalid json
{"invalid json file", fakefs.StringFS{`{*`}, fmt.Errorf("invalid character '*' looking for beginning of object key string"), NewMasqConfig()},
{"invalid json file", fakefs.StringFS{File: `{*`}, fmt.Errorf("invalid character '*' looking for beginning of object key string"), NewMasqConfig()},

// file does not exist
{"no config file", fakefs.NotExistFS{}, nil, NewMasqConfig()}, // If the file does not exist, defaults should be used
Expand Down
3 changes: 3 additions & 0 deletions vendor/golang.org/x/sys/AUTHORS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions vendor/golang.org/x/sys/CONTRIBUTORS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions vendor/golang.org/x/sys/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions vendor/golang.org/x/sys/PATENTS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions vendor/golang.org/x/sys/unix/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8532f20

Please sign in to comment.