server: shuffle platform dependent operations
This commit is contained in:
parent
4d88008a65
commit
cc39203b09
10 changed files with 821 additions and 718 deletions
19
server/container_create_unsupported.go
Normal file
19
server/container_create_unsupported.go
Normal file
|
@ -0,0 +1,19 @@
|
|||
// +build !linux
|
||||
|
||||
package server
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/kubernetes-incubator/cri-o/lib/sandbox"
|
||||
"github.com/opencontainers/runtime-tools/generate"
|
||||
pb "k8s.io/kubernetes/pkg/kubelet/apis/cri/runtime/v1alpha2"
|
||||
)
|
||||
|
||||
func findCgroupMountpoint(name string) error {
|
||||
return fmt.Errorf("no cgroups on this platform")
|
||||
}
|
||||
|
||||
func addDevicesPlatform(sb *sandbox.Sandbox, containerConfig *pb.ContainerConfig, specgen *generate.Generator) error {
|
||||
return nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue