Skip to content

Commit 5d6e22d

Browse files
kata container upgrade to 3.17.0 and operator upgrade to 0.14.0 (#136)
Signed-off-by: Kumar, Anand <anand.kumar@intel.com>
1 parent c42e3c6 commit 5d6e22d

11 files changed

Lines changed: 142 additions & 12 deletions

File tree

REUSE.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ path = [
77
".gitleaksignore",
88
"trivy.yaml",
99
"ci/**",
10-
"trusted-vm/config-6.12.8-142",
1110
"attestation-verifier/src/upgrades/manifest/supported_versions",
1211
"attestation-verifier/src/upgrades/tagent/config/v5.0.0_config.tmpl",
1312
"**.md",

helm/attestation-manager/templates/cleanup-job.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: batch/v1
33
kind: Job
44
metadata:
55
name: cleanup-job-am
6-
namespace: {{ .Release.Namespace }}
6+
namespace: {{ .Release.Namespace }}
77
annotations:
88
"helm.sh/hook": post-delete
99
"helm.sh/hook-delete-policy": hook-succeeded

helm/trustagent/charts/factory/templates/_job.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ spec:
3232
- name: URL
3333
value: https://{{ .Values.dependentServices.aas }}.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.service.aas.containerPort }}/aas/v1/version
3434
- name: VERSION
35-
value: {{.Chart.AppVersion }}
35+
value: {{.Chart.AppVersion }}
3636
- name: DEPENDENT_SERVICE_NAME
3737
value: {{ .Values.dependentServices.aas }}
3838
- name: COMPONENT

helm/trustagent/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ config:
5757
/opt/kata/bin/qemu-system-x86_64
5858
/opt/kata/libexec/virtiofsd
5959
/opt/kata/share/defaults/kata-containers/configuration-qemu.toml
60-
/opt/kata/share/kata-containers/vmlinuz-6.12.20-1.emt3
60+
/opt/kata/share/kata-containers/vmlinuz-6.12.33-1.emt3
6161
/opt/kata/share/kata-containers/trusted-vm.img
6262
/opt/kata/share/kata-qemu/qemu/bios-256k.bin
6363
/opt/kata/share/kata-qemu/qemu/efi-virtio.rom

helm/trusted-workload/charts/cc-operator/templates/cc-operator-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6650,7 +6650,7 @@ spec:
66506650
valueFrom:
66516651
fieldRef:
66526652
fieldPath: metadata.namespace
6653-
image: quay.io/confidential-containers/operator:v0.13.0
6653+
image: quay.io/confidential-containers/operator:v0.14.0
66546654
livenessProbe:
66556655
httpGet:
66566656
path: /healthz

helm/trusted-workload/charts/cc-operator/tests/cc-operator-deployment_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ tests:
338338
value: metadata.namespace
339339
- equal:
340340
path: spec.template.spec.containers[0].image
341-
value: quay.io/confidential-containers/operator:v0.13.0
341+
value: quay.io/confidential-containers/operator:v0.14.0
342342
- equal:
343343
path: spec.template.spec.containers[0].livenessProbe.httpGet.path
344344
value: /healthz

trusted-vm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ EDGE_MICROVISOR_COMMIT?="3.0.20250411"
1212
EDGE_MICROVISOR_SRC_DIR=$(BUILD_DIR)/microvisor_src
1313

1414
KATA_CONTAINERS_SRC=https://github.com/kata-containers/kata-containers.git
15-
KATA_CONTAINERS_TAG?=3.15.0
15+
KATA_CONTAINERS_TAG?=3.17.0
1616
KATA_CONTAINERS_SRC_DIR=$(BUILD_DIR)/kata_src
1717

1818
MAKEFILE_DIR := $(dir $(realpath $(firstword $(MAKEFILE_LIST))))

trusted-vm/tvm-agent/tvm_agent_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ TVM_AGENT_BUILD_DIR="${PWD}"
1111
KATA_CONTAINER_DIR="${TVM_AGENT_BUILD_DIR}/kata-containers"
1212

1313
KATA_CONTAINER_GIT_URL="https://github.com/kata-containers/kata-containers.git"
14-
KATA_CONTAINER_GIT_BRANCH="3.15.0"
14+
KATA_CONTAINER_GIT_BRANCH="3.17.0"
1515

1616
DOCKER_IMAGE="ubuntu:24.04"
1717
TVM_AGENT_CLEAN_AFTER_BUILD="yes"
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
From 872bd7a7aceb7ef83ee23e93fa6ff7cf440f5c80 Mon Sep 17 00:00:00 2001
2+
From: "Jena, Satyabrata" <satyabrata.jena@intel.com>
3+
Date: Tue, 8 Apr 2025 04:01:30 +0000
4+
Subject: [PATCH] Necessary changes to support kata-deploy image for
5+
trusted-workload.
6+
7+
Signed-off-by: Jena, Satyabrata <satyabrata.jena@intel.com>
8+
---
9+
.../kata-deploy/scripts/kata-deploy.sh | 30 +++++++++++--------
10+
1 file changed, 17 insertions(+), 13 deletions(-)
11+
12+
diff --git a/tools/packaging/kata-deploy/scripts/kata-deploy.sh b/tools/packaging/kata-deploy/scripts/kata-deploy.sh
13+
index e765c0d3f..ff8600a93 100755
14+
--- a/tools/packaging/kata-deploy/scripts/kata-deploy.sh
15+
+++ b/tools/packaging/kata-deploy/scripts/kata-deploy.sh
16+
@@ -1,8 +1,7 @@
17+
#!/usr/bin/env bash
18+
-# Copyright (c) 2019 Intel Corporation
19+
-#
20+
-# SPDX-License-Identifier: Apache-2.0
21+
#
22+
+# Copyright (C) 2025 Intel Corporation
23+
+# SPDX-License-Identifier: BSD-3-Clause
24+
25+
set -o errexit
26+
set -o pipefail
27+
@@ -509,8 +508,9 @@ function configure_cri_runtime() {
28+
elif [ "$1" == "microk8s" ]; then
29+
host_systemctl restart snap.microk8s.daemon-containerd.service
30+
else
31+
- host_systemctl daemon-reload
32+
- host_systemctl restart "$1"
33+
+ #host_systemctl daemon-reload
34+
+ #host_systemctl restart "$1"
35+
+ echo "configure_cri_runtime"
36+
fi
37+
38+
wait_till_node_is_ready
39+
@@ -697,8 +697,9 @@ function restart_cri_runtime() {
40+
elif [ "$1" == "microk8s" ]; then
41+
host_systemctl restart snap.microk8s.daemon-containerd.service
42+
else
43+
- host_systemctl daemon-reload
44+
- host_systemctl restart "${runtime}"
45+
+ #host_systemctl daemon-reload
46+
+ #host_systemctl restart "${runtime}"
47+
+ echo "restart_cri_runtime"
48+
fi
49+
}
50+
51+
@@ -715,7 +716,7 @@ function cleanup_cri_runtime() {
52+
[ "${HELM_POST_DELETE_HOOK}" == "false" ] && return
53+
54+
# Only run this code in the HELM_POST_DELETE_HOOK
55+
- restart_cri_runtime "$1"
56+
+ #restart_cri_runtime "$1"
57+
}
58+
59+
function cleanup_crio() {
60+
@@ -742,10 +743,11 @@ function cleanup_containerd() {
61+
62+
function reset_runtime() {
63+
kubectl label node "$NODE_NAME" katacontainers.io/kata-runtime-
64+
- restart_cri_runtime "$1"
65+
+ #restart_cri_runtime "$1"
66+
67+
if [ "$1" == "crio" ] || [ "$1" == "containerd" ]; then
68+
- host_systemctl restart kubelet
69+
+ #host_systemctl restart kubelet
70+
+ echo "reset_runtime"
71+
fi
72+
73+
wait_till_node_is_ready
74+
@@ -891,7 +893,7 @@ function main() {
75+
fi
76+
77+
install_artifacts
78+
- configure_cri_runtime "$runtime"
79+
+ #configure_cri_runtime "$runtime"
80+
kubectl label node "$NODE_NAME" --overwrite katacontainers.io/kata-runtime=true
81+
;;
82+
cleanup)
83+
@@ -913,7 +915,9 @@ function main() {
84+
fi
85+
fi
86+
87+
- cleanup_cri_runtime "$runtime"
88+
+ #cleanup_cri_runtime "$runtime"
89+
+
90+
+
91+
if [ "${HELM_POST_DELETE_HOOK}" == "false" ]; then
92+
# If we still have any other installation here, it means we'll break them
93+
# removing the label, so we just don't do it.
94+
@@ -923,7 +927,7 @@ function main() {
95+
fi
96+
fi
97+
remove_artifacts
98+
-
99+
+ kubectl label node "$NODE_NAME" confidentialcontainers.org/startuninstall-
100+
if [ "${HELM_POST_DELETE_HOOK}" == "true" ]; then
101+
# After everything was cleaned up, there's no reason to continue
102+
# and sleep forever. Let's just return success..
103+
--
104+
2.34.1
105+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From 5450d3b2103a0f6a3f27235f0c76761c1c257089 Mon Sep 17 00:00:00 2001
2+
From: "Kumar, Anand" <anand.kumar@intel.com>
3+
Date: Wed, 21 May 2025 07:22:01 +0000
4+
Subject: [PATCH] remove excutable permission for binaries
5+
6+
Signed-off-by: Kumar, Anand <anand.kumar@intel.com>
7+
---
8+
tools/packaging/kata-deploy/scripts/kata-deploy.sh | 2 +-
9+
1 file changed, 1 insertion(+), 1 deletion(-)
10+
11+
diff --git a/tools/packaging/kata-deploy/scripts/kata-deploy.sh b/tools/packaging/kata-deploy/scripts/kata-deploy.sh
12+
index ff8600a93..4bfdde18e 100755
13+
--- a/tools/packaging/kata-deploy/scripts/kata-deploy.sh
14+
+++ b/tools/packaging/kata-deploy/scripts/kata-deploy.sh
15+
@@ -386,7 +386,7 @@ function install_artifacts() {
16+
17+
mkdir -p ${host_install_dir}
18+
cp -au /opt/kata-artifacts/opt/kata/* ${host_install_dir}/
19+
- chmod +x ${host_install_dir}/bin/*
20+
+ #chmod +x ${host_install_dir}/bin/*
21+
[ -d ${host_install_dir}/runtime-rs/bin ] && \
22+
chmod +x ${host_install_dir}/runtime-rs/bin/*
23+
24+
--
25+
2.34.1
26+

0 commit comments

Comments
 (0)