Skip to content

Commit 5e9e400

Browse files
committed
libnetwork: remove global store from windows overlay driver
The overlay driver was creating a global store whenever netlabel.GlobalKVClient was specified in its config argument. This specific label is not used anymore since 142b522 (moby#44875). Signed-off-by: Albin Kerouanton <[email protected]>
1 parent 652d1bf commit 5e9e400

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

libnetwork/drivers/windows/overlay/overlay_windows.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const (
2323
type driver struct {
2424
config map[string]interface{}
2525
networks networkTable
26-
store datastore.DataStore
2726
localStore datastore.DataStore
2827
once sync.Once
2928
joinOnce sync.Once
@@ -42,18 +41,6 @@ func Register(r driverapi.Registerer, config map[string]interface{}) error {
4241
config: config,
4342
}
4443

45-
if data, ok := config[netlabel.GlobalKVClient]; ok {
46-
var err error
47-
dsc, ok := data.(discoverapi.DatastoreConfigData)
48-
if !ok {
49-
return types.InternalErrorf("incorrect data in datastore configuration: %v", data)
50-
}
51-
d.store, err = datastore.NewDataStoreFromConfig(dsc)
52-
if err != nil {
53-
return types.InternalErrorf("failed to initialize data store: %v", err)
54-
}
55-
}
56-
5744
if data, ok := config[netlabel.LocalKVClient]; ok {
5845
var err error
5946
dsc, ok := data.(discoverapi.DatastoreConfigData)

0 commit comments

Comments
 (0)