Bryan Boreham
9439606c57
Update vendor files
2020-08-04 10:11:27 +00:00
Bryan Boreham
feb05c0904
Move to Go modules: initial go.mod
2020-08-04 10:11:27 +00:00
Bryan Boreham
514695e127
Update Go version to 1.14.6
2020-08-04 10:11:27 +00:00
Bryan Boreham
f9e27f76d6
Merge remote-tracking branch 'gobomb/fix-nil-ns-pointer'
...
Needed a few modifications to resolve conflicts due to changed
datatype of UID.
2020-08-03 12:32:31 +00:00
Bryan Boreham
c3504788a0
Merge pull request #3780 from alok87/patch-1
...
Documentation Update for Weave Net Monitoring.
2020-08-03 11:42:13 +01:00
Bryan Boreham
4592758e48
Merge pull request #3789 from hairyhenderson/add-connection-type-label-to-weave-connection-metric-3788
...
Add new 'type' and 'encryption' labels to weave_connections metric
2020-08-03 11:40:16 +01:00
gobomb
2ec3e1ef1a
add fake namespace uid for npc test
2020-08-02 23:42:12 +08:00
gobomb
0789670344
add namespaceLabels and namespaceUID, remove namespace in ns struct
2020-08-02 21:06:17 +08:00
Bryan Boreham
80a80816aa
Merge pull request #3687 from weaveworks/docker-19-3
...
Bump Docker to 19.03.1, Kubernetes to 1.14.0 for smoke tests
2020-07-31 18:04:13 +01:00
Bryan Boreham
c50b3380ea
Fix tests where newer Docker returns hex ID of container as network ID
2020-07-31 16:29:41 +00:00
Bryan Boreham
aa9caab1b0
Fix incompatibility in Docker Python test
...
Using code from https://github.com/bboreham/docker-py/tree/v1.9.0-prime
Also change to using Python 3 since 2.x is EOL.
2020-07-31 16:29:41 +00:00
Murali Reddy
ce9d05e0bd
Allow kubeadm to install on nodes with 1 CPU, for smoke tests
2020-07-31 16:29:41 +00:00
Murali Reddy
0c4aeb3a0b
Run smoke-tests with Kubernetes 1.14.0 and CNI 0.7.5
2020-07-31 16:29:02 +00:00
Murali Reddy
f24cf798bc
build tool updates
...
including changes to accommodate current get.docker.com script
2020-07-31 16:28:52 +00:00
Murali Reddy
3d66dcd94e
run terraform init for gcp plugin initialization
2020-07-31 14:52:46 +00:00
Bryan Boreham
fab09693b9
Bump Docker to 19.03.1 for smoke tests
2020-07-31 14:52:46 +00:00
Bryan Boreham
cdbc25d462
Merge pull request #3231 from weaveworks/issues/1770-fetch-dns-address
...
Fetch DNS listen address from daemon
2020-07-31 13:47:41 +01:00
Bryan Boreham
6946731fdd
Merge pull request #3090 from berlic/dns-aliases
...
Register container name and its network aliases with weaveDNS
2020-07-31 13:30:27 +01:00
Bryan Boreham
0078fc535a
Merge pull request #3714 from weaveworks/lint-cleanup
...
Lint cleanup
2020-07-31 13:02:21 +01:00
Bryan Boreham
9ffd0e3450
Fix up tests for DNS changes
...
Now that `weave dns-args` doesn't parse any flags we need to
call it or not call it, which `start_container` will do for us.
Also add back the part of the test where we run weaver with and
without DNS, which had become lost in 8b061fd555
Also change a couple of tests to use proxy to start containers,
again to avoid needing `dns-args` to parse flags.
2020-07-31 11:59:20 +00:00
Bryan Boreham
5b2311bb45
Remove obsolete args parsing from dns-args
...
It was used as part of 'weave run'; does not make sense to support
--name, -h, etc., on 'weave dns-args'.
2020-07-31 11:59:20 +00:00
Bryan Boreham
b0274e11be
Fetch DNS listen address from daemon
...
instead of assuming it's on the Docker bridge
Also move DNS address validation into NewDNSServer(),
so we only do it once.
2020-07-31 11:58:56 +00:00
Bryan Boreham
34dc4dabce
Clean up some lint warnings
...
I ran golangci-lint and it pointed out a few things to clean up.
2020-07-31 10:28:55 +00:00
Bryan Boreham
28e482af14
Avoid some deprecated APIs
2020-07-31 10:28:55 +00:00
Bryan Boreham
c197624689
Fix up incorrect output formatting
2020-07-31 09:03:27 +00:00
Bryan Boreham
00bc020498
Use Context instead of deprecated http.CloseNotifier interface
2020-07-31 09:03:27 +00:00
Bryan Boreham
df52117bfa
Remove unused code
2020-07-31 09:03:27 +00:00
Bryan Boreham
00623be8a7
Merge pull request #3624 from weaveworks/trim-tools
...
Remove some unused tools from the Weave docker containers
2020-07-30 14:14:49 +01:00
Bryan Boreham
4d3e8d4a82
Merge pull request #3726 from weaveworks/slim-dependencies
...
Slim utility binaries by reducing dependencies
2020-07-30 14:13:47 +01:00
Bryan Boreham
2cc5c635c9
Add 'encrypted' label to connections metric
...
Extend tests to check it shows up.
Tests assume that metrics are published with metrics in alphabetical
order, which appears to be the case for now.
2020-07-30 11:07:33 +00:00
Bryan Boreham
865e2b726f
Ensure maps for connection counts are created before use
...
We know all the expected states, so can pre-create maps
2020-07-30 10:25:14 +00:00
Bryan Boreham
f6a3af4a10
Add a check for correct metrics in smoke-test
2020-07-30 10:25:14 +00:00
Dave Henderson
2deb7e2e48
Add new 'type' label to weave_connections metric
...
Signed-off-by: Dave Henderson <dhenderson@gmail.com >
2020-07-30 10:24:38 +00:00
Bryan Boreham
ce38141e5b
Merge pull request #3835 from nesc58/iptables-w
...
wait added to iptables commands
2020-07-29 17:25:36 +01:00
Bryan Boreham
6bc656d66c
Move address range helpers into address package
...
This means that users don't drag in a dependency on aws-sdk.
2020-07-29 13:08:35 +00:00
Bryan Boreham
ca4f93d0d7
Remove the dependency of 'ipset' package on Kubernetes
...
We don't want everyone that uses the `net` package to get a transitive
dependency on the Kubernetes APIs, so have it define the `UID` type.
Conceptually this is a simple change because `UID` is a `string`, but
unfortunately it is used in a lot of places.
2020-07-29 13:08:35 +00:00
Bryan Boreham
a3c76e141b
Move name constants to separate 'chains' package, to reduce dependencies
...
We don't want everyone that uses the `net` package to get a transitive
dependency on the Kubernetes APIs required by `npc`.
2020-07-29 12:55:46 +00:00
Nesc58
f4009c39d8
wait added to iptables commands
2020-07-28 10:46:49 +02:00
Bryan Boreham
9928ddb401
Merge branch '2.6'
2020-07-27 17:44:11 +00:00
Bryan Boreham
7b927a7bac
Merge pull request #3802 from weaveworks/reload-ip-tables
...
Reload router iptables rules if they get cleared
2020-07-24 14:33:47 +01:00
Simon Howe
341bac9968
Rename Monitor -> MonitorForIptablesFlush
...
- Makes it all a bit more explicit
2020-07-24 15:04:28 +02:00
Simon Howe
1d7ca17c3e
Improve Monitor function description
2020-07-24 15:01:45 +02:00
Konstantin Suvorov
add109a63d
Merge pull request #4 from a-kataev/dns-aliases
...
Fixed mismatched types
2020-07-17 08:50:45 +03:00
Alex Kataev
0f276a4d63
Fixed mismatched types in the condition
2020-07-17 10:45:53 +05:00
Konstantin Suvorov
0ac333b91c
Merge pull request #3 from a-kataev/dns-aliases
...
Additional DNS names registration
2020-07-16 22:11:11 +03:00
Alex Kataev
acbd744372
Refactor: additional DNS names registration
2020-07-15 16:34:28 +05:00
Simon Howe
c0e5008202
Update tests after removing canary refresh flag
2020-07-15 11:37:53 +02:00
Simon Howe
899490c3f9
Removes disabling iptable canary
...
- Should always be on. Simpler.
2020-07-15 11:37:53 +02:00
Simon Howe
709b434f55
Clean up the Monitor go routine
2020-07-15 11:37:53 +02:00
Simon Howe
ca7103d007
Review feedback: don't recreate NoMasqLocalIpset onCanaryDeleted
2020-07-15 11:37:53 +02:00