-
Notifications
You must be signed in to change notification settings - Fork 18.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove deprecated host-discovery and overlay networks with external k/v #42247
Conversation
f2c836b
to
2f6b9fc
Compare
Two tests failing that could be related
|
430a285
to
5a3e155
Compare
This part looks fishy; did I mess up a copy/paste? |
ac28201
to
6b739e4
Compare
498e593
to
103c0d8
Compare
103c0d8
to
adf76de
Compare
bd33afa
to
1b19325
Compare
I think you meant |
1b19325
to
2e96e81
Compare
@@ -114,7 +114,7 @@ type ScopeClientCfg struct { | |||
const ( | |||
// LocalScope indicates to store the KV object in local datastore such as boltdb | |||
LocalScope = "local" | |||
// GlobalScope indicates to store the KV object in global datastore such as etcd | |||
// GlobalScope indicates to store the KV object in global datastore | |||
GlobalScope = "global" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibly, this const
(and its use) can also be removed, but leaving that for a separate PR (as it's used in quite some places)
"github.com/sirupsen/logrus" | ||
) | ||
|
||
func registerKVStores() { | ||
etcd.Register() | ||
boltdb.Register() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also need to check if this store is actually used (I thought it was, because I know libnetwork uses boltdb for some things), but not sure if this code is actually used for that.
2e96e81
to
574dc56
Compare
574dc56
to
998bc96
Compare
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Use unique names to prevent tests from interfering, using a shorter name, as there's a maximum length for these. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Anca Iordache <anca.iordache@docker.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Based on randomLocalStore() in libnetwork/ipam/allocator_test.go Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
998bc96
to
7b692a4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
if [ "$nip" != "" ]; then | ||
neighbors=${nip} | ||
fi | ||
|
||
discovery="" | ||
provider="" | ||
address="" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This indentation is technically "wrong" now, but IMO it's not important enough to put this through CI/edits again (maybe something someone can fix as a separate PR).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, yeah, quite likely; I mostly tried to make my "remote X" commits clear on what I was removing, which I why I removed the bits that were related, but I think none of these are used anymore, so we likely can just remove everything here. now (I'll keep that for a follow-up)
okay, i'm gonna "YOLO" and bring this one in 🙈, then look at the follow-up rebasing to make the Thanks for reviewing!! ❤️ |
closes #40383
currently vendoring libnetwork changes from moby/libnetwork#2521- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)