mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 23:37:01 +00:00
pkg/kubelet: make comments follow go-style
This commit is contained in:
parent
6433e2dd2b
commit
ce1ced4322
@ -43,8 +43,8 @@ type cadvisorInterface interface {
|
||||
MachineInfo() (*cadvisor.MachineInfo, error)
|
||||
}
|
||||
|
||||
// This method takes a container's absolute path and returns the stats for the
|
||||
// container. The container's absolute path refers to its hierarchy in the
|
||||
// statsFromContainerPath takes a container's absolute path and returns the stats for the
|
||||
// container. The container's absolute path refers to its hierarchy in the
|
||||
// cgroup file system. e.g. The root container, which represents the whole
|
||||
// machine, has path "/"; all docker containers have path "/docker/<docker id>"
|
||||
func (kl *Kubelet) statsFromContainerPath(cc cadvisorInterface, containerPath string, req *cadvisor.ContainerInfoRequest) (*cadvisor.ContainerInfo, error) {
|
||||
@ -55,7 +55,7 @@ func (kl *Kubelet) statsFromContainerPath(cc cadvisorInterface, containerPath st
|
||||
return cinfo, nil
|
||||
}
|
||||
|
||||
// This method takes a Docker container's ID and returns the stats for the
|
||||
// statsFromDockerContainer takes a Docker container's ID and returns the stats for the
|
||||
// container.
|
||||
func (kl *Kubelet) statsFromDockerContainer(cc cadvisorInterface, containerId string, req *cadvisor.ContainerInfoRequest) (*cadvisor.ContainerInfo, error) {
|
||||
cinfo, err := cc.DockerContainer(containerId, req)
|
||||
|
Loading…
Reference in New Issue
Block a user