File: no-ipvs.patch

package info (click to toggle)
golang-github-containerd-stargz-snapshotter 0.14.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,348 kB
  • sloc: sh: 3,634; python: 534; makefile: 91; ansic: 4
file content (84 lines) | stat: -rw-r--r-- 3,559 bytes parent folder | download | duplicates (2)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
Index: golang-github-containerd-stargz-snapshotter/cmd/ctr-remote/commands/ipfs-push.go
===================================================================
--- golang-github-containerd-stargz-snapshotter.orig/cmd/ctr-remote/commands/ipfs-push.go
+++ golang-github-containerd-stargz-snapshotter/cmd/ctr-remote/commands/ipfs-push.go
@@ -1,3 +1,6 @@
+//go:build debian_no_ipfs
+// +build debian_no_ipfs
+
 /*
    Copyright The containerd Authors.
 
Index: golang-github-containerd-stargz-snapshotter/cmd/ctr-remote/commands/rpull.go
===================================================================
--- golang-github-containerd-stargz-snapshotter.orig/cmd/ctr-remote/commands/rpull.go
+++ golang-github-containerd-stargz-snapshotter/cmd/ctr-remote/commands/rpull.go
@@ -29,7 +29,6 @@ import (
 	"github.com/containerd/containerd/snapshots"
 	fsconfig "github.com/containerd/stargz-snapshotter/fs/config"
 	"github.com/containerd/stargz-snapshotter/fs/source"
-	"github.com/containerd/stargz-snapshotter/ipfs"
 	ocispec "github.com/opencontainers/image-spec/specs-go/v1"
 	"github.com/urfave/cli"
 )
@@ -55,10 +54,6 @@ command.
 			Usage: "Skip content verification for layers contained in this image.",
 		},
 		cli.BoolFlag{
-			Name:  "ipfs",
-			Usage: "Pull image from IPFS. Specify an IPFS CID as a reference. (experimental)",
-		},
-		cli.BoolFlag{
 			Name:  "use-containerd-labels",
 			Usage: "Use labels defined in containerd project",
 		},
@@ -95,15 +90,6 @@ command.
 			config.skipVerify = true
 		}
 
-		if context.Bool("ipfs") {
-			r, err := ipfs.NewResolver(ipfs.ResolverOptions{
-				Scheme: "ipfs",
-			})
-			if err != nil {
-				return err
-			}
-			config.Resolver = r
-		}
 		config.snapshotter = remoteSnapshotterName
 		if sn := context.String("snapshotter"); sn != "" {
 			config.snapshotter = sn
Index: golang-github-containerd-stargz-snapshotter/cmd/containerd-stargz-grpc/main.go
===================================================================
--- golang-github-containerd-stargz-snapshotter.orig/cmd/containerd-stargz-grpc/main.go
+++ golang-github-containerd-stargz-snapshotter/cmd/containerd-stargz-grpc/main.go
@@ -39,7 +39,6 @@ import (
 	"github.com/containerd/containerd/sys"
 	runtime_alpha "github.com/containerd/containerd/third_party/k8s.io/cri-api/pkg/apis/runtime/v1alpha2"
 	dbmetadata "github.com/containerd/stargz-snapshotter/cmd/containerd-stargz-grpc/db"
-	ipfs "github.com/containerd/stargz-snapshotter/cmd/containerd-stargz-grpc/ipfs"
 	"github.com/containerd/stargz-snapshotter/fs"
 	"github.com/containerd/stargz-snapshotter/metadata"
 	memorymetadata "github.com/containerd/stargz-snapshotter/metadata/memory"
@@ -174,9 +173,6 @@ func main() {
 		credsFuncs = append(credsFuncs, f, fAlpha)
 	}
 	fsOpts := []fs.Option{fs.WithMetricsLogLevel(logrus.InfoLevel)}
-	if config.IPFS {
-		fsOpts = append(fsOpts, fs.WithResolveHandler("ipfs", new(ipfs.ResolveHandler)))
-	}
 	mt, err := getMetadataStore(*rootDir, config)
 	if err != nil {
 		log.G(ctx).WithError(err).Fatalf("failed to configure metadata store")
Index: golang-github-containerd-stargz-snapshotter/cmd/ctr-remote/main.go
===================================================================
--- golang-github-containerd-stargz-snapshotter.orig/cmd/ctr-remote/main.go
+++ golang-github-containerd-stargz-snapshotter/cmd/ctr-remote/main.go
@@ -36,7 +36,6 @@ func main() {
 		commands.OptimizeCommand,
 		commands.ConvertCommand,
 		commands.GetTOCDigestCommand,
-		commands.IPFSPushCommand,
 	}
 	app := app.New()
 	for i := range app.Commands {