Bryan Boreham
a73330f752
Merge branch '2.4'
2018-09-26 10:20:04 +01:00
Bryan Boreham
427e7a6868
Merge pull request #3408 from weaveworks/issues/3405-tracker-nil-deref
...
ipam: Do not deref nil in GET /ipinfo/tracker if tracker doesn't exist
2018-09-25 12:29:03 +01:00
Bryan Boreham
fc759e2df9
Merge branch '2.4'
2018-09-13 16:59:03 +00:00
Bryan Boreham
1fcd521f67
Add release v2.4.1
2018-09-13 15:25:47 +00:00
Bryan Boreham
008eeb03ad
Improve comments and error checking
2018-09-12 14:11:09 +00:00
Bryan Boreham
41c48dc678
Update test to call reclaimPeer()
2018-09-12 14:11:09 +00:00
Bryan Boreham
09be35dee0
Fetch stored peer list every time round the retry loop
...
This ensures we take account of other peers' updates and closes a race
condition whereby another peer's changes can be overwritten.
2018-09-12 14:11:09 +00:00
Bryan Boreham
c3ad641d94
Refactor: extract reclaimPeer() function
2018-09-12 14:11:09 +00:00
Bryan Boreham
bacb3952a3
Fetch Kubernetes node list every time round reclaim loop
...
If we retain the Kubernetes list for a long time we might see a peer
appear in the Weave list and conclude it has been deleted. We must
always fetch the Kubernetes list after fetching the Weave list, during
deletion.
2018-09-12 14:10:59 +00:00
Bryan Boreham
70257a6c19
Add test for kube-utils peer list
...
- In parallel on several goroutines, randomly add and remove peers.
- Maintain the test's own idea of current state.
- Check that the test's state and kube-utils' state are consistent.
2018-09-12 12:37:16 +00:00
Bryan Boreham
bfe9f00e55
Fake kubernetes API which implements optimistic locking
...
Mostly copied from kubernetes/client-go files
2018-09-12 12:37:16 +00:00
Bryan Boreham
591be2d08f
Refactor: Introduce an interface so weave client can be mocked
2018-09-12 12:37:16 +00:00
Bryan Boreham
c3ce052cc5
Refactor: use Kubernetes.Interface instead of *Clientset
...
So we can call with a mock for testing
2018-09-12 12:35:34 +00:00
Bryan Boreham
7dcd4bdf47
Refactor: extract peerlist fns to new file
2018-09-12 12:35:34 +00:00
Bryan Boreham
2d8373249a
Vendor mock Kubernetes APIs for testing
2018-09-12 12:35:33 +00:00
Bryan Boreham
4979ce1f5f
Update to dep v5
...
This adds more metadata to Gopkg.lock, and seems to have deleted a few
more files.
2018-09-12 12:35:33 +00:00
Bryan Boreham
2ff0bbe150
Reclaim IPs when node name is re-used
...
Change the map used to reclaim peers so it is indexed by PeerName
which should be unique over time, rather than NodeName which can be
re-used. Create an auxilliary set of NodeNames to help.
This way, if we can see that a different peer was previously running
with the same node name, it can be included for reclaim.
2018-09-10 15:10:51 +00:00
Bryan Boreham
231d0c633e
Merge branch '2.4'
2018-09-06 14:24:40 +00:00
Bryan Boreham
a6e1165e71
Merge pull request #3369 from dholbach/fix-3338
...
docs: update ECS references
2018-09-06 14:24:15 +00:00
Bryan Boreham
0e26b4621d
Merge pull request #3369 from dholbach/fix-3338
...
docs: update ECS references
2018-09-06 15:21:26 +01:00
Bryan Boreham
fc211b15e9
Merge pull request #3393 from weaveworks/issues/3392-get-peers-with-no-ip
...
Do not exclude k8s node without any IP addr in reclaim
2018-09-06 15:20:33 +01:00
Bryan Boreham
612e265123
Merge pull request #3391 from weaveworks/debug-log
...
add documentation to enable debug logging
2018-09-06 12:45:58 +01:00
Bryan Boreham
6f26c732f1
Merge pull request #3356 from weaveworks/portmap
...
support for portmap as additional plugin with wave-net
2018-09-05 11:06:58 +01:00
Bryan Boreham
ad4e4238a5
Merge pull request #3360 from dholbach/licenses-fix
...
license: document vendored code which is under LGPL3 and MPL-2.0
2018-08-23 10:44:26 +01:00
Bryan Boreham
d1d618ccb3
SRCDIR removed from this step
2018-08-10 14:02:12 +00:00
Bryan Boreham
80e2ff0353
Adjust for change in docker login command
2018-08-10 13:39:21 +00:00
Bryan Boreham
5b4040704b
Fix CircleCI parse error
...
Also remember to check the source out
2018-08-10 12:51:44 +00:00
Bryan Boreham
c85bc059eb
Merge branch '2.4'
2018-08-10 12:34:04 +00:00
Bryan Boreham
8fb3da6fc8
Merge pull request #3371 from weaveworks/parse-labels
...
Parse labels
2018-08-10 13:33:22 +01:00
Bryan Boreham
55354900da
Remove out-of-date CONTRIBUTORS file
2018-08-09 13:06:34 +00:00
Bryan Boreham
1814bbd2f2
Test container args-parsing code
...
Extract function just to parse args, so we can call it separately and
test it.
2018-08-08 13:24:53 +00:00
Bryan Boreham
374fed4699
Support --label flag on run-container command
2018-08-08 13:24:53 +00:00
Bryan Boreham
e64656d16f
Specify https for security
2018-08-02 10:11:42 +00:00
Bryan Boreham
e3231bb373
Stop running VM creation in the background
...
There's nothing else happening in parallel in this step now.
2018-07-30 10:19:28 +00:00
Bryan Boreham
44e0c6add7
Try to fix failing test 840
2018-07-30 10:19:28 +00:00
Bryan Boreham
1a8794e90f
Run coverage analysis in separate step, and save results
...
Remove CircleCI 1.0 implementation which used scp to contact other
lanes.
Note we can't use an env var in store_artifacts clause
2018-07-30 10:18:57 +00:00
Bryan Boreham
e3576e13a7
Don't copy the source directory somewhere else
2018-07-30 10:16:18 +00:00
Bryan Boreham
b3e77e81ea
Split into several jobs
...
Run build, lint and unit-test steps in a container, using a pre-built
image to save rebuilding at CircleCI
Move a couple of scripts up to config.yml for clarity
2018-07-30 10:16:18 +00:00
Bryan Boreham
b13eb5ada5
Run gen_coverage as a 'deploy'
2018-07-30 10:16:18 +00:00
Bryan Boreham
6337972c8a
Don't need to pipe background commands to file in Circle 2.0
2018-07-30 10:16:18 +00:00
Bryan Boreham
8620d0ae4f
Change CircleCI config to 2.0 version
...
Environment variables are moved out to a script, because CircleCI 2.0
does not support expansion of '$foo' in 'env' section.
2018-07-30 10:16:18 +00:00
Bryan Boreham
fc77e33d1d
Move circleci config to 2.0 location
2018-07-30 10:09:07 +00:00
Bryan Boreham
0164d24583
Tag build image with current git commit
2018-07-30 10:09:07 +00:00
Bryan Boreham
76ee9874d6
Add coverage commands to build image
2018-07-30 10:09:07 +00:00
Bryan Boreham
3699f89b98
Add docker command to build container
2018-07-30 10:09:07 +00:00
Bryan Boreham
911751d0c1
Remove docs-only support in CI - docs moved to Netlify
2018-07-30 09:22:34 +00:00
Bryan Boreham
90a81ce736
Merge pull request #3319 from weaveworks/weave-reset-err
...
Make error "Weave is not running" less confusing when running on Kubernetes
2018-07-24 10:18:24 +01:00
Bryan Boreham
9cf0dd1b87
Merge pull request #3313 from weaveworks/issues/2624-egress-npc
...
Implement Egress NPC
2018-07-24 10:17:45 +01:00
Bryan Boreham
88616007b0
Merge pull request #3353 from louismunro/fix_xtables_lock
...
Fix xtables.lock race condition between weave and kube-proxy.
2018-07-23 13:35:26 +01:00
Bryan Boreham
b8ce722a2c
Merge pull request #3346 from murali-reddy/issue-3206
...
3206: Protect against CNI plugin being called with the host namespace
2018-07-19 12:02:49 +01:00
Bryan Boreham
b8fa4af06a
Merge branch '2.3'
2018-07-17 12:25:49 +01:00
Bryan Boreham
7f1945f06e
Remove mention of Kubernetes 1.6 from docs: it's very old now
2018-07-17 12:24:20 +01:00
Bryan Boreham
ea8f041a20
Fix indentation of TOC
2018-07-17 11:38:09 +01:00
Bryan Boreham
52e8cdb011
Merge pull request #3348 from weaveworks/check-running
...
Add instructions to check weave-kube logs
2018-07-17 11:35:29 +01:00
Bryan Boreham
ac9f47783c
Review feedback
2018-07-17 10:24:26 +01:00
Bryan Boreham
08dc649b9a
Merge branch '2.3'
2018-07-12 08:58:54 +00:00
Bryan Boreham
bb1a373272
Add instructions to check weave-kube logs
...
"Check it is running" and "check the logs" are important steps when
troubleshooting.
2018-07-12 08:53:02 +00:00
Bryan Boreham
26792283ab
Merge pull request #3328 from weaveworks/minikube-docs
...
Add minikube caveat to docs
2018-07-05 13:39:06 +01:00
Bryan Boreham
32a92a4695
Add --force flag to kubeadm reset
2018-06-28 10:26:09 +00:00
Bryan Boreham
3bea2ae419
Bump to Kubernetes 1.11
2018-06-28 09:25:56 +00:00
Bryan Boreham
d513e68fab
Add permissions to set node status
...
This is needed to update the node NetworkUnavailable conditon
see https://github.com/weaveworks/weave/issues/3249
2018-06-21 11:08:27 +00:00
Bryan Boreham
cf66c8d507
Don't remove myself when reclaiming
...
Some logs from users show an entry of X with annotation X, which
suggests we have gone down the path of removing ourselves. This change
avoids that possibility.
2018-06-12 11:52:03 +00:00
Bryan Boreham
318bb767a5
Merge pull request #3320 from weaveworks/manifest-tool-make
...
Fix manifest-tool cmd in Makefile
2018-06-12 10:48:30 +01:00
Bryan Boreham
ad6148f0f6
Break out of kube rm peers loop if nothing changes
...
Avoid getting into an infinite loop if some of the logic or underlying
data is bad
2018-06-12 08:31:35 +00:00
Bryan Boreham
62c949df6e
Merge pull request #3316 from weaveworks/fix-makefile
...
Fix $HOME usage in Makefile
2018-06-11 16:39:36 +01:00
Bryan Boreham
8e374d9416
D'oh
2018-06-11 13:52:15 +00:00
Bryan Boreham
812c58297f
Merge pull request #3298 from weaveworks/issues/2924-preserve-src-ip-on-local
...
2924: Preserve the client source IP
2018-06-11 13:21:12 +01:00
Bryan Boreham
2a04df1049
Rename "kube-peers" to "kube-utils"
...
It's now doing things like network status that are outside of the
scope of "peers".
2018-06-11 11:22:07 +00:00
Bryan Boreham
5ff22a1a77
Review feedback: tidied up function names
2018-06-04 13:28:28 +00:00
Bryan Boreham
9b0d1bd054
Set Kubernetes NodeNetworkUnavailable to false when starting
2018-05-26 14:06:57 +00:00
Bryan Boreham
4c1c2a5661
Add --max-list-size option for ipset lists
...
and default it to 1024 for cases where the size is fixed by the kernel
2018-05-25 17:24:22 +00:00
Bryan Boreham
791d9aecfc
Extend k8s test to cover namespaceSelector and >10 Namespaces
2018-05-25 17:24:22 +00:00
Bryan Boreham
48aaac90fb
Merge pull request #3277 from weaveworks/ml-release-docs
...
Add instruction for validating whether imgs were pushed for all platforms
2018-05-23 13:51:38 +01:00
Bryan Boreham
1ee4039681
Add build constraint for go1.10 onwards
2018-05-03 07:15:36 +01:00
Bryan Boreham
3203814940
Merge pull request #3283 from weaveworks/note-ip-forward
...
Add note about ip forward setting
2018-05-02 13:58:32 +02:00
Bryan Boreham
acc8c33260
Merge pull request #3284 from weaveworks/docs-k8s-src-ip
...
Add docs/k8s-src-ip.md
2018-05-02 13:58:15 +02:00
Bryan Boreham
22ecf505e3
Added note about security implications of enabling IP forwarding
2018-05-02 06:06:58 +01:00
Bryan Boreham
c2c14410d2
Remove subprocess for changing netns
...
Now that Go 1.10 has removed the issue which made us do this.
2018-04-30 23:40:59 +01:00
Bryan Boreham
7b46391e30
Add vendor instructions
2018-04-27 14:34:49 +01:00
Bryan Boreham
ae551cafea
Run manifest-tool from a container image
...
The source code has incompatible dependencies so we can't build it.
2018-04-27 14:34:49 +01:00
Bryan Boreham
672c770dbe
Rework /report handler to pull format from URL
...
Otherwise test 150 would fail - Gorilla mux was not handling a newline
in the format parameter. This way you also get a better error if you
have an error in the parameter - instead of a 404.
2018-04-27 14:34:49 +01:00
Bryan Boreham
847046a225
Update to match upstream changes
2018-04-27 14:34:48 +01:00
Bryan Boreham
4da998ab45
Move to lower-case logrus import
2018-04-27 14:34:48 +01:00
Bryan Boreham
b534ea60f5
Copy dependencies into vendor dir, using dep
2018-04-27 14:34:48 +01:00
Bryan Boreham
549ccff5eb
Don't need to update submodules to build exes
2018-04-27 14:34:47 +01:00
Bryan Boreham
9cf6749b2e
Remove vendor submodules
2018-04-27 14:34:47 +01:00
Bryan Boreham
391b55ceaf
Add note about ip forward setting
2018-04-23 14:24:44 +01:00
Bryan Boreham
e05345d3bb
Add instructions for 'seeded by different peers' message
2018-04-17 10:24:00 +01:00
Bryan Boreham
fcb6f762a9
Review feedback
2018-04-09 13:42:09 +01:00
Bryan Boreham
5645f31934
Update docs for metrics endpoints
2018-04-09 13:11:29 +01:00
Bryan Boreham
a7295e2d03
Mention metrics and status addresses in the docs
2018-04-09 11:55:50 +01:00
Bryan Boreham
c3e6ac2cac
Merge pull request #3273 from weaveworks/go1.10.1
...
Use go1.10.1 for building
2018-04-09 11:40:11 +01:00
Bryan Boreham
81b2f2e15a
Merge pull request #3266 from weaveworks/test-k8s-1-10
...
Update tests to run against Kubernetes 1.10
2018-04-04 15:17:42 +01:00
Bryan Boreham
f6fdaf6492
Only expose metrics by default in weave-kube
2018-04-04 15:00:53 +01:00
Bryan Boreham
519c5d686a
Remove test for k8s 1.6 which breaks on 1.10
2018-04-04 12:26:18 +01:00
Bryan Boreham
f7e62ccbcc
Bump Kubernetes to 1.10
2018-04-04 12:26:09 +01:00
Bryan Boreham
19161c0c92
Merge branch '2.2'
2018-03-30 19:17:18 +00:00
Bryan Boreham
c528303841
Merge pull request #3265 from weaveworks/raise-kube-conn-limit
...
Raise weave-kube default connection limit from 30 to 100
2018-03-28 10:20:30 +01:00
Bryan Boreham
a439288765
Raise weave-kube default connection limit from 30 to 100
...
This was missed from 265bfcf
2018-03-27 21:06:41 +00:00
Bryan Boreham
416410912d
Merge pull request #3263 from weaveworks/faq-unique-peers
...
Add 'peer names collision' to FAQ
2018-03-23 15:14:21 +00:00