Merge pull request #76634 from xichengliudui/addConsts

Using const() defines constants together
k3s-v1.15.3
Kubernetes Prow Robot 2019-04-18 01:50:10 -07:00 committed by GitHub
commit 1192ca09f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 5 deletions

View File

@ -36,12 +36,14 @@ import (
utilexec "k8s.io/utils/exec"
)
const DefaultPluginName = "kubernetes.io/no-op"
const (
DefaultPluginName = "kubernetes.io/no-op"
// Called when the node's Pod CIDR is known when using the
// controller manager's --allocate-node-cidrs=true option
const NET_PLUGIN_EVENT_POD_CIDR_CHANGE = "pod-cidr-change"
const NET_PLUGIN_EVENT_POD_CIDR_CHANGE_DETAIL_CIDR = "pod-cidr"
// Called when the node's Pod CIDR is known when using the
// controller manager's --allocate-node-cidrs=true option
NET_PLUGIN_EVENT_POD_CIDR_CHANGE = "pod-cidr-change"
NET_PLUGIN_EVENT_POD_CIDR_CHANGE_DETAIL_CIDR = "pod-cidr"
)
// NetworkPlugin is an interface to network plugins for the kubelet
type NetworkPlugin interface {