mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Small bug: Comments and function names do not match
add a function
This commit is contained in:
parent
ed2bdd53dc
commit
49a2b1fd8f
@ -331,7 +331,7 @@ func (ds *dockerService) Version(_ context.Context, r *runtimeapi.VersionRequest
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// dockerVersion gets the version information from docker.
|
// getDockerVersion gets the version information from docker.
|
||||||
func (ds *dockerService) getDockerVersion() (*dockertypes.Version, error) {
|
func (ds *dockerService) getDockerVersion() (*dockertypes.Version, error) {
|
||||||
v, err := ds.client.Version()
|
v, err := ds.client.Version()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -43,7 +43,7 @@ const DefaultPluginName = "kubernetes.io/no-op"
|
|||||||
const NET_PLUGIN_EVENT_POD_CIDR_CHANGE = "pod-cidr-change"
|
const NET_PLUGIN_EVENT_POD_CIDR_CHANGE = "pod-cidr-change"
|
||||||
const NET_PLUGIN_EVENT_POD_CIDR_CHANGE_DETAIL_CIDR = "pod-cidr"
|
const NET_PLUGIN_EVENT_POD_CIDR_CHANGE_DETAIL_CIDR = "pod-cidr"
|
||||||
|
|
||||||
// Plugin is an interface to network plugins for the kubelet
|
// NetworkPlugin is an interface to network plugins for the kubelet
|
||||||
type NetworkPlugin interface {
|
type NetworkPlugin interface {
|
||||||
// Init initializes the plugin. This will be called exactly once
|
// Init initializes the plugin. This will be called exactly once
|
||||||
// before any other methods are called.
|
// before any other methods are called.
|
||||||
|
Loading…
Reference in New Issue
Block a user