Skip to content

Commit 911e1a0

Browse files
committed
Upgrade crio to 1.15.0
The repository was moved to a separate organization strings.ReplaceAll only work in go1.12, not go1.10 Need to create conmon/config.h without tags and git The configuration _needs_ to be updated (yet again)
1 parent 37f3a64 commit 911e1a0

File tree

3 files changed

+47
-8
lines changed

3 files changed

+47
-8
lines changed

Diff for: deploy/iso/minikube-iso/package/crio-bin/crio-bin.hash

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ sha256 92588998dbb79002c38f65f84602b5659f0d0ef1cd36b1a568a2e40269b66816 v1.13.0.
55
sha256 48e7cf64a757d62a3edf214e1b93b74d99f090ca924f956ede2494a260eab2db v1.13.1.tar.gz
66
sha256 7435c4745017f06c260973b049440d924efe65b0df008d14175dfb8f5e23b599 v1.14.0.tar.gz
77
sha256 1f6f72b1f89d4286b2d5b54a48f4d5ed4c0c01065d484635dcb343a706feb743 v1.14.1.tar.gz
8+
sha256 f7041a92e2d3a4c341be8df58f1076ba57ecb5daa02b6c65e652530c5f242739 v1.15.0.tar.gz

Diff for: deploy/iso/minikube-iso/package/crio-bin/crio-bin.mk

+7-8
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
#
55
################################################################################
66

7-
CRIO_BIN_VERSION = v1.14.1
8-
CRIO_BIN_COMMIT = b7644f67e6383cc862b3e37fb74fba334b0b2721
9-
CRIO_BIN_SITE = https://github.com/kubernetes-sigs/cri-o/archive
7+
CRIO_BIN_VERSION = v1.15.0
8+
CRIO_BIN_COMMIT = 485227d727401fa0472a449b5df3b0537e314ebb
9+
CRIO_BIN_SITE = https://github.com/cri-o/cri-o/archive
1010
CRIO_BIN_SOURCE = $(CRIO_BIN_VERSION).tar.gz
1111
CRIO_BIN_DEPENDENCIES = host-go libgpgme
1212
CRIO_BIN_GOPATH = $(@D)/_output
@@ -23,8 +23,10 @@ define CRIO_BIN_USERS
2323
endef
2424

2525
define CRIO_BIN_CONFIGURE_CMDS
26-
mkdir -p $(CRIO_BIN_GOPATH)/src/github.com/kubernetes-sigs
27-
ln -sf $(@D) $(CRIO_BIN_GOPATH)/src/github.com/kubernetes-sigs/cri-o
26+
mkdir -p $(CRIO_BIN_GOPATH)/src/github.com/cri-o
27+
ln -sf $(@D) $(CRIO_BIN_GOPATH)/src/github.com/cri-o/cri-o
28+
# Generate conmon/config.h with a simplified bin/crio-config
29+
$(CRIO_BIN_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) BUILDTAGS="containers_image_ostree_stub exclude_graphdriver_devicemapper" conmon/config.h
2830
endef
2931

3032
define CRIO_BIN_BUILD_CMDS
@@ -45,9 +47,6 @@ define CRIO_BIN_INSTALL_TARGET_CMDS
4547
$(INSTALL) -Dm755 \
4648
$(@D)/bin/pause \
4749
$(TARGET_DIR)/usr/libexec/crio/pause
48-
$(INSTALL) -Dm644 \
49-
$(@D)/seccomp.json \
50-
$(TARGET_DIR)/etc/crio/seccomp.json
5150
$(INSTALL) -Dm644 \
5251
$(BR2_EXTERNAL_MINIKUBE_PATH)/package/crio-bin/crio.conf \
5352
$(TARGET_DIR)/etc/crio/crio.conf
+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
diff --git a/Makefile b/Makefile
2+
index de79f63..a9ea13b 100644
3+
--- a/Makefile
4+
+++ b/Makefile
5+
@@ -136,7 +136,7 @@ crio.conf: bin/crio
6+
release-note: ${RELEASE_TOOL}
7+
${RELEASE_TOOL} -n $(release)
8+
9+
-conmon/config.h: git-vars cmd/crio-config/config.go oci/oci.go
10+
+conmon/config.h: cmd/crio-config/config.go oci/oci.go
11+
$(GO) build $(LDFLAGS) -tags "$(BUILDTAGS)" -o bin/crio-config $(PROJECT)/cmd/crio-config
12+
( cd conmon && $(CURDIR)/bin/crio-config )
13+
14+
diff --git a/cmd/crio/main.go b/cmd/crio/main.go
15+
index 0bc347a..ab9969f 100644
16+
--- a/cmd/crio/main.go
17+
+++ b/cmd/crio/main.go
18+
@@ -207,7 +207,7 @@ func mergeConfig(config *server.Config, ctx *cli.Context) (string, error) {
19+
}
20+
21+
func writeCrioGoroutineStacks() {
22+
- path := filepath.Join("/tmp", fmt.Sprintf("crio-goroutine-stacks-%s.log", strings.ReplaceAll(time.Now().Format(time.RFC3339), ":", "")))
23+
+ path := filepath.Join("/tmp", fmt.Sprintf("crio-goroutine-stacks-%s.log", strings.Replace(time.Now().Format(time.RFC3339), ":", "", -1)))
24+
if err := utils.WriteGoroutineStacksToFile(path); err != nil {
25+
logrus.Warnf("Failed to write goroutine stacks: %s", err)
26+
}
27+
diff --git a/oci/runtime_vm.go b/oci/runtime_vm.go
28+
index 57a1fde..64f853f 100644
29+
--- a/oci/runtime_vm.go
30+
+++ b/oci/runtime_vm.go
31+
@@ -172,7 +172,7 @@ func (r *runtimeVM) startRuntimeDaemon(c *Container) error {
32+
args = append(args, "start")
33+
34+
// Modify the runtime path so that it complies with v2 shim API
35+
- newRuntimePath := strings.ReplaceAll(r.path, "-", ".")
36+
+ newRuntimePath := strings.Replace(r.path, "-", ".", -1)
37+
38+
// Setup default namespace
39+
r.ctx = namespaces.WithNamespace(r.ctx, namespaces.Default)

0 commit comments

Comments
 (0)