mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-10-31 09:26:52 +00:00 
			
		
		
		
	runtime: fix invalid comments for pkg/resourcecontrol
Some comments are copied and not adjusted to the pkg/resourcecontrol package. Fixes: #3835 Signed-off-by: bin <bin@hyper.sh>
This commit is contained in:
		| @@ -22,14 +22,14 @@ func SetLogger(logger *logrus.Entry) { | |||||||
| 	controllerLogger = logger.WithFields(fields) | 	controllerLogger = logger.WithFields(fields) | ||||||
| } | } | ||||||
|  |  | ||||||
| // HypervisorType describes an hypervisor type. | // ResourceControllerType describes a resource controller type. | ||||||
| type ResourceControllerType string | type ResourceControllerType string | ||||||
|  |  | ||||||
| const ( | const ( | ||||||
| 	LinuxCgroups ResourceControllerType = "cgroups" | 	LinuxCgroups ResourceControllerType = "cgroups" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // String converts an hypervisor type to a string. | // String converts a resource type to a string. | ||||||
| func (rType *ResourceControllerType) String() string { | func (rType *ResourceControllerType) String() string { | ||||||
| 	switch *rType { | 	switch *rType { | ||||||
| 	case LinuxCgroups: | 	case LinuxCgroups: | ||||||
|   | |||||||
| @@ -20,7 +20,7 @@ import ( | |||||||
| // DefaultResourceControllerID runtime-determined location in the cgroups hierarchy. | // DefaultResourceControllerID runtime-determined location in the cgroups hierarchy. | ||||||
| const DefaultResourceControllerID = "/vc" | const DefaultResourceControllerID = "/vc" | ||||||
|  |  | ||||||
| // validCgroupPath returns a valid cgroup path. | // ValidCgroupPath returns a valid cgroup path. | ||||||
| // see https://github.com/opencontainers/runtime-spec/blob/master/config-linux.md#cgroups-path | // see https://github.com/opencontainers/runtime-spec/blob/master/config-linux.md#cgroups-path | ||||||
| func ValidCgroupPath(path string, systemdCgroup bool) (string, error) { | func ValidCgroupPath(path string, systemdCgroup bool) (string, error) { | ||||||
| 	if IsSystemdCgroup(path) { | 	if IsSystemdCgroup(path) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user