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
Martynas Pumputis
79d812a9c2
Merge remote-tracking branch 'origin/2.4'
2018-09-12 13:58:08 +03:00
Martynas Pumputis
78e00f9a3a
Merge pull request #3397 from weaveworks/issues/3394-delete-old-me
...
Reclaim IPs when node name is re-used
2018-09-12 13:57:12 +03: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
Martynas Pumputis
a182bd4514
Merge pull request #3388 from myENA/feature/skip-nat-via-weave-expose
...
add --without-masquerade option to `weave expose`
2018-09-10 15:45:52 +03: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
Martynas Pumputis
acc24f1237
Do not exclude k8s node without any IP addr in reclaim
...
Otherwise, such node will be rmpeer'd which can lead to the IPAM
inconsistencies "Received update for IP range I own at <..>".
2018-09-06 14:49:20 +03: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
Murali Reddy
9cf50588b5
remove weave-npc logging details
2018-09-06 11:45:02 +00:00
Murali Reddy
6c2de466c0
add documnetatin to enable debug logging
2018-09-06 11:44:53 +00: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
Murali Reddy
ddfec13f17
add portmap requirement in kube-addon.md
2018-09-05 12:06:13 +05:30
Murali Reddy
b8b47787be
integration test for HostPort support
2018-09-05 08:35:27 +05:30
Martynas Pumputis
4d1f968eb6
Merge pull request #3381 from weaveworks/issue-3133
...
Monitor and throw error message in the logs if Weave bridge interface is down
Fix #3133
2018-09-03 15:43:34 +03:00
Murali Reddy
16a8988e41
addressing review comments
2018-09-03 15:25:57 +05:30
Aaron Hurt
c9f1d30f49
updates to address comments by @bboreham
2018-08-31 14:26:00 -05:00
Aaron Hurt
4b9c533b94
add the ability to skip creation of MASQUERADE rules via iptables when executing weave expose command
2018-08-31 11:46:31 -05:00
Murali Reddy
90907a7647
Fix to use 10-weave.conflist instead of 10-weave.conf as CNI config file.
...
Also adds support for portmap as additional plugin along with weave-net
Fixes #3016
2018-08-31 16:11:24 +05:30
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
Murali Reddy
40980aeb90
Monitor and throw error message in the logs if Weave bridge interface
...
is found to be in DOWN state
Fixes #3133 Do something more useful when the weave bridge is DOWN
On Weave restart there is already logic in place to create the bridge interface
and bring it up, this fix only monotors the weave bridge interface and logs error if
it is in DOWN state
2018-08-23 10:02:21 +05:30
Martynas Pumputis
f68579654b
Merge pull request #3375 from weaveworks/issue-3302
...
Fix weave-npc crash when named ports specified in the named ports
2018-08-17 14:20:41 +02:00
Martynas Pumputis
9899780f35
Merge branch '2.4'
2018-08-17 12:24:23 +02:00
Martynas Pumputis
dd5994c7cf
Merge pull request #3379 from weaveworks/issue-3226
...
add missing --token argument in help for `weave launch`
Fix #3226
2018-08-17 11:15:53 +02:00
Murali Reddy
e6ba59f029
add missing --token argument in help for weave launch
...
Fixes #3226
2018-08-17 14:40:05 +05:30
Murali Reddy
e0359a32f2
Merge pull request #3367 from weaveworks/issues/3168-ingress-ipblock
...
Add ipBlock support for Ingress netpol
2018-08-16 13:24:47 +05:30
Murali Reddy
a19d025677
addressing review comment
2018-08-14 20:16:04 +05:30
Daniel Holbach
528baedd99
make markdownlint happier
2018-08-14 12:32:57 +02:00
Daniel Holbach
e1579ecc1e
update license bits after #3358 was fixed, don't include licenses we already ship in the code
2018-08-14 12:30:04 +02:00
Daniel Holbach
c72e8bbd36
license: document vendored code which is under LGPL3 and MPL-2.0
2018-08-14 11:59:51 +02:00
Martynas Pumputis
6d921802e2
Add recommendation to docs about ingress.ipBlock usage
...
Also, update link to NetworkPolicy API object spec.
2018-08-14 11:59:12 +02:00
Martynas Pumputis
7c78cdd45d
Merge pull request #3366 from weaveworks/issues/3358-bump-client-go
...
Use k8s/client-go v8.0.0
Fix #3358
2018-08-14 11:57:15 +02:00
Murali Reddy
6625e29071
addressing review comments
2018-08-10 19:36:18 +05:30
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
Murali Reddy
d5e864736b
weave-npc doesn't handle named ports
...
Support for names ports in enhancement, but with this PR just adding more graceful failure.
Fixes #3032
2018-08-10 18:37:08 +05:30
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
Daniel Holbach
c654640bde
Remove the reference to the CoreOS guide.
...
It appears the guide was removed from the website some time
before as well. I guess the old content lives here now:
https://github.com/weaveworks-guides/old-guides/tree/master/coreos-simple
2018-08-09 12:15:07 +02: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