X Tutup
Skip to content

Commit 2818fde

Browse files
committed
Move runtimeoptions out of cri package
Since it's a standard set of runtime opts, and used in ctr as well, it could be moved out of cri. Signed-off-by: Shengjing Zhu <zhsj@debian.org>
1 parent 0bbbc59 commit 2818fde

File tree

4 files changed

+25
-26
lines changed

4 files changed

+25
-26
lines changed

cmd/ctr/commands/run/run_unix.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
"github.com/containerd/containerd/contrib/nvidia"
3232
"github.com/containerd/containerd/contrib/seccomp"
3333
"github.com/containerd/containerd/oci"
34-
crioptions "github.com/containerd/containerd/pkg/cri/runtimeoptions/v1"
34+
runtimeoptions "github.com/containerd/containerd/pkg/runtimeoptions/v1"
3535
"github.com/containerd/containerd/platforms"
3636
"github.com/containerd/containerd/runtime/v2/runc/options"
3737
"github.com/opencontainers/runtime-spec/specs-go"
@@ -316,7 +316,7 @@ func getRuntimeOptions(context *cli.Context) (interface{}, error) {
316316
}
317317

318318
if configPath := context.String("runtime-config-path"); configPath != "" {
319-
return &crioptions.Options{
319+
return &runtimeoptions.Options{
320320
ConfigPath: configPath,
321321
}, nil
322322
}

pkg/cri/server/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ import (
3838
runtime "k8s.io/cri-api/pkg/apis/runtime/v1alpha2"
3939

4040
criconfig "github.com/containerd/containerd/pkg/cri/config"
41-
runtimeoptions "github.com/containerd/containerd/pkg/cri/runtimeoptions/v1"
4241
"github.com/containerd/containerd/pkg/cri/store"
4342
containerstore "github.com/containerd/containerd/pkg/cri/store/container"
4443
imagestore "github.com/containerd/containerd/pkg/cri/store/image"
4544
sandboxstore "github.com/containerd/containerd/pkg/cri/store/sandbox"
45+
runtimeoptions "github.com/containerd/containerd/pkg/runtimeoptions/v1"
4646
)
4747

4848
const (
Lines changed: 20 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// To regenerate api.pb.go run `make protos`
22
syntax = "proto3";
33

4-
package cri.runtimeoptions.v1;
4+
package runtimeoptions.v1;
55

66
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
77

@@ -14,7 +14,7 @@ option (gogoproto.unmarshaler_all) = true;
1414
option (gogoproto.goproto_unrecognized_all) = false;
1515

1616

17-
option go_package = "github.com/containerd/containerd/pkg/cri/runtimeoptions/v1;cri_runtimeoptions_v1";
17+
option go_package = "github.com/containerd/containerd/pkg/runtimeoptions/v1;runtimeoptions_v1";
1818

1919
message Options {
2020
// TypeUrl specifies the type of the content inside the config file.

0 commit comments

Comments
 (0)
X Tutup