blob: 06cf2108d3aedf3d4683758e0382f162419ed99a [file] [log] [blame]
Lorenz Brun0ec0c532024-08-29 12:39:47 +00001From 3646de78ed303e1c84c78b676859df9c2db33863 Mon Sep 17 00:00:00 2001
Lorenz Brun74e8e5c2021-01-26 14:00:50 +01002From: Lorenz Brun <lorenz@brun.one>
3Date: Mon, 25 Jan 2021 18:20:01 +0100
4Subject: [PATCH] Point CacheDir to the correct location for Metropolis
5
6This is arguably an ugly hack, but they hardcoded it and the fastest way to
7access anything resembling a config is through three different repos:
8containernetworking/cni -> containerd/go-cni -> containerd/cri ->
9containerd/containerd.
10---
11 libcni/api.go | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/libcni/api.go b/libcni/api.go
Lorenz Brun0ec0c532024-08-29 12:39:47 +000015index 5a43219..5d71426 100644
Lorenz Brun74e8e5c2021-01-26 14:00:50 +010016--- a/libcni/api.go
17+++ b/libcni/api.go
Lorenz Brun0ec0c532024-08-29 12:39:47 +000018@@ -38,7 +38,7 @@ import (
Lorenz Brun74e8e5c2021-01-26 14:00:50 +010019 )
20
21 var (
22- CacheDir = "/var/lib/cni"
23+ CacheDir = "/ephemeral/containerd/cni-cache"
Lorenz Brun0ec0c532024-08-29 12:39:47 +000024 // slightly awkward wording to preserve anyone matching on error strings
25 ErrorCheckNotSupp = fmt.Errorf("does not support the CHECK command")
Lorenz Brun74e8e5c2021-01-26 14:00:50 +010026 )
Lorenz Brun74e8e5c2021-01-26 14:00:50 +010027--
Lorenz Brun0ec0c532024-08-29 12:39:47 +0000282.44.1
Lorenz Brun74e8e5c2021-01-26 14:00:50 +010029