Skip to content

Commit bad985d

Browse files
committed
Using const() defines constants together
1 parent ed2bdd5 commit bad985d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

pkg/kubelet/dockershim/network/plugins.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,14 @@ import (
3636
utilexec "k8s.io/utils/exec"
3737
)
3838

39-
const DefaultPluginName = "kubernetes.io/no-op"
39+
const (
40+
DefaultPluginName = "kubernetes.io/no-op"
4041

41-
// Called when the node's Pod CIDR is known when using the
42-
// controller manager's --allocate-node-cidrs=true option
43-
const NET_PLUGIN_EVENT_POD_CIDR_CHANGE = "pod-cidr-change"
44-
const NET_PLUGIN_EVENT_POD_CIDR_CHANGE_DETAIL_CIDR = "pod-cidr"
42+
// Called when the node's Pod CIDR is known when using the
43+
// controller manager's --allocate-node-cidrs=true option
44+
NET_PLUGIN_EVENT_POD_CIDR_CHANGE = "pod-cidr-change"
45+
NET_PLUGIN_EVENT_POD_CIDR_CHANGE_DETAIL_CIDR = "pod-cidr"
46+
)
4547

4648
// Plugin is an interface to network plugins for the kubelet
4749
type NetworkPlugin interface {

0 commit comments

Comments
 (0)