Merge pull request #76633 from xichengliudui/little-bug

Small bug: Comments and function names do not match
This commit is contained in:
Kubernetes Prow Robot 2019-04-16 17:48:34 -07:00 committed by GitHub
commit dffbae622a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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.