server: shuffle platform dependent operations
This commit is contained in:
parent
4d88008a65
commit
cc39203b09
10 changed files with 821 additions and 718 deletions
14
server/sandbox_stop_unsupported.go
Normal file
14
server/sandbox_stop_unsupported.go
Normal file
|
@ -0,0 +1,14 @@
|
|||
// +build !linux
|
||||
|
||||
package server
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
pb "k8s.io/kubernetes/pkg/kubelet/apis/cri/runtime/v1alpha2"
|
||||
)
|
||||
|
||||
func (s *Server) stopPodSandbox(ctx context.Context, req *pb.StopPodSandboxRequest) (resp *pb.StopPodSandboxResponse, err error) {
|
||||
return nil, fmt.Errorf("unsupported")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue