mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Using const() defines constants together
This commit is contained in:
parent
ed2bdd53dc
commit
bad985dc3a
@ -36,12 +36,14 @@ import (
|
|||||||
utilexec "k8s.io/utils/exec"
|
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
|
// Called when the node's Pod CIDR is known when using the
|
||||||
// controller manager's --allocate-node-cidrs=true option
|
// controller manager's --allocate-node-cidrs=true option
|
||||||
const NET_PLUGIN_EVENT_POD_CIDR_CHANGE = "pod-cidr-change"
|
NET_PLUGIN_EVENT_POD_CIDR_CHANGE = "pod-cidr-change"
|
||||||
const NET_PLUGIN_EVENT_POD_CIDR_CHANGE_DETAIL_CIDR = "pod-cidr"
|
NET_PLUGIN_EVENT_POD_CIDR_CHANGE_DETAIL_CIDR = "pod-cidr"
|
||||||
|
)
|
||||||
|
|
||||||
// Plugin is an interface to network plugins for the kubelet
|
// Plugin is an interface to network plugins for the kubelet
|
||||||
type NetworkPlugin interface {
|
type NetworkPlugin interface {
|
||||||
|
Loading…
Reference in New Issue
Block a user