...

Source file src/github.com/redhat-developer/odo/pkg/podman/capabilities.go

Documentation: github.com/redhat-developer/odo/pkg/podman

     1  package podman
     2  
     3  type Capabilities struct {
     4  	Cgroupv2 bool
     5  }
     6  
     7  func (o *PodmanCli) GetCapabilities() (Capabilities, error) {
     8  	var result Capabilities
     9  	info, err := o.getInfo()
    10  	if err != nil {
    11  		return Capabilities{}, err
    12  	}
    13  	if info.Host.CgroupsVersion == "v2" {
    14  		result.Cgroupv2 = true
    15  	}
    16  	return result, nil
    17  }
    18  

View as plain text