File: 0002-disable-runhcs-option-in-cri-config.patch

package info (click to toggle)
containerd 1.5.8~ds1-3
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 16,548 kB
  • sloc: sh: 717; makefile: 395
file content (29 lines) | stat: -rw-r--r-- 909 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: Shengjing Zhu <zhsj@debian.org>
Date: Sat, 23 Jan 2021 00:42:41 +0800
Subject: disable runhcs option in cri config

---
 pkg/cri/server/helpers.go | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/pkg/cri/server/helpers.go b/pkg/cri/server/helpers.go
index 8b400cb..2bf625f 100644
--- a/pkg/cri/server/helpers.go
+++ b/pkg/cri/server/helpers.go
@@ -23,7 +23,6 @@ import (
 	"strconv"
 	"strings"
 
-	runhcsoptions "github.com/Microsoft/hcsshim/cmd/containerd-shim-runhcs-v1/options"
 	"github.com/containerd/containerd"
 	"github.com/containerd/containerd/containers"
 	clabels "github.com/containerd/containerd/labels"
@@ -366,8 +365,6 @@ func getRuntimeOptionsType(t string) interface{} {
 		return &runcoptions.Options{}
 	case plugin.RuntimeLinuxV1:
 		return &runctypes.RuncOptions{}
-	case runtimeRunhcsV1:
-		return &runhcsoptions.Options{}
 	default:
 		return &runtimeoptions.Options{}
 	}