Lorenz Brun | 74e8e5c | 2021-01-26 14:00:50 +0100 | [diff] [blame^] | 1 | Copyright 2020 The Monogon Project Authors. |
| 2 | |
| 3 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | you may not use this file except in compliance with the License. |
| 5 | You may obtain a copy of the License at |
| 6 | |
| 7 | http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | |
| 9 | Unless required by applicable law or agreed to in writing, software |
| 10 | distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | See the License for the specific language governing permissions and |
| 13 | limitations under the License. |
| 14 | |
| 15 | |
| 16 | From 0b2583e76ac9f9675bbd539485918c96da830d21 Mon Sep 17 00:00:00 2001 |
| 17 | From: Lorenz Brun <lorenz@brun.one> |
| 18 | Date: Mon, 25 Jan 2021 18:20:01 +0100 |
| 19 | Subject: [PATCH] Point CacheDir to the correct location for Metropolis |
| 20 | |
| 21 | This is arguably an ugly hack, but they hardcoded it and the fastest way to |
| 22 | access anything resembling a config is through three different repos: |
| 23 | containernetworking/cni -> containerd/go-cni -> containerd/cri -> |
| 24 | containerd/containerd. |
| 25 | --- |
| 26 | libcni/api.go | 2 +- |
| 27 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 28 | |
| 29 | diff --git a/libcni/api.go b/libcni/api.go |
| 30 | index 7e52bd8..7f3dfe6 100644 |
| 31 | --- a/libcni/api.go |
| 32 | +++ b/libcni/api.go |
| 33 | @@ -30,7 +30,7 @@ import ( |
| 34 | ) |
| 35 | |
| 36 | var ( |
| 37 | - CacheDir = "/var/lib/cni" |
| 38 | + CacheDir = "/ephemeral/containerd/cni-cache" |
| 39 | ) |
| 40 | |
| 41 | const ( |
| 42 | -- |
| 43 | 2.25.1 |
| 44 | |