Skip to content

Commit 96cfb07

Browse files
committed
libnetwork/netlabel: make consts actual consts
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 3a5598a commit 96cfb07

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

libnetwork/netlabel/labels.go

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,32 +56,30 @@ const (
5656

5757
// HostIP is the Source-IP Address used to SNAT container traffic
5858
HostIP = Prefix + ".host_ipv4"
59-
)
6059

61-
var (
6260
// GlobalKVProvider constant represents the KV provider backend
63-
GlobalKVProvider = MakeKVProvider("global")
61+
GlobalKVProvider = DriverPrivatePrefix + "globalkv_provider"
6462

6563
// GlobalKVProviderURL constant represents the KV provider URL
66-
GlobalKVProviderURL = MakeKVProviderURL("global")
64+
GlobalKVProviderURL = DriverPrivatePrefix + "globalkv_provider_url"
6765

6866
// GlobalKVProviderConfig constant represents the KV provider Config
69-
GlobalKVProviderConfig = MakeKVProviderConfig("global")
67+
GlobalKVProviderConfig = DriverPrivatePrefix + "globalkv_provider_config"
7068

7169
// GlobalKVClient constants represents the global kv store client
72-
GlobalKVClient = MakeKVClient("global")
70+
GlobalKVClient = DriverPrivatePrefix + "globalkv_client"
7371

7472
// LocalKVProvider constant represents the KV provider backend
75-
LocalKVProvider = MakeKVProvider("local")
73+
LocalKVProvider = DriverPrivatePrefix + "localkv_provider"
7674

7775
// LocalKVProviderURL constant represents the KV provider URL
78-
LocalKVProviderURL = MakeKVProviderURL("local")
76+
LocalKVProviderURL = DriverPrivatePrefix + "localkv_provider_url"
7977

8078
// LocalKVProviderConfig constant represents the KV provider Config
81-
LocalKVProviderConfig = MakeKVProviderConfig("local")
79+
LocalKVProviderConfig = DriverPrivatePrefix + "localkv_provider_config"
8280

8381
// LocalKVClient constants represents the local kv store client
84-
LocalKVClient = MakeKVClient("local")
82+
LocalKVClient = DriverPrivatePrefix + "localkv_client"
8583
)
8684

8785
// MakeKVProvider returns the kvprovider label for the scope

0 commit comments

Comments
 (0)